| Home | Trees | Index | Help |
|
|---|
| Package twisted :: Package protocols :: Module basic :: Class NetstringReceiver |
|
BaseProtocol--+ |Protocol--+ | NetstringReceiver
SafeNetstringReceiverThis uses djb's Netstrings protocol to break up the input into strings.
Each string makes a callback to stringReceived, with a single argument of that string.
Security features:| Method Summary | |
|---|---|
Called whenever data is received. | |
doComma(self)
| |
doData(self)
| |
doLength(self)
| |
sendString(self,
data)
| |
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 | |
|---|---|
int |
_readerLength = 0 |
int |
_readerState = 0 |
int |
brokenPeer = 0 |
int |
MAX_LENGTH = 99999 |
| Inherited from Protocol | |
tuple |
__implements__ = (<class twisted.internet.interfaces.IPr...
|
| Inherited from BaseProtocol | |
int |
connected = 0 |
NoneType |
transport = None |
| Method Details |
|---|
dataReceived(self, data)Called whenever data is received. Use this method to translate to a higher-level message. Usually, some callback will be made upon the receipt of each complete protocol message.
|
stringReceived(self, line)Override this. |
| Class Variable Details |
|---|
_readerLength
|
_readerState
|
brokenPeer
|
MAX_LENGTH
|
| Home | Trees | Index | Help |
|
|---|
| Generated by Epydoc 2.0 on Sat May 15 20:08:13 2004 | http://epydoc.sf.net |