curl-library
Re: [hiper] callback wouldn't be call at write state
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Wed, 9 Aug 2006 19:45:11 +0200 (CEST)
Date: Wed, 9 Aug 2006 19:45:11 +0200 (CEST)
On Wed, 9 Aug 2006, Alexander Lazic wrote:
>> But why would you expect a CURL_POLL_OUT for this application?
>
> Because i *WRITE* something out, do you mean with out only uploads?!
You write, yes, but the socket callback tells you what action you should wait
for on the specific socket, and CURL_POLL_OUT means you should wait for that
socket to become *writable* while CURL_POLL_IN means you should wait for the
socket to become *readable*.
So, for download transfers you'll (mostly) get CURL_POLL_IN.
> May be i haven't use yet a upload test.
I haven't tested the socket API with uploads yet so it would be a very useful
test case.
-- Commercial curl and libcurl Technical Support: http://haxx.se/curl.htmlReceived on 2006-08-09