[Libevent-users] Using Chunked callback

Lyes Amazouz lyesloui at gmail.com
Thu Feb 28 06:28:15 EST 2008


Hello everybody!

I want to use the libevent library in order to create a server that allow
the client to the content of a distant file. But the data has to be
transmitted chunk per chunk.

I've seen that in the libevent  we have, in the server side, the function
evhttp_send_reply_chunk(struct evhttp_request *req, struct evbuffer * buf),
and I want to know if buf represents the chunk itself or the whole data that
will be sent chunked. And if all the chunks will be sent in a single
response to the requester or I have to reclaim them by sending a request for
each chunk till the data will be all transmitted.

In the client side, we can set a chunked callback function for a request
object. Will this function regroup all the sent chunks in a single call to
recover the data, or have I to write a loop on it??

-- Cheers
===============================
Lyes Amazouz
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://monkeymail.org/archives/libevent-users/attachments/20080228/7f617004/attachment-0001.htm


More information about the Libevent-users mailing list