Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

BFTPControlConn Class Reference

#include <BFTPServer.h>

Inheritance diagram for BFTPControlConn:

BTCPConnection List of all members.

Public Member Functions

 BFTPControlConn (BFTPServer *master, int conn, const struct sockaddr_in &lastaddr)
std::string userInfo ()
const BFTPUsercurrentUser ()
virtual void close ()
 Close connection.

virtual void handle ()
 Handle incoming connections and connection attempts. Call periodically.

int createDataConnection ()
void destroyDataConnection ()
void updateActivityTime ()
bool sendReply (int code, const char *format,...)
bool sendReply (int code, const std::string &reply)
std::string makeAbsoluteFilename (const std::string &fname)
 Make fname in the user's root into a global absolute filename.

BFTPServergetMaster ()
Delegate handling
void setDelegate (Delegate *deleg)
Delegate * delegate ()

Protected Types

enum  TransferType { TYPE_ASCII, TYPE_IMAGE }

Protected Member Functions

virtual bool handleInput (const unsigned char *buf, int buflen)
 Called by the default handleConnection() if input was received.

bool setLoginName (const std::string &name)
bool setLoginPassword (const std::string &pass)
bool setCurrentUserByName (const std::string &name)
bool changeWorkingDir (const std::string &newwd)
bool listDir (BFTPDataConn *dc, const std::string &args, bool namesOnly=false)
bool storeFile (BFTPDataConn *dc, const std::string &args)
bool retrieveFile (BFTPDataConn *dc, const std::string &args)
void closeIfInactive ()
void dcHandleAccept (BFTPDataConn *dc)
void dcReportFinish (BFTPDataConn *dc, BFTPDataConn::DCMode mode, bool remoteclosed)

Protected Attributes

BFTPDataConndc
BFTPServermaster
Delegate * deleg
std::string cwd
std::string fullcwd
std::string lastcmd
std::string lastarg
std::string renameFrom
char buf [4096]
 The read block. Use this for data transfer.

TransferType ttype
BFTPUser user
time_t lastActivityTime

Detailed Description

FTP control connection, managed by the BFTPServer class. Do not use directly.


The documentation for this class was generated from the following file:
Generated on Thu Feb 14 08:32:15 2008 for libDSFTP by doxygen1.3-rc3