buffered socket class

Dan Stromberg strombrg at dcs.nac.uci.edu
Mon Jan 17 16:36:20 EST 2005

I finally took a moment to put my buffered socket class, bufsock.py, on a
web page.

It's a wrapper class for python sockets.

It should reduce tinygrams, as well as provide a more convenient
interface to the application programmer.

It includes functions for reading a certain number bytes, reading up to
the next occurrence of an arbitrary character (newline, null byte,
whatever you like), and so on.

Conceptually, it is much like stdio for unix file descriptors, but instead
for sockets.

You can find it at:



More information about the Python-list mailing list