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

Re: [Libevent-users] pause bufferevent callback



----- Original Message -----

> From: Mark Ellzey <mthomas@xxxxxxxxxx>
> To: libevent-users@xxxxxxxxxxxxx
> Cc: "libevent-users@xxxxxxxx" <libevent-users@xxxxxxxx>
> Sent: Tuesday, November 29, 2011 4:47 PM
> Subject: Re: [Libevent-users] pause bufferevent callback
> 
> On Tue, Nov 29, 2011 at 06:58:15AM -0800, Ivan Popovski wrote:
>>  Hi.
>> 
>>  Sorry on newbie question.
>> 
>>  Is there way to pause read callback, because i have fixed length buffer?
>>  and in one moment need to avoid overflow and stop readcb until other
>>  module consumes data (or other conditions are met)? The time?between
>>  reading and consuming is not defined.
>> 
> 
> Checkout bufferevent watermarks:
> http://www.wangafu.net/~nickm/libevent-book/Ref6_bufferevent.html


Problem was that i didn't directly use events before (only bufferevent)
so after reading all docs everything make sense.
Problem solved, thank you. Or at least looks solved :-)

***********************************************************************
To unsubscribe, send an e-mail to majordomo@xxxxxxxxxxxxx with
unsubscribe libevent-users    in the body.