Trees | Indices | Help |
|
---|
|
twisted.internet.protocol.BaseProtocol --+ | twisted.internet.protocol.Protocol --+ | twisted.protocols.basic.NetstringReceiver --+ | NetstringParser
Adapts the Twisted netstring support (which assumes it is on a socket)
to work on simple strings, too. Call the feed
method with
arbitrary blocks of data, and override the stringReceived
method to get called for each embedded netstring. The default
implementation collects the netstrings in the list
self.strings
.
Instance Methods | |||
|
|||
|
|||
|
|||
Inherited from Inherited from Inherited from |
Class Variables | |
Inherited from Inherited from |
Instance Variables | |
Inherited from |
Method Details |
Add arbitrariliy-sized Note that this method (and the Twisted class it is based on) cannot detect a trailing partial netstring at EOF - the data will be silently ignored. @raise |
Override this for notification when each complete string is received.
|
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Sun Mar 25 19:40:36 2012 | http://epydoc.sourceforge.net |