|
Public Types |
| enum | transMode_t { ModeStream,
ModeBlock,
ModeCompressed
} |
| | FTP transfer modes. More...
|
| enum | transType_t { TypeASCII,
TypeEBCDIC,
TypeImage
} |
| enum | dataMode_t { Passive,
Active
} |
Public Member Functions |
| | FTPClient (int domain) throw (IOError) |
| | FTPClient (const NetworkAddress &addr, port_t port) throw (IOError) |
| | ~FTPClient () throw () |
| void | connect (const NetworkAddress &addr, port_t port) throw (IOError, FTPError) |
| void | close () throw (IOError) |
| | Close the socket.
|
| void | sendCmd (const std::string &cmd) throw (IOError) |
| const FTPResponse * | readResponse () throw (IOError) |
| const FTPResponse * | lastResponse () |
| void | login (const std::string &user, const std::string &passwd, const std::string &account="") throw (IOError, FTPError) |
| void | logout () throw (IOError, FTPError) |
| void | setMode (transMode_t mode) throw (IOError, FTPError) |
| transMode_t | mode () const throw () |
| void | setType (transType_t type) throw (IOError,FTPError) |
| transType_t | type () const throw () |
| | Socket type.
|
| std::string | cwd () throw (IOError, FTPError) |
| | Current working directory.
|
| void | chdir (const std::string &path) throw (IOError, FTPError) |
| | Change working directory.
|
| void | cdup () throw (IOError, FTPError) |
| | Change directory one level up.
|
| void | mkdir (const std::string &path) throw (IOError, FTPError) |
| | Remove directory.
|
| void | rmdir (const std::string &path) throw (IOError, FTPError) |
| | Remove directory.
|
| void | remove (const std::string &path) throw (IOError, FTPError) |
| | Remove file.
|
| FTPData * | dir (const std::string &path="") throw (IOError, FTPError) |
| | Retrieve directory listing.
|
| FTPData * | store (const std::string &path) throw (IOError, FTPError) |
| FTPData * | retrieve (const std::string &path) throw (IOError, FTPError) |
| void | noop () throw (IOError, FTPError) |
| | No operation.
|
| bool | testResponse () throw (IOError) |
| | Test if data is available.
|
| FTPData * | dataConn () const throw () |