A simple protocol for sending strings across a socket
Methods
|
|
__init__
close
receive
send
|
|
__init__
|
__init__ ( self, sock )
|
|
close
|
close ( self )
|
|
receive
|
receive ( self, timeout=0 )
Get next complete string from socket or return None
Raise EOFError on EOF
|
|
send
|
send ( self, buf )
Encode buf and write it on the socket
|
|