Direct Client Connection protocol type CHAT.
DCC CHAT is really just your run o' the mill basic.LineReceiver
protocol. This class only varies from that slightly, accepting either LF
or CR LF for a line delimeter for incoming messages while always using CR
LF for outgoing.
The lineReceived method implemented here uses the DCC connection's
'client' attribute (provided upon construction) to deliver incoming lines
from the DCC chat via IRCClient's normal privmsg interface. That's
something of a spoof, which you may well want to override.
Method Summary |
|
__init__ (self,
client,
queryData)
Initialize a new DCC CHAT session. |
|
dataReceived (self,
data)
Protocol.dataReceived. |
|
lineReceived (self,
line)
Override this for when each line is received. |
Inherited from LineReceiver |
|
clearLineBuffer (self)
Clear buffered data. |
|
lineLengthExceeded (self,
line)
Called when the maximum line length has been reached. |
|
rawDataReceived (self,
data)
Override this for when raw data is received. |
|
sendLine (self,
line)
Sends a line to the other end of the connection. |
|
setLineMode (self,
extra)
Sets the line-mode of this receiver. |
|
setRawMode (self)
Sets the raw mode of this receiver. |
Inherited from Protocol |
|
connectionFailed (self)
(Deprecated) |
|
connectionLost (self,
reason)
Called when the connection is shut down. |
Inherited from BaseProtocol |
|
connectionMade (self)
Called when a connection is made. |
|
makeConnection (self,
transport)
Make a connection to a transport and a server. |
Inherited from Ephemeral |
|
__getstate__ (self)
|
|
__setstate__ (self,
state)
|