cURL / Mailing Lists / curl-library / Single Mail

curl-library

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

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

--On Sunday, May 04, 2008 11:48 AM +0400 tetetest tetetest
<tetetest_at_rambler.ru> 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