My Project
 All Classes Functions Variables Pages
Classes | Public Member Functions | Static Public Member Functions | Static Public Attributes | List of all members
FTPServer Class Reference

Classes

class  FileException
 

Public Member Functions

void setCredentials (std::string userid, std::string password)
 
void start ()
 
void setPort (uint16_t port)
 
void setCallbacks (FTPCallbacks *pFTPCallbacks)
 

Static Public Member Functions

static std::string getCurrentDirectory ()
 

Static Public Attributes

static const int RESPONSE_150_ABOUT_TO_OPEN_DATA_CONNECTION = 150
 
static const int RESPONSE_200_COMMAND_OK = 200
 
static const int RESPONSE_202_COMMAND_NOT_IMPLEMENTED = 202
 
static const int RESPONSE_212_DIRECTORY_STATUS = 212
 
static const int RESPONSE_213_FILE_STATUS = 213
 
static const int RESPONSE_214_HELP_MESSAGE = 214
 
static const int RESPONSE_220_SERVICE_READY = 220
 
static const int RESPONSE_221_CLOSING_CONTROL_CONNECTION = 221
 
static const int RESPONSE_230_USER_LOGGED_IN = 230
 
static const int RESPONSE_226_CLOSING_DATA_CONNECTION = 226
 
static const int RESPONSE_227_ENTERING_PASSIVE_MODE = 227
 
static const int RESPONSE_331_PASSWORD_REQUIRED = 331
 
static const int RESPONSE_332_NEED_ACCOUNT = 332
 
static const int RESPONSE_500_COMMAND_UNRECOGNIZED = 500
 
static const int RESPONSE_502_COMMAND_NOT_IMPLEMENTED = 502
 
static const int RESPONSE_503_BAD_SEQUENCE = 503
 
static const int RESPONSE_530_NOT_LOGGED_IN = 530
 
static const int RESPONSE_550_ACTION_NOT_TAKEN = 550
 
static const int RESPONSE_553_FILE_NAME_NOT_ALLOWED = 553
 

Member Function Documentation

std::string FTPServer::getCurrentDirectory ( )
static

Retrieve the current directory.

void FTPServer::setCallbacks ( FTPCallbacks pCallbacks)

Set the callbacks that are to be invoked to perform work.

Parameters
pCallbacksAn instance of an FTPCallbacks based class.
void FTPServer::setPort ( uint16_t  port)

Set the TCP port we should listen on for FTP client requests.

void FTPServer::start ( )

Start being an FTP Server.


The documentation for this class was generated from the following files: