| Home | Trees | Index | Help |
|
|---|
| Package twisted :: Package protocols :: Module basic :: Class LineOnlyReceiver |
|
BaseProtocol--+ |Protocol--+ | LineOnlyReceiver
IdentClient,
IdentServer,
POP3,
POP3ClientA protocol that receives only lines.
This is purely a speed optimisation over LineReceiver, for the cases that raw mode is known to be unnecessary.| Method Summary | |
|---|---|
Protocol.dataReceived. | |
Called when the maximum line length has been reached. | |
Override this for when each line is received. | |
Sends a line to the other end of the connection. | |
| 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 | |
|---|---|
str |
_buffer = ''
|
str |
delimiter = '\r\n'
|
int |
MAX_LENGTH = 16384 |
| Inherited from Protocol | |
tuple |
__implements__ = (<class twisted.internet.interfaces.IPr...
|
| Inherited from BaseProtocol | |
int |
connected = 0 |
NoneType |
transport = None |
| Method Details |
|---|
dataReceived(self, data)Protocol.dataReceived. Translates bytes into lines, and calls lineReceived. |
lineLengthExceeded(self, line)Called when the maximum line length has been reached. Override if it needs to be dealt with in some special way. |
lineReceived(self, line)Override this for when each line is received. |
sendLine(self, line)Sends a line to the other end of the connection. |
| Class Variable Details |
|---|
_buffer
|
delimiter
|
MAX_LENGTH
|
| Home | Trees | Index | Help |
|
|---|
| Generated by Epydoc 2.0 on Sat May 15 20:07:41 2004 | http://epydoc.sf.net |