On Mar 15, 3:33 am, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote: > 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.
Newbie question: Can you write to the 'file-like object' a pickle, and receive it intact-- as one string with nothing else? I want to know because I want to send two pickles. -- http://mail.python.org/mailman/listinfo/python-list