Class t.p.b.Int32StringReceiver(protocol.Protocol, _PauseableMixin):

Part of twisted.protocols.basic View Source View In Hierarchy

A receiver for int32-prefixed strings.

An int32 string is a string prefixed by 4 bytes, the 32-bit length of the string encoded in network byte order.

This class publishes the same interface as NetstringReceiver.
Method stringReceived Override this.
Method dataReceived Convert int32 prefixed strings into calls to stringReceived.
Method sendString Send an int32-prefixed string to the other end of the connection.

Inherited from Protocol:

Method connectionLost Called when the connection is shut down.

Inherited from BaseProtocol (via Protocol):

Method makeConnection Make a connection to a transport and a server.
Method connectionMade Called when a connection is made.

Inherited from _PauseableMixin:

Method pauseProducing Undocumented
Method resumeProducing Undocumented
Method stopProducing Undocumented
def stringReceived(self, msg): (source)
Override this.
def dataReceived(self, recd): (source)
Convert int32 prefixed strings into calls to stringReceived.
def sendString(self, data): (source)
Send an int32-prefixed string to the other end of the connection.
API Documentation for twisted, generated by pydoctor.