Home | Trees | Index | Help |
---|
Package twisted :: Package protocols :: Module basic :: Class NetstringReceiver |
|
BaseProtocol
--+ |Protocol
--+ | NetstringReceiver
SafeNetstringReceiver
,
TestNetstring
This 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 | |
---|---|
(Deprecated) (inherited from Protocol )
| |
Called when the connection is shut down. (inherited from Protocol )
| |
Called when a connection is made. (inherited from BaseProtocol )
| |
Called whenever data is received. | |
doComma(self)
| |
doData(self)
| |
doLength(self)
| |
Make a connection to a transport and a server. (inherited from BaseProtocol )
| |
sendString(self,
data)
| |
Override this. |
Class Variable Summary | |
---|---|
int |
brokenPeer
|
int |
MAX_LENGTH
|
int |
_readerLength
|
int |
_readerState
|
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 |
---|
brokenPeer
|
MAX_LENGTH
|
_readerLength
|
_readerState
|
Home | Trees | Index | Help |
---|
Generated by Epydoc 1.2 prerelease on Wed Jan 29 06:28:22 2003 | http://epydoc.sf.net |