cURL / Mailing Lists / curl-library / Single Mail

curl-library

how to get socket fd from libcurl in curl multi interface.

From: venkataragavan vijayakumar <venkataragavan.v_at_gmail.com>
Date: Tue, 27 Sep 2011 20:04:05 +0530

Hi All,

we are using curl multi interface.
we want to read the data from the fd.

we have got the fdset from the
CURLMcode curl_multi_fdset(CURLM *multi_handle, fd_set *read_fd_set,
fd_set *write_fd_set, fd_set *exc_fd_set, int *max_fd);

After this we have used select() call.

But we need socket fd, so that we will do FD_ISSET() and then read the data
from the FD.

Is there is any other way to read the data.

I have seen curl_multi_socket_action() API, it also needs the socket fd.

Please help us, how to get the socket fd's

Thanks,
Venkat.

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2011-09-27