curl-library
Re: anything else before release?
From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Wed, 1 Dec 2004 11:49:38 +0100 (CET)
Date: Wed, 1 Dec 2004 11:49:38 +0100 (CET)
On Tue, 30 Nov 2004, David Phillips wrote:
> We need a safe API to get file descriptors for the multi interface.
Yes we do. You have any suggestion?
Here's my first attempt:
struct curl_filedesc {
int num; /* number of entries in the array below */
int fd[1]; /* array with file descriptors */
};
CURLMcode curl_multi_fdget(CURLM *multi_handle,
struct curl_filedesc *readfd,
struct curl_filedesc *writefd,
struct curl_filedesc *excfd);
There's one problem with using 'int' for this, as socket file descriptors
aren't ints everywhere - which is why we use curl_socket_t internally in
libcurl.
-- Daniel Stenberg -- http://curl.haxx.se -- http://daniel.haxx.se Dedicated custom curl help for hire: http://haxx.se/curl.htmlReceived on 2004-12-01