Table of Contents

Class: DTP Twisted-0.17.4/twisted/protocols/ftp.py

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.

Base Classes   
protocol.Protocol
Methods   
actionLIST
actionRETR
actionSTOR
connectionLost
connectionMade
dataReceived
executeAction
finishRETR
makeRETRTransport
makeSTORTransport
setAction
  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


Table of Contents

This document was automatically generated on Sat Apr 20 01:31:04 2002 by HappyDoc version 2.0