|
Public Types |
enum | { MaxIllegalPasswords = 3
} |
Public Member Functions |
| PFTPServer () |
| declare a server socket
|
| PFTPServer (const PString &readyString) |
| ~PFTPServer () |
| Delete the server, cleaning up passive sockets.
|
virtual PString | GetHelloString (const PString &user) const |
virtual PString | GetGoodbyeString (const PString &user) const |
| return the string printed just before exiting
|
virtual PString | GetSystemTypeString () const |
| return the string to be returned by the SYST command
|
BOOL | GetAllowThirdPartyPort () const |
| return the thirdPartyPort flag, allowing 3 host put and get.
|
void | SetAllowThirdPartyPort (BOOL state) |
| Set the thirdPartyPort flag.
|
BOOL | ProcessCommand () |
virtual BOOL | DispatchCommand (PINDEX code, const PString &args) |
virtual BOOL | CheckLoginRequired (PINDEX cmd) |
virtual BOOL | AuthoriseUser (const PString &user, const PString &password, BOOL &replied) |
virtual BOOL | OnUnknown (const PCaselessString &command) |
virtual void | OnError (PINDEX errorCode, PINDEX cmdNum, const char *msg) |
virtual void | OnSyntaxError (PINDEX cmdNum) |
| Called for syntax errors in commands.
|
virtual void | OnNotImplemented (PINDEX cmdNum) |
| Called for unimplemented commands.
|
virtual void | OnCommandSuccessful (PINDEX cmdNum) |
| Called for successful commands.
|
virtual BOOL | OnUSER (const PCaselessString &args) |
virtual BOOL | OnPASS (const PCaselessString &args) |
virtual BOOL | OnQUIT (const PCaselessString &args) |
virtual BOOL | OnPORT (const PCaselessString &args) |
virtual BOOL | OnSTRU (const PCaselessString &args) |
virtual BOOL | OnMODE (const PCaselessString &args) |
virtual BOOL | OnTYPE (const PCaselessString &args) |
virtual BOOL | OnNOOP (const PCaselessString &args) |
virtual BOOL | OnSYST (const PCaselessString &args) |
virtual BOOL | OnSTAT (const PCaselessString &args) |
virtual BOOL | OnRETR (const PCaselessString &args) |
virtual BOOL | OnSTOR (const PCaselessString &args) |
virtual BOOL | OnACCT (const PCaselessString &args) |
virtual BOOL | OnAPPE (const PCaselessString &args) |
virtual BOOL | OnRNFR (const PCaselessString &args) |
virtual BOOL | OnRNTO (const PCaselessString &args) |
virtual BOOL | OnDELE (const PCaselessString &args) |
virtual BOOL | OnCWD (const PCaselessString &args) |
virtual BOOL | OnCDUP (const PCaselessString &args) |
virtual BOOL | OnRMD (const PCaselessString &args) |
virtual BOOL | OnMKD (const PCaselessString &args) |
virtual BOOL | OnPWD (const PCaselessString &args) |
virtual BOOL | OnLIST (const PCaselessString &args) |
virtual BOOL | OnNLST (const PCaselessString &args) |
virtual BOOL | OnPASV (const PCaselessString &args) |
virtual BOOL | OnHELP (const PCaselessString &args) |
virtual BOOL | OnSITE (const PCaselessString &args) |
virtual BOOL | OnABOR (const PCaselessString &args) |
virtual BOOL | OnSMNT (const PCaselessString &args) |
virtual BOOL | OnREIN (const PCaselessString &args) |
virtual BOOL | OnSTOU (const PCaselessString &args) |
virtual BOOL | OnALLO (const PCaselessString &args) |
virtual BOOL | OnREST (const PCaselessString &args) |
void | SendToClient (const PFilePath &filename) |
| Send the specified file to the client.
|
Protected Types |
enum | {
NotConnected,
NeedUser,
NeedPassword,
Connected,
ClientConnect
} |
Protected Member Functions |
BOOL | OnOpen () |
| Call back to verify open succeeded in an PInternetProtocol class.
|
void | Construct () |
Protected Attributes |
PString | readyString |
BOOL | thirdPartyPort |
enum PFTPServer:: { ... } | state |
PIPSocket::Address | remoteHost |
WORD | remotePort |
PTCPSocket * | passiveSocket |
char | type |
char | structure |
char | mode |
PString | userName |
int | illegalPasswordCount |