cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: async IO using libCURL

From: Isaac Jurado <ijurado_at_econcept.es>
Date: Wed, 11 Aug 2010 12:32:05 +0200

2010/8/10 Daniel Stenberg <daniel_at_haxx.se>:
> If you're looking for high performance socket and event handling on *nix,
> the answer is rather called libev or libevent rather than anything else - in
> combination with libcurl's event-based API multi_socket.

Yesterday I was going to ask a similar question, so I will use this
thread instead.

I've been reviewing the libcurl multi functions several times and I'm
unable to grasp how I could integrate CURL with my custom event loop.
The main obstacle is how to obtain the socket descriptor from a CURL
easy handle. Having a CURLMOPT_SOCKETFUNCTION does not seem to solve
the problem as it is only invoked with curl_multi_socket_action, where
you already need to know the descriptor.

I know I'm missing something, I just don't know what.

-- 
Isaac Jurado
Internet Busines Solutions eConcept
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2010-08-11