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 | |
connectionLost(self,
reason)
| |
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 | |
Inherited from Protocol | |
(Deprecated) | |
Inherited from BaseProtocol | |
Make a connection to a transport and a server. |
Class Variable Summary | |
---|---|
str |
action = ''
|
NoneType |
file = None |
NoneType |
filesize = None |
NoneType |
pi = None |
Inherited from Protocol | |
tuple |
__implements__ = (<class twisted.internet.interfaces.IPr...
|
Inherited from BaseProtocol | |
int |
connected = 0 |
NoneType |
transport = None |
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 |
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 2.0 on Sat Oct 25 00:54:49 2003 | http://epydoc.sf.net |