Re: [Libevent-users] accessing a bufferevent's evbuffer directly

2009-04-08 Thread Ka-Hing Cheung
On Mon, 2009-04-06 at 11:17 -0700, Nick Mathewson wrote: If you want to try 0-copy stuff with bufferevents, you'll need to wait for Libevent 2.0. Libevent 1.4 doesn't really support that so well. Is there some kind of rough schedule on when libevent 2.0 may come out? -khc

Re: [Libevent-users] accessing a bufferevent's evbuffer directly

2009-04-08 Thread Nick Mathewson
On Wed, Apr 08, 2009 at 11:06:37AM -0700, Ka-Hing Cheung wrote: On Mon, 2009-04-06 at 11:17 -0700, Nick Mathewson wrote: If you want to try 0-copy stuff with bufferevents, you'll need to wait for Libevent 2.0. Libevent 1.4 doesn't really support that so well. Is there some kind of rough

[Libevent-users] accessing a bufferevent's evbuffer directly

2009-04-06 Thread Phoenix Sol
Is it alright to call evbuffer_readline() on a buffevent's evbuffer? ( Or any of the other evbuffer functions for that matter? ) I'm wrapping bufferevents with a python 'socket module' interface, and must accomadate a 'fileobject' interface, which implements readline. Also, I want to keep

Re: [Libevent-users] accessing a bufferevent's evbuffer directly

2009-04-06 Thread Nick Mathewson
On Mon, Apr 06, 2009 at 01:38:44PM -0700, Phoenix Sol wrote: Thanks, Nick. Is zero-copy possible at all with the current libevent? (I already assumed it wouldn't work with bufferevent) If you mean, just using the regular event_base interface, without any bufferevent or evbuffer interfaces,

Re: [Libevent-users] accessing a bufferevent's evbuffer directly

2009-04-06 Thread Phoenix Sol
I wish I had thought just another moment before asking that ;-) Thanks for the generous answer. I know the best answer is to learn C, TCP/IP, etc. properly, instead of 'groping in the dark' with scripting languages. On Mon, Apr 6, 2009 at 10:04 PM, Nick Mathewson ni...@freehaven.net wrote: