class documentation
class LineTester(basic.LineReceiver): (source)
A line receiver that parses data received and make actions on some tokens.
Method | __init__ |
If given, use a clock to make callLater calls. |
Method | connection |
Create/clean data received on connection. |
Method | line |
Adjust line mode when long lines received. |
Method | line |
Receive line and make some action for some tokens: pause, rawpause, stop, len, produce, unproduce. |
Method | raw |
Read raw data, until the quantity specified by a previous 'len' line is reached. |
Constant | MAX |
size of a line when lineLengthExceeded will be called. |
Instance Variable | clock |
clock simulating reactor callLater. Pass it to constructor if you want to use the pause/rawpause functionalities. |
Instance Variable | delimiter |
character used between received lines. |
Instance Variable | length |
Undocumented |
Instance Variable | received |
Undocumented |
Inherited from LineReceiver
:
Method | clear |
Clear buffered data. |
Method | data |
Protocol.dataReceived. Translates bytes into lines, and calls lineReceived (or rawDataReceived, depending on mode.) |
Method | send |
Sends a line to the other end of the connection. |
Method | set |
Sets the line-mode of this receiver. |
Method | set |
Sets the raw mode of this receiver. Further data received will be sent to rawDataReceived rather than lineReceived. |
Instance Variable | line |
Undocumented |
Instance Variable | _buffer |
Undocumented |
Instance Variable | _busy |
Undocumented |
Inherited from Protocol
(via LineReceiver
):
Method | connection |
Called when the connection is shut down. |
Method | log |
Return a prefix matching the class name, to identify log messages related to this protocol instance. |
Class Variable | factory |
Undocumented |
Inherited from BaseProtocol
(via LineReceiver
, Protocol
):
Method | make |
Make a connection to a transport and a server. |
Instance Variable | connected |
Undocumented |
Instance Variable | transport |
Undocumented |
Inherited from _PauseableMixin
(via LineReceiver
, Protocol
, BaseProtocol
):
Method | pause |
Undocumented |
Method | resume |
Undocumented |
Method | stop |
Undocumented |
Instance Variable | paused |
Undocumented |
clock simulating reactor callLater. Pass it to constructor if you want to use the pause/rawpause functionalities.