[Libevent-users] Flushing bufferevent writes

Niels Provos provos at citi.umich.edu
Fri Dec 8 11:19:55 EST 2006


You need to wait for the write callback that tells you that the buffer
is empty before you can close the socket (or free the buffer event).

Niels.

On 12/8/06, Alejo S <alejos at gmail.com> wrote:
> Hi.
>
> Silly question: what's the proper way to flush pending buffered write
> events before closing a socket.
>
> Cheers.
>
> Alejo
> _______________________________________________
> Libevent-users mailing list
> Libevent-users at monkey.org
> http://monkey.org/mailman/listinfo/libevent-users
>
>


More information about the Libevent-users mailing list