Part of twisted.protocols.basic View Source View In Hierarchy
|Instance Variables||recvd||buffer holding received data when splitted.
|structFormat||format used for struct packing/unpacking. Define it in subclass.
|prefixLength||length of the prefix, in bytes. Define it in subclass, using
|Method||stringReceived||Override this for notification when each complete string is received.|
|Method||lengthLimitExceeded||Callback invoked when a length prefix greater than
|Method||dataReceived||Convert int prefixed strings into calls to stringReceived.|
|Method||sendString||Send a prefixed string to the other end of the connection.|
Inherited from Protocol:
|Method||connectionLost||Called when the connection is shut down.|
|Method||makeConnection||Make a connection to a transport and a server.|
|Method||connectionMade||Called when a connection is made.|
Inherited from _PauseableMixin:
|Parameters||string||The complete string which was received with all framing (length prefix,
MAX_LENGTHis received. The default implementation disconnects the transport. Override this.
|Parameters||length||The length prefix which was received.
|Parameters||string||The string to send. The necessary framing (length prefix, etc) will be