Re: [Libevent-users] Asynchronous writes in the event loop model

2012-01-19 Thread MigueL DíaZ
On Thu, Jan 19, 2012 at 4:23 PM, Nick Mathewson wrote: > Libevent's buffereing code is better for network connections than for > inter-thread communication, though you ought to be able to use an > evbuffer as your queue if that's what you really want to do. > Personally, though, I'd just use a q

Re: [Libevent-users] Asynchronous writes in the event loop model

2012-01-19 Thread Nick Mathewson
On Thu, Jan 19, 2012 at 9:23 AM, Frank Schoep wrote: > Hello everyone, > > After reading the libevent documentation and hacking on some of the code > samples, I've got a question about doing 'asynchronous' socket writes using > the event loop model. > > I completely understand how libevent can b

[Libevent-users] Asynchronous writes in the event loop model

2012-01-19 Thread Frank Schoep
Hello everyone, After reading the libevent documentation and hacking on some of the code samples, I've got a question about doing 'asynchronous' socket writes using the event loop model. I completely understand how libevent can be used to create an HTTP (or alike) server, thanks to that protoc