t.p.b.Int32StringReceiver(IntNStringReceiver) : class documentation

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.

Inherited from IntNStringReceiver:

Method stringReceived Override this.
Method lengthLimitExceeded Callback invoked when a length prefix greater than MAX_LENGTH is received. The default implementation disconnects the transport. Override this.
Method dataReceived Convert int prefixed strings into calls to stringReceived.
Method sendString Send an prefixed string to the other end of the connection.

Inherited from Protocol (via IntNStringReceiver):

Method connectionLost Called when the connection is shut down.

Inherited from BaseProtocol (via IntNStringReceiver, Protocol):

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

Inherited from _PauseableMixin (via IntNStringReceiver):

Method pauseProducing Undocumented
Method resumeProducing Undocumented
Method stopProducing Undocumented
API Documentation for Twisted, generated by pydoctor at 2011-10-27 16:12:41.