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

[Libevent-users] Dynamic changes of read water mark



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.