D
Dan Stromberg
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:
http://dcs.nac.uci.edu/~strombrg/bufsock.html
Enjoy.
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:
http://dcs.nac.uci.edu/~strombrg/bufsock.html
Enjoy.