cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Fwd: [PATCH] check ip callback

From: Daniel Stenberg <daniel_at_haxx.se>
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.html
Received on 2007-09-29