cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: HTTP connection to unix socket

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Wed, 16 Apr 2008 23:57:17 +0200 (CEST)

On Wed, 16 Apr 2008, Bart Whiteley wrote:

>> You could probably implement this today without modifying libcurl by using
>> the CURLOPT_OPENSOCKETFUNCTION callback to open the socket within your
>> library.

> Nice. That is working for me. Thanks for the tip.

Ah, great!

> Just one note on this solution: In singleipconnect() (lib/connect.c) after
> the call to the opensocket callback, just below the /* FIXME */ note, the
> code assumes AF_INET or AF_INET6, and the return value of Curl_inet_ntop()
> isn't checked prior to passing addr_buf to infof().

You think you can provide a diff -u output for a suitable change that works
for you?

-- 
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
Received on 2008-04-17