cURL / Mailing Lists / curl-library / Single Mail

curl-library

multi_socket_action example

From: Jonathon <thejunkjon_at_gmail.com>
Date: Wed, 19 Oct 2011 12:55:17 -0700

Hi,

I'd like to use curl_multi_socket_action
(http://curl.haxx.se/libcurl/c/curl_multi_socket.html) to allow me to
monitor sockets so I can determine whether the connections are done
sending data asynchronously.

Does anyone have an example on how I can use this?

Ideally, I'd like the example to register the a callbacks for all my
connections using curl_setop(...), then show how the callback is
invoked when data is received, as well as show how I can determine
when the connection has been closed and all data is received.

Thanks,
J
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2011-10-19