buffered socket class

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Dan Stromberg

    #1

    buffered socket class


    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:



    Enjoy.

Working...