Home | Trees | Index | Help |
|
---|
Package twisted :: Package protocols :: Module dict :: Class DictLookup |
|
BaseProtocol
--+ |Protocol
--+ |LineReceiver
--+ |DictClient
--+ | DictLookup
Method Summary | |
---|---|
override to catch succesful DEFINE | |
override to catch reasonable failure responses to DEFINE | |
override to be notified when the server is ready to accept commands | |
override to catch succesful MATCH | |
override to catch resonable failure responses to MATCH | |
override to catch unexpected dict protocol conditions | |
Inherited from DictClient | |
| |
Called when a connection is made. | |
n definitions retrieved | |
Definition text follows | |
n matches found, text follows | |
Greeting message | |
We are about to get kicked off, do nothing | |
ok | |
ok | |
| |
| |
| |
Invalid database | |
Invalid database | |
Invalid strategy | |
No match | |
No match | |
Unkown message | |
A line of definition text received | |
One line of match text received | |
Override this for when each line is received. | |
Send a dict DEFINE command | |
Throw up if the line is longer than 1022 characters | |
Send a dict MATCH command | |
Inherited from LineReceiver | |
Clear buffered data. | |
Protocol.dataReceived. | |
Called when the maximum line length has been reached. | |
Override this for when raw data is received. | |
Sets the line-mode of this receiver. | |
Sets the raw mode of this receiver. | |
Inherited from Protocol | |
(Deprecated) | |
Called when the connection is shut down. | |
Inherited from BaseProtocol | |
Make a connection to a transport and a server. |
Class Variable Summary | |
---|---|
Inherited from DictClient | |
NoneType |
data = None |
NoneType |
factory = None |
int |
MAX_LENGTH : The maximum length of a line to allow (If a sent line is longer than
this, the connection is dropped). |
NoneType |
mode = None |
NoneType |
result = None |
NoneType |
state = None |
Inherited from LineReceiver | |
str |
_LineReceiver__buffer = ''
|
str |
delimiter : The line-ending delimiter to use. |
int |
line_mode = 1 |
Inherited from Protocol | |
tuple |
__implements__ = (<class twisted.internet.interfaces.IPr...
|
Inherited from BaseProtocol | |
int |
connected = 0 |
NoneType |
transport = None |
Method Details |
---|
defineDone(self, result)override to catch succesful DEFINE
|
defineFailed(self, reason)override to catch reasonable failure responses to DEFINE
|
dictConnected(self)override to be notified when the server is ready to accept commands
|
matchDone(self, result)override to catch succesful MATCH
|
matchFailed(self, reason)override to catch resonable failure responses to MATCH
|
protocolError(self, reason)override to catch unexpected dict protocol conditions
|
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.0 on Sat May 15 20:08:57 2004 | http://epydoc.sf.net |