cURL / Mailing Lists / curl-library / Single Mail


Re: Specific questions on curl_multi_perform and curl_socket_action

From: Daniel Stenberg <>
Date: Thu, 15 Dec 2011 17:47:23 +0100 (CET)

On Thu, 15 Dec 2011, sandeep a wrote:

> 4) And my basic doubt is, what is the socket data structure’s significance
> here. I understand we create a job(may be a url to upload or download) and
> assign the job to curl handle, and the curl handle takes care of all http
> communication. So what is the role of socket data structure here. I could
> not completely understand its significance from the examples.

When you're saying "socket data structure", are you referring to the socket
file descriptor?

As libcurl doesn't check for activity on the sockets by itself, you must make
sure that is done (libcurl tells you what to wait for and on which
descriptors) and when the given action occurs you tell libcurl about it. Then
you need to tell curl which actitity that happened on which file descriptor.


List admin:
Received on 2011-12-15