cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: multi interface + writeDataCallback doesn't work on win32 !

From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Mon, 24 May 2004 17:14:20 +0200 (CEST)

On Mon, 24 May 2004, Stefan Libcurl wrote:

> But curl_debug_callback() is never called (like writeDataCallback()).

Then you're doing something wrong! ;-)

> I just looked into docs about select() and fd_set. But I have nothing found.
> Puhh, when I look into the examples I don't understand what
> curl_multi_fdset() and select() do.

select() waits for action on one of the given file handles. curl_multi_fdset()
is used to to ask libcurl to set information about what file handles it
expects "action" on.

I would really recommend that you read up on select() if you are to use the
multi interface.

> Could you give me a short lesson ? Also all examples with multi-interface
> have no writeDataCallback(). Is it actually possible to write a data
> callback with muti-interface ??

I wrote up a quick example that proved working for me:

    http://curl.haxx.se/lxr/source/docs/examples/multi-debugcallback.c

-- 
     Daniel Stenberg -- http://curl.haxx.se -- http://daniel.haxx.se
      Dedicated custom curl help for hire: http://haxx.se/curl.html
Received on 2004-05-24