class documentation

class MyInt32StringReceiver(StatefulProtocol): (source)

Known subclasses: twisted.test.test_stateful.TestInt32

View In Hierarchy

A stateful Int32StringReceiver.

Method getInitialState Undocumented
Method lengthLimitExceeded Undocumented
Method sendString Send an int32-prefixed string to the other end of the connection.
Method stringReceived Override this.
Constant MAX_LENGTH Undocumented
Class Variable prefixLength Undocumented
Class Variable structFormat Undocumented
Method _getHeader Undocumented
Method _getString Undocumented

Inherited from StatefulProtocol:

Method dataReceived Called whenever data is received.
Method makeConnection Make a connection to a transport and a server.
Instance Variable _sful_data Undocumented

Inherited from Protocol (via StatefulProtocol):

Method connectionLost Called when the connection is shut down.
Method logPrefix Return a prefix matching the class name, to identify log messages related to this protocol instance.
Class Variable factory Undocumented

Inherited from BaseProtocol (via StatefulProtocol, Protocol):

Method connectionMade Called when a connection is made.
Instance Variable connected Undocumented
Instance Variable transport Undocumented
def lengthLimitExceeded(self, length): (source)

Undocumented

def sendString(self, data): (source)

Send an int32-prefixed string to the other end of the connection.

def stringReceived(self, msg): (source)

Override this.

MAX_LENGTH: int = (source)

Undocumented

Value
99999
prefixLength = (source)

Undocumented

structFormat: str = (source)

Undocumented

def _getHeader(self, msg): (source)

Undocumented

def _getString(self, msg): (source)

Undocumented