Haxx ad

curl's project page on


cURL > Mailing List > Monthly Index > Single Mail

curl-library Mailing List Archives

Re: Re[4]: Working with curl connections as with sockets.

From: Nathan E. Moore <>
Date: Sun, 04 May 2008 10:21:48 -0400

--On Sunday, May 04, 2008 11:48 AM +0400 tetetest tetetest
<> wrote:

> typedef enum {
> CURLDIR_IN, /* can safely call curl_easy_recv() */
> CURLDIR_OUT /* can safely call curl_easy_send() */
> } CURLdirection;
> /* returns true if the handle can be read from or written to;
> returns false in case of timeout */
> bool curl_easy_poll(CURL *curl, CURLdirection d, double timeout_in_sec);

The other libcurl functions where a timeout is used take a long with time
in milliseconds.

What if I want to wait on more than one socket?, or use a g_io_channel to
tell me when I can write?

Nathan Moore
Received on 2008-05-04

These mail archives are generated by hypermail.

donate! Page updated November 12, 2010.
web site info

File upload with ASP.NET