Public Member Functions | |
def | __init__ |
def | readable |
def | writable |
def | handle_read |
def | handle_write |
def | stringReceived |
Receive a string from the socket. | |
def | sendString |
Send a string through the socket. | |
Static Public Attributes | |
int | MAXSTRINGLEN = 0xffff |
Private Attributes | |
__readBuffer | |
__writeBuffer | |
__writeLock |
Defines a protocol where the messages passed are of the format "XX<string>" where <string> is an arbitrary string and XX the length of this string expressed as a ushort. The max length of <string> is 0xffff bytes. Locks are used to prevent buffer overwrites.
Definition at line 26 of file StringTcpProtocol.py.
|
Definition at line 29 of file StringTcpProtocol.py. |
|
Read the socket and parse into messages. Definition at line 45 of file StringTcpProtocol.py. |
|
Definition at line 59 of file StringTcpProtocol.py. |
|
Definition at line 36 of file StringTcpProtocol.py. |
|
Send a string through the socket.
Definition at line 73 of file StringTcpProtocol.py. |
|
Receive a string from the socket.
Reimplemented in CurrValClient, and SocketCVTClient. Definition at line 65 of file StringTcpProtocol.py. |
|
Definition at line 39 of file StringTcpProtocol.py. |
|
Definition at line 32 of file StringTcpProtocol.py. |
|
Definition at line 33 of file StringTcpProtocol.py. |
|
Definition at line 34 of file StringTcpProtocol.py. |
|
Definition at line 28 of file StringTcpProtocol.py. |