class documentation
class DccFileReceiveBasic(protocol.Protocol, styles.Ephemeral): (source)
Known subclasses: twisted.words.protocols.irc.DccFileReceive
Bare protocol to receive a Direct Client Connection SEND stream.
This does enough to keep the other guy talking, but you'll want to extend my dataReceived method to *do* something with the data I get.
Method | __init__ |
No summary |
Method | data |
See: protocol.Protocol.dataReceived |
Instance Variable | bytes |
An integer representing the number of bytes of data received. |
Instance Variable | resume |
Undocumented |
Inherited from Protocol
:
Method | connection |
Called when the connection is shut down. |
Method | log |
Return a prefix matching the class name, to identify log messages related to this protocol instance. |
Class Variable | factory |
Undocumented |
Inherited from BaseProtocol
(via Protocol
):
Method | connection |
Called when a connection is made. |
Method | make |
Make a connection to a transport and a server. |
Instance Variable | connected |
Undocumented |
Instance Variable | transport |
Undocumented |
Inherited from Ephemeral
(via Protocol
, BaseProtocol
):
Method | __getstate__ |
Undocumented |
Method | __reduce__ |
Serialize any subclass of Ephemeral in a way which replaces it with Ephemeral itself. |
Method | __setstate__ |
Undocumented |
Instance Variable | __class__ |
Undocumented |
overridden in
twisted.words.protocols.irc.DccFileReceive
Parameters | |
resumeint | An integer representing the amount of bytes from where the transfer of data should be resumed. |
overridden in
twisted.words.protocols.irc.DccFileReceive
See: protocol.Protocol.dataReceived
Warning: This just acknowledges to the remote host that the data has been received; it doesn't do anything with the data, so you'll want to override this.