[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [Libevent-users] Dynamic changes of read water mark
Yes I do think so. I'm using this feature on a chat proxy server.
Sent from my iPad
On Aug 29, 2010, at 11:08 PM, "Gilad Benjamini" <gilad@xxxxxxxxxxxxxxxxx> wrote:
> My eventloop needs to go through this cycle
> - Read 16 bytes off the network
> - The 16 bytes contain a length parameter
> - Read additional "length" bytes from the network.
>
> It seems that this can be done with a buffered event which keeps changing
> the read low watermark (twice per message).
> Is this a "proper" way to use buffered events ?
>
> ***********************************************************************
> To unsubscribe, send an e-mail to majordomo@xxxxxxxxxxxxx with
> unsubscribe libevent-users in the body.
***********************************************************************
To unsubscribe, send an e-mail to majordomo@xxxxxxxxxxxxx with
unsubscribe libevent-users in the body.