Re: [Libevent-users] Dynamic changes of read water mark

2010-09-02 Thread Mark Ellzey
On Wed, Sep 01, 2010 at 10:06:44AM -0700, Gilad Benjamini wrote: > Your sample code did not include the watermark part. It doesn't need to. > May I assume that at the end of the code snippet you would set the low > watermark ? No. > If I set the low watermark to X, am I guaranteed that the next

RE: [Libevent-users] Dynamic changes of read water mark

2010-09-01 Thread Gilad Benjamini
> > It seems that this can be done with a buffered event which keeps > changing > > the read low watermark (twice per message). Your sample code did not include the watermark part. May I assume that at the end of the code snippet you would set the low watermark ? If I set the low watermark to X,

Re: [Libevent-users] Dynamic changes of read water mark

2010-08-31 Thread Mark Ellzey
On Sun, Aug 29, 2010 at 08:08:12AM -0700, Gilad Benjamini 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 buffe

Re: [Libevent-users] Dynamic changes of read water mark

2010-08-29 Thread Han Liu
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" wrote: > My eventloop needs to go through this cycle > - Read 16 bytes off the network > - The 16 bytes contain a length parameter > - Read additional "lengt

[Libevent-users] Dynamic changes of read water mark

2010-08-29 Thread Gilad Benjamini
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