A Client/Server-independent implementation of the DTP-protocol.
Performs the actions RETR, STOR and LIST. The data transfer will
start as soon as:
1) The user has connected 2) the property action has been set.
Methods
|
|
|
|
actionLIST
|
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
|
actionRETR ( self, queuedfile )
Send the given file to the peer
|
|
actionSTOR
|
actionSTOR ( self, queuedfile )
Retrieve a file from peer
|
|
connectionLost
|
connectionLost ( self )
|
|
connectionMade
|
connectionMade ( self )
Will start an transfer, if one is queued up, when the client connects
|
|
dataReceived
|
dataReceived ( self, data )
|
|
executeAction
|
executeAction ( self )
Initiates a transfer of data.
Its action is based on self.action, and self.pi.queuedfile
|
|
finishRETR
|
finishRETR ( self )
Disconnect, and clean up a RETR
Called by producer when the transfer is done
|
|
makeRETRTransport
|
makeRETRTransport ( self )
|
|
makeSTORTransport
|
makeSTORTransport ( self )
|
|
setAction
|
setAction ( self, action )
Set the action, and if the connected, start the transfer
|
|