Package twisted :: Package protocols :: Module irc :: Class DccFileReceiveBasic
[show private | hide private]
[frames | no frames]

Class DccFileReceiveBasic

BaseProtocol --+    
               |    
        Protocol --+
                   |
       Ephemeral --+
                   |
                  DccFileReceiveBasic

Known Subclasses:
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 Summary
  __init__(self, resumeOffset)
  __getstate__(self)
(inherited from Ephemeral)
  __setstate__(self, state)
(inherited from Ephemeral)
  connectionFailed(self)
(Deprecated) (inherited from Protocol)
  connectionLost(self, reason)
Called when the connection is shut down. (inherited from Protocol)
  connectionMade(self)
Called when a connection is made. (inherited from BaseProtocol)
  dataReceived(self, data)
Called when data is received.
  makeConnection(self, transport)
Make a connection to a transport and a server. (inherited from BaseProtocol)

Class Variable Summary
int bytesReceived

Method Details

dataReceived(self, data)

Called when data is received.

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.

Class Variable Details

bytesReceived

Type:
int
Value:
0                                                                      

Generated by Epydoc 1.1 on Sat Feb 15 21:19:13 2003 http://epydoc.sf.net