On Fri, 2 Nov 2012, huancong deng wrote:
here is my code , I want to get the socket fd from curl_multi_fdset function, but is it right ? who can tell me about this?
Are you sure you want this kludge? The multi_socket API tells the application exactly which sockets to wait for what on, and the new curl_multi_wait() function allows you to wait on sockets without using select() at all.
If you really want curl_multi_fdset() and figuring out which sockets that are set using that API, then you SHOULD use the FD_ISSET() macro to make sure the solution is implementation agnostic. And use maxfd to know when to stop searching.
-- / daniel.haxx.se ------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.html
