twisted.protocols.test.test_basic.TestInt8(TestMixin, basic.Int8StringReceiver) class documentationtwisted.protocols.test.test_basic
(View In Hierarchy)
A basic.Int8StringReceiver
storing received strings in an array.
| Instance Variable | received | array holding received strings. | 
Inherited from TestMixin:
| Method | connectionMade | Undocumented | 
| Method | stringReceived | Undocumented | 
| Method | connectionLost | Undocumented | 
Inherited from IntNStringReceiver (via Int8StringReceiver):
| Instance Variable | structFormat | format used for struct packing/unpacking. Define it in subclass. (type: str) | 
| Instance Variable | prefixLength | length of the prefix, in bytes. Define it in subclass, using struct.calcsize(structFormat)(type:int) | 
| Method | stringReceived | Override this for notification when each complete string is received. | 
| Method | lengthLimitExceeded | Callback invoked when a length prefix greater than MAX_LENGTHis received.  The default implementation 
disconnects the transport. Override this. | 
| Method | dataReceived | Convert int prefixed strings into calls to stringReceived. | 
| Method | sendString | Send a prefixed string to the other end of the connection. | 
| Instance Variable | _unprocessed | bytes received, but not yet broken up into messages / sent to 
stringReceived.  _compatibilityOffset must be updated when this value is 
updated so that the recvdattribute can be generated 
correctly. (type:bytes) | 
| Instance Variable | _compatibilityOffset | the offset within _unprocessedto the next message to be 
parsed. (used to generate the recvd attribute) (type:int) | 
Inherited from Protocol (via Int8StringReceiver, IntNStringReceiver):
| Method | logPrefix | Return a prefix matching the class name, to identify log messages related to this protocol instance. | 
| Method | connectionLost | Called when the connection is shut down. | 
Inherited from BaseProtocol (via Int8StringReceiver, 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 Int8StringReceiver, IntNStringReceiver):
| Method | pauseProducing | Undocumented | 
| Method | resumeProducing | Undocumented | 
| Method | stopProducing | Undocumented |