| Home | Trees | Index | Help |
|
|---|
| Package twisted :: Package protocols :: Module basic :: Class Int16StringReceiver |
|
BaseProtocol--+ |Protocol--+ | Int16StringReceiver
A receiver for int16-prefixed strings.
An int16 string is a string prefixed by 2 bytes, the 16-bit length of the string encoded in network byte order.
This class publishes the same interface as NetstringReceiver.| Method Summary | |
|---|---|
Convert int16 prefixed strings into calls to stringReceived. | |
Send an int16-prefixed string to the other end of the connection. | |
Override this. | |
| Inherited from Protocol | |
(Deprecated) | |
Called when the connection is shut down. | |
| Inherited from BaseProtocol | |
Called when a connection is made. | |
Make a connection to a transport and a server. | |
| Class Variable Summary | |
|---|---|
str |
recvd = ''
|
| Inherited from Protocol | |
tuple |
__implements__ = (<class twisted.internet.interfaces.IPr...
|
| Inherited from BaseProtocol | |
int |
connected = 0 |
NoneType |
transport = None |
| Method Details |
|---|
dataReceived(self, recd)Convert int16 prefixed strings into calls to stringReceived. |
sendString(self, data)Send an int16-prefixed string to the other end of the connection. |
stringReceived(self, msg)Override this. |
| Class Variable Details |
|---|
recvd
|
| Home | Trees | Index | Help |
|
|---|
| Generated by Epydoc 2.0 on Sat May 15 20:08:11 2004 | http://epydoc.sf.net |