Home | Trees | Indices | Help |
---|
|
twisted.internet.protocol.BaseProtocol --+ | twisted.internet.protocol.Protocol --+ | MultiBufferer --+ | IntNStringReceiver
This class is identical to the IntNStringReceiver provided by Twisted, implemented using MultiBufferer as a demonstration of how MODE_STATEFUL works.
Instance Methods | |||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from Inherited from |
Class Variables | |
mode = 2
|
|
Inherited from Inherited from Inherited from |
Properties | |
Inherited from |
Method Details |
Called when there is no current state for MODE_STATEFUL. This function must return a tuple of (some_callable, bytes_to_read), where the callable will be called when that number of bytes has been read, with those same bytes as the only argument. That callable can return None to keep the same (callable, n_bytes) state, or return a new (callable, n_bytes) tuple.
|
Home | Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Sat Aug 14 14:34:16 2010 | http://epydoc.sourceforge.net |