Fwd: [Libevent-users] Closing bufferevents sockets from the server side

2010-11-25 Thread Sid
Hey, I understand Simon's view on how not to close buffer event sockets, but can some one explain why this https://gist.github.com/714606 idea is bad? -- Forwarded message -- From: Sid Date: Wed, Nov 24, 2010 at 4:10 PM Subject: Re: [Libevent-users] Closing bufferevents so

Re: [Libevent-users] Closing bufferevents sockets from the server side

2010-11-24 Thread Sid
, *const* *struct* evbuffer_cb_info *info, *void* *arg); described http://www.wangafu.net/~nickm/libevent-book/Ref7_evbuffer.html I think this is the right way to do this stuff... On Wed, Nov 24, 2010 at 6:23 AM, Kelly Brock wrote: > Hi Sid, > > > Sorry that got posted by mistake

[Libevent-users] Re: Closing bufferevents sockets from the server side

2010-11-23 Thread Sid
Ok I am feeling that *struct* evbuffer_cb_entry *evbuffer_add_cb(*struct* evbuffer *buffer, evbuffer_cb_func cb, *void* *cbarg); might be the solution to my problems...? Adding a calbaack to see how much data is drained from the buffer?? On Tue, Nov 23, 2010 at 9:00 PM, Sid wrote

[Libevent-users] Closing bufferevents sockets from the server side

2010-11-23 Thread Sid
fer. > So at this point i know exactly how much data to write. I need to reliably > close this connection after all these bytes are out. How to achieve this? > > Sid >

Re: [Libevent-users] IRIX build failure in regress_util.c

2010-11-23 Thread Sid
ll the evbuffer_add only once for each line recieved and after that no more data will be written to that specific o/p buffer. So at this point i know exactly how much data to write. I need to reliably close this connection after all these bytes are out. How to achieve this? Sid