Home | Trees | Index | Help |
---|
Package Honey :: Module Protocol :: Class LineProtocol |
|
object
--+ |BaseProtocol
--+ |RawProtocol
--+ | LineProtocol
FakeHTTP
,
FakePOP3
,
FakeSMTP
,
MyLineProtocol
Method Summary | |
---|---|
a new object with type S, a subtype of T |
|
Callback called when the connection is established (inherited from BaseProtocol )
| |
Callback called when the connection is lost (inherited from BaseProtocol )
| |
Process received data into lines | |
Callback called when a line exceeeds max length | |
Callback | |
Callback | |
Send a line. | |
Enter line mode | |
Enter Raw mode |
Class Variable Summary | |
---|---|
str |
delimiter
|
bool |
lineMode
|
int |
MAX
|
Method Details |
---|
__new__(S, ...)
|
dataReceived(self, data)Process received data into lines |
lineLengthExceeded(self, line)Callback called when a line exceeeds max length This default implementation simply close the socket. Override it if this is not the desired behavior |
lineReceived(self, line)Callback Should be overriden |
rawDataReceived(self, data)Callback Should be overriden |
sendline(self, line)Send a line. Use this method instead of 'send' |
setLineMode(self, extra='')Enter line mode |
setRawMode(self)Enter Raw mode |
Class Variable Details |
---|
delimiter
|
lineMode
|
MAX
|
Home | Trees | Index | Help |
---|
Generated by Epydoc 1.1 on Sun Dec 7 16:05:42 2003 | http://epydoc.sf.net |