En Thu, 13 Mar 2008 15:18:44 -0200, <[EMAIL PROTECTED]> escribió:

> Well, lets say you have a situation where you're going to be
> alternating between sending large and small chunks of data. Is the
> solution to create a NetworkBuffer class and only call send when the
> buffer is full, always recv(8192)?

No need to reinvent the wheel. socket objects already have a makefile  
method returning a file-like object, which behaves like a buffered socket.

-- 
Gabriel Genellina

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to