Home | Trees | Index | Help |
---|
Package twisted :: Package protocols :: Module ftp :: Class DTP |
|
BaseProtocol
--+ |Protocol
--+ | DTP
Method Summary | |
---|---|
Prints outs the files in the given directory Note that the printout is very fake, and only gives the filesize, date, time and filename. | |
actionNLST(self,
dir)
| |
Send the given file to the peer | |
Retrieve a file from peer | |
(Deprecated) (inherited from Protocol )
| |
Called when the connection is shut down. | |
Will start an transfer, if one is queued up, when the client connects | |
Called whenever data is received. | |
Initiates a transfer of data. | |
Disconnect, and clean up a RETR Called by producer when the transfer is done | |
makeRETRTransport(self)
| |
makeSTORTransport(self)
| |
Set the action, and if the connected, start the transfer |
Class Variable Summary | |
---|---|
str |
action
|
NoneType |
file
|
NoneType |
filesize
|
NoneType |
pi
|
Method Details |
---|
actionLIST(self, dir)Prints outs the files in the given directory Note that the printout is very fake, and only gives the filesize, date, time and filename. |
actionRETR(self, queuedfile)Send the given file to the peer |
actionSTOR(self, queuedfile)Retrieve a file from peer |
connectionLost(self, reason)Called when the connection is shut down. Clear any circular references here, and any external references to this Protocol. The connection has been closed.
|
connectionMade(self)Will start an transfer, if one is queued up, when the client connects |
dataReceived(self, data)Called whenever data is received. Use this method to translate to a higher-level message. Usually, some callback will be made upon the receipt of each complete protocol message.
|
executeAction(self)Initiates a transfer of data. Its action is based on self.action, and self.pi.queuedfile |
finishRETR(self)Disconnect, and clean up a RETR Called by producer when the transfer is done |
setAction(self, action)Set the action, and if the connected, start the transfer |
Class Variable Details |
---|
action
|
file
|
filesize
|
pi
|
Home | Trees | Index | Help |
---|
Generated by Epydoc 1.1 on Fri Jun 27 03:45:40 2003 | http://epydoc.sf.net |