I wouldn't use them for sending large files. Use the good 'ole fashion
event_* interfaces for checking when a socket needs more data, and use
sendfile() to send the data down the socket when it needs it. No reason to
have libevent buffers on top of things for this purpose.
You have basically the s
Dnia 2009-11-18, śro o godzinie 10:40 -0800, Niels Provos pisze:
> On Mon, Nov 16, 2009 at 9:12 AM, Krzysztof Adamski wrote:
> > i would like to build simple HTTPD server using libevent2. It is going
> > to send some quite big files but i would like it to handle couple
> > concurrent connections.
On Mon, Nov 16, 2009 at 9:12 AM, Krzysztof Adamski wrote:
> i would like to build simple HTTPD server using libevent2. It is going
> to send some quite big files but i would like it to handle couple
> concurrent connections. The files can be sent in chunks so I'm using
> evhttp_send_reply_chunk fo