cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Fwd: [PATCH] check ip callback

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Tue, 2 Oct 2007 22:42:04 +0200 (CEST)

On Tue, 2 Oct 2007, Alexey Pesternikov wrote:

> None of them is available in public interface (curl.h).
> Curl_sockaddr_storage is in lib/sockaddr.h
> And there is no easy way to move it to the curl.h because of
> HAVE_STRUCT_SOCKADDR_STORAGE dependency.

But does the size of the buffer really need to be this complex?

> char addr_storage[sizeof(struct Curl_sockaddr)-sizeof(struct
> sockaddr)+sizeof(struct Curl_sockaddr_storage)];

When is a plain sizeof(struct Curl_sockaddr_storage) not enough?

-- 
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
Received on 2007-10-02