curl-library
Re: Fwd: [PATCH] check ip callback
Date: Sat, 29 Sep 2007 23:07:27 +0200 (CEST)
On Thu, 27 Sep 2007, Alexey Pesternikov wrote:
>>> struct curl_sockaddr {
>>> int family,
>>> int socktype,
>>> int protocol,
>>> socklen_t addrlen,
>>> struct sockaddr addr
>>> }; /* or something like that */
[...]
>> typedef int (*curl_sockopen_callback)(void *clientp,
>> curlsocktype purpose,
>> const Curl_addrinfo* address,
>> curL_socket_t *fd);
>>
>> Personally, I'm fine with that too.
One more nit: 'struct sockaddr addr' is not enough storage room if you'd want
to change from for example an IPv4 address to say an IPv6 one...
-- Commercial curl and libcurl Technical Support: http://haxx.se/curl.htmlReceived on 2007-09-29