Class t.p.d.DictClient(basic.LineReceiver):

Part of twisted.protocols.dict View Source View In Hierarchy

Known subclasses: twisted.protocols.dict.DictLookup

dict (RFC2229) client

Split Table into Classes Show Methods in One Table

Line # Kind Name Docs
89 Method __init__ Undocumented
93 Method connectionMade Called when a connection is made.
97 Method sendLine Throw up if the line is longer than 1022 characters
103 Method lineReceived Override this for when each line is received.
121 Method dictCode_default Unkown message
127 Method dictCode_221_ready We are about to get kicked off, do nothing
131 Method dictCode_220_conn Greeting message
136 Method dictCode_530_conn Undocumented
140 Method dictCode_420_conn Undocumented
144 Method dictCode_421_conn Undocumented
148 Method sendDefine Send a dict DEFINE command
157 Method sendMatch Send a dict MATCH command
166 Method dictCode_550_define Invalid database
171 Method dictCode_550_match Invalid database
176 Method dictCode_551_match Invalid strategy
181 Method dictCode_552_define No match
186 Method dictCode_552_match No match
191 Method dictCode_150_define n definitions retrieved
195 Method dictCode_151_define Definition text follows
208 Method dictCode_152_match n matches found, text follows
214 Method dictCode_text_define A line of definition text received
224 Method dictCode_text_match One line of match text received
238 Method dictCode_250_define ok
245 Method dictCode_250_match ok
252 Method protocolError override to catch unexpected dict protocol conditions
256 Method dictConnected override to be notified when the server is ready to accept commands
260 Method defineFailed override to catch reasonable failure responses to DEFINE
264 Method defineDone override to catch succesful DEFINE
268 Method matchFailed override to catch resonable failure responses to MATCH
272 Method matchDone override to catch succesful MATCH

Inherited from LineReceiver:

Line # Kind Name Docs
207 Method clearLineBuffer Clear buffered data.
211 Method dataReceived Protocol.dataReceived.
241 Method setLineMode Sets the line-mode of this receiver.
256 Method setRawMode Sets the raw mode of this receiver.
263 Method rawDataReceived Override this for when raw data is received.
278 Method lineLengthExceeded Called when the maximum line length has been reached.

Inherited from Protocol (via LineReceiver):

Line # Kind Name Docs
384 Method connectionLost Called when the connection is shut down.

Inherited from BaseProtocol (via LineReceiver, Protocol):

Line # Kind Name Docs
341 Method makeConnection Make a connection to a transport and a server.

Inherited from _PauseableMixin (via LineReceiver):

Line # Kind Name Docs
172 Method pauseProducing Undocumented
176 Method resumeProducing Undocumented
181 Method stopProducing Undocumented
Line # Kind Name Docs
89 Method __init__ Undocumented
207 Method clearLineBuffer Clear buffered data.
384 Method connectionLost Called when the connection is shut down.
93 Method connectionMade Called when a connection is made.
211 Method dataReceived Protocol.dataReceived.
264 Method defineDone override to catch succesful DEFINE
260 Method defineFailed override to catch reasonable failure responses to DEFINE
191 Method dictCode_150_define n definitions retrieved
195 Method dictCode_151_define Definition text follows
208 Method dictCode_152_match n matches found, text follows
131 Method dictCode_220_conn Greeting message
127 Method dictCode_221_ready We are about to get kicked off, do nothing
238 Method dictCode_250_define ok
245 Method dictCode_250_match ok
140 Method dictCode_420_conn Undocumented
144 Method dictCode_421_conn Undocumented
136 Method dictCode_530_conn Undocumented
166 Method dictCode_550_define Invalid database
171 Method dictCode_550_match Invalid database
176 Method dictCode_551_match Invalid strategy
181 Method dictCode_552_define No match
186 Method dictCode_552_match No match
121 Method dictCode_default Unkown message
214 Method dictCode_text_define A line of definition text received
224 Method dictCode_text_match One line of match text received
256 Method dictConnected override to be notified when the server is ready to accept commands
278 Method lineLengthExceeded Called when the maximum line length has been reached.
103 Method lineReceived Override this for when each line is received.
341 Method makeConnection Make a connection to a transport and a server.
272 Method matchDone override to catch succesful MATCH
268 Method matchFailed override to catch resonable failure responses to MATCH
172 Method pauseProducing Undocumented
252 Method protocolError override to catch unexpected dict protocol conditions
263 Method rawDataReceived Override this for when raw data is received.
176 Method resumeProducing Undocumented
148 Method sendDefine Send a dict DEFINE command
97 Method sendLine Throw up if the line is longer than 1022 characters
157 Method sendMatch Send a dict MATCH command
241 Method setLineMode Sets the line-mode of this receiver.
256 Method setRawMode Sets the raw mode of this receiver.
181 Method stopProducing Undocumented
def __init__(self): (source)
Undocumented
def connectionMade(self): (source)

Called when a connection is made.

This may be considered the initializer of the protocol, because it is called when the connection is completed. For clients, this is called once the connection to the server has been established; for servers, this is called after an accept() call stops blocking and a socket has been received. If you need to send any greeting or initial message, do it here.
def sendLine(self, line): (source)
Throw up if the line is longer than 1022 characters
def lineReceived(self, line): (source)
Override this for when each line is received.
def dictCode_default(self, line): (source)
Unkown message
def dictCode_221_ready(self, line): (source)
We are about to get kicked off, do nothing
def dictCode_220_conn(self, line): (source)
Greeting message
def dictCode_530_conn(self): (source)
Undocumented
def dictCode_420_conn(self): (source)
Undocumented
def dictCode_421_conn(self): (source)
Undocumented
def sendDefine(self, database, word): (source)
Send a dict DEFINE command
def sendMatch(self, database, strategy, word): (source)
Send a dict MATCH command
def dictCode_550_define(self, line): (source)
Invalid database
def dictCode_550_match(self, line): (source)
Invalid database
def dictCode_551_match(self, line): (source)
Invalid strategy
def dictCode_552_define(self, line): (source)
No match
def dictCode_552_match(self, line): (source)
No match
def dictCode_150_define(self, line): (source)
n definitions retrieved
def dictCode_151_define(self, line): (source)
Definition text follows
def dictCode_152_match(self, line): (source)
n matches found, text follows
def dictCode_text_define(self, line): (source)
A line of definition text received
def dictCode_text_match(self, line): (source)
One line of match text received
def dictCode_250_define(self, line): (source)
ok
def dictCode_250_match(self, line): (source)
ok
def protocolError(self, reason): (source)
override to catch unexpected dict protocol conditions
def dictConnected(self): (source)
override to be notified when the server is ready to accept commands
def defineFailed(self, reason): (source)
override to catch reasonable failure responses to DEFINE
def defineDone(self, result): (source)
override to catch succesful DEFINE
def matchFailed(self, reason): (source)
override to catch resonable failure responses to MATCH
def matchDone(self, result): (source)
override to catch succesful MATCH
API Documentation for Twisted, generated by pydoctor at 2008-10-26 16:12:37.