class documentation

class MyInt32StringReceiver(StatefulProtocol):

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 getInitialState(self):
def lengthLimitExceeded(self, length):

Undocumented

def sendString(self, data):

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

def stringReceived(self, msg):

Override this.

MAX_LENGTH: int =

Undocumented

Value
99999
prefixLength =

Undocumented

structFormat: str =

Undocumented

def _getHeader(self, msg):

Undocumented

def _getString(self, msg):

Undocumented