----- Original Message ----- > From: Mark Ellzey <mtho...@strcpy.net> > To: libevent-us...@freehaven.net > Cc: "libevent-users@seul.org" <libevent-users@seul.org> > 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 majord...@freehaven.net with unsubscribe libevent-users in the body.