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
_______________________________________________ Libevent-users mailing list Libevent-users@monkey.org http://monkeymail.org/mailman/listinfo/libevent-users