Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Class Members | File Members

Ftp Class Reference

Inheritance diagram for Ftp:

Protocol List of all members.

Public Member Functions

void Abor ()
void Allo (int nSize, int nRecordSize=-1)
void Appe (const std::string &sPath)
int CheckRights (const std::string &sUser, const std::string &sPass, const std::string &sPath, int mask)
int CloseDataConnection ()
u_long ComputeParseLength (const YYLTYPE &location)
virtual int controlConnection (ConnectionPtr pConnection, char *b1, char *b2, int bs1, int bs2, u_long nbtr, u_long id)
void Cwd (const std::string &sPath)
void Dele (const std::string &sPath)
 Ftp ()
void ftp_reply (int nReplyCode, const std::string &sCustomText="")
yyscan_t GetScanner ()
void Help (const std::string &sCmd="")
void List (const std::string &sParam="")
void Mkd (const std::string &sPath)
void Mode (int nMode)
void Nlst (const std::string &sParam="")
void Noop ()
int OpenDataActive ()
int OpenDataConnection ()
int OpenDataPassive ()
int ParseControlConnection ()
void Password (const std::string &sParam)
void Pasv ()
void Port (const FtpHost &host)
int PrintError (const char *msg)
void Pwd ()
void Quit ()
virtual char * registerName (char *out, int len)
void Rest (const std::string &sRestPoint)
void Retr (const std::string &sPath)
void Rmd (const std::string &sPath)
void Rnfr (const std::string &sPath)
void Rnto (const std::string &sPath)
void Size (const std::string &sPath)
void Stat (const std::string &sParam="")
void Stor (const std::string &sPath)
void Stou (const std::string &sPath)
void Stru (int nStructure)
void Syst ()
int Type (int nTypeCode, int nFormatControlCode=-1)
void User (const std::string &sParam)
void WaitDataConnection ()
virtual ~Ftp ()

Static Public Member Functions

int loadProtocolStatic (XmlParser *)
char * registerNameImpl (char *out, int len)
int unLoadProtocolStatic (XmlParser *)

Public Attributes

int m_nLocalControlPort
FtpThreadContext td

Static Public Attributes

int FIRST_PASV_PORT = 60000
int LAST_PASV_PORT = 65000
bool m_bAllowAnonymous = false
bool m_bAllowAsynchronousCmds = true
bool m_bAnonymousNeedPass = true
bool m_bEnablePipelining = true
bool m_bEnableStoreCmds = true

Protected Member Functions

bool BuildLocalPath (const std::string &sPath, std::string &sOutPath)
void EscapeTelnet (MemBuf &In, MemBuf &Out)
bool GetLocalPath (const std::string &sPath, std::string &sOutPath)
void RemovePipelinedCmds (MemBuf &In, MemBuf &Out)
void RetrStor (bool bRetr, bool bAppend, const std::string &sPath)
bool UserLoggedIn ()

Protected Attributes

int m_nPassivePort
yyscan_t m_scanner

Static Protected Attributes

SecurityCache secCache
Mutex secCacheMutex

Constructor & Destructor Documentation

Ftp::Ftp  ) 
 

Ftp::~Ftp  )  [virtual]
 


Member Function Documentation

void Ftp::Abor  ) 
 

void Ftp::Allo int  nSize,
int  nRecordSize = -1
 

void Ftp::Appe const std::string &  sPath  ) 
 

bool Ftp::BuildLocalPath const std::string &  sPath,
std::string &  sOutPath
[protected]
 

int Ftp::CheckRights const std::string &  sUser,
const std::string &  sPass,
const std::string &  sPath,
int  mask
 

int Ftp::CloseDataConnection  ) 
 

u_long Ftp::ComputeParseLength const YYLTYPE location  ) 
 

int Ftp::controlConnection ConnectionPtr  pConnection,
char *  b1,
char *  b2,
int  bs1,
int  bs2,
u_long  nbtr,
u_long  id
[virtual]
 

Control the connection.

Reimplemented from Protocol.

void Ftp::Cwd const std::string &  sPath  ) 
 

void Ftp::Dele const std::string &  sPath  ) 
 

void Ftp::EscapeTelnet MemBuf In,
MemBuf Out
[protected]
 

void Ftp::ftp_reply int  nReplyCode,
const std::string &  sCustomText = ""
 

bool Ftp::GetLocalPath const std::string &  sPath,
std::string &  sOutPath
[protected]
 

yyscan_t Ftp::GetScanner  ) 
 

void Ftp::Help const std::string &  sCmd = ""  ) 
 

void Ftp::List const std::string &  sParam = ""  ) 
 

int Ftp::loadProtocolStatic XmlParser  )  [static]
 

void Ftp::Mkd const std::string &  sPath  ) 
 

void Ftp::Mode int  nMode  ) 
 

void Ftp::Nlst const std::string &  sParam = ""  ) 
 

void Ftp::Noop  ) 
 

int Ftp::OpenDataActive  ) 
 

int Ftp::OpenDataConnection  ) 
 

int Ftp::OpenDataPassive  ) 
 

int Ftp::ParseControlConnection  ) 
 

void Ftp::Password const std::string &  sParam  ) 
 

void Ftp::Pasv  ) 
 

void Ftp::Port const FtpHost host  ) 
 

int Ftp::PrintError const char *  msg  ) 
 

void Ftp::Pwd  ) 
 

void Ftp::Quit  ) 
 

char * Ftp::registerName char *  out,
int  len
[virtual]
 

Returns the name of the protocol. If an out buffer is defined fullfill it with the name too.

Reimplemented from Protocol.

char * Ftp::registerNameImpl char *  out,
int  len
[static]
 

void Ftp::RemovePipelinedCmds MemBuf In,
MemBuf Out
[protected]
 

void Ftp::Rest const std::string &  sRestPoint  ) 
 

void Ftp::Retr const std::string &  sPath  ) 
 

void Ftp::RetrStor bool  bRetr,
bool  bAppend,
const std::string &  sPath
[protected]
 

void Ftp::Rmd const std::string &  sPath  ) 
 

void Ftp::Rnfr const std::string &  sPath  ) 
 

void Ftp::Rnto const std::string &  sPath  ) 
 

void Ftp::Size const std::string &  sPath  ) 
 

void Ftp::Stat const std::string &  sParam = ""  ) 
 

void Ftp::Stor const std::string &  sPath  ) 
 

void Ftp::Stou const std::string &  sPath  ) 
 

void Ftp::Stru int  nStructure  ) 
 

void Ftp::Syst  ) 
 

int Ftp::Type int  nTypeCode,
int  nFormatControlCode = -1
 

int Ftp::unLoadProtocolStatic XmlParser  )  [static]
 

void Ftp::User const std::string &  sParam  ) 
 

bool Ftp::UserLoggedIn  )  [protected]
 

void Ftp::WaitDataConnection  ) 
 


Member Data Documentation

int Ftp::FIRST_PASV_PORT = 60000 [static]
 

int Ftp::LAST_PASV_PORT = 65000 [static]
 

bool Ftp::m_bAllowAnonymous = false [static]
 

bool Ftp::m_bAllowAsynchronousCmds = true [static]
 

bool Ftp::m_bAnonymousNeedPass = true [static]
 

bool Ftp::m_bEnablePipelining = true [static]
 

bool Ftp::m_bEnableStoreCmds = true [static]
 

int Ftp::m_nLocalControlPort
 

int Ftp::m_nPassivePort [protected]
 

yyscan_t Ftp::m_scanner [protected]
 

SecurityCache Ftp::secCache [static, protected]
 

Cache for security files.

Mutex Ftp::secCacheMutex [static, protected]
 

Access the security cache safely.

FtpThreadContext Ftp::td
 


Generated on Thu May 1 12:41:00 2008 for MyServer by  doxygen 1.3.9.1