[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [Libevent-users] Handling concurent evhttp connections with evhttp_send_reply_chunk.



On Mon, Nov 16, 2009 at 6:43 PM, Patrick C <pcloches@xxxxxxxxx> wrote:
> Agreed. The most optimal way of doing this would be to use your operating
> system's sendfile() routine, where available, in the evhttp_write_cb
> routine.

The way you would do this in libevent 2.0 is to use
evbuffer_add_file() and then send that via evhttp_send_reply().

Niels.
***********************************************************************
To unsubscribe, send an e-mail to majordomo@xxxxxxxxxxxxx with
unsubscribe libevent-users    in the body.