|
Public Types |
| typedef set< DirEntry, DirEntry::Compare > | DirType |
| | set of direntries
|
Public Member Functions |
| void | sendCommand (string cmd) |
| | low level functions
|
| int | getResponse (string *resp=0) |
| | FTPSocket () |
| | empty constructor
|
| | FTPSocket (InetHostAddress host, timeout_t to=0) |
| | constructor; connects to a host on creation
|
| | FTPSocket (InetHostAddress host, string user, string passwd, timeout_t to=0) |
| | constructor; connects to a host and logs in
|
| | ~FTPSocket () |
| | destructor; logs out and disconnects if needed
|
| void | setAscii () |
| | set ascii-mode for datatransfer
|
| void | setEbcdic () |
| | set ebcdic-mode for datatransfer
|
| void | setBinary () |
| | set binary-mode for datatransfer
|
| string | command (string cmd) |
| | process a ftp-command
|
| void | open (InetHostAddress host, timeout_t to=0) |
| | sessionmanagement
|
| void | open (InetHostAddress host, string user, string passwd, timeout_t to=0) |
| | creates a connection to host and logs in
|
| void | login (string user, string passwd) |
| | logs in to a host; connection must be set up
|
| void | close (void) |
| | log out
|
| void | quit (void) |
| | close connection
|
| DirType | getDir (string dir="", timeout_t to=0) |
| | get directory
|
| string | pwd (void) |
| | get current working directory on the server
|
| void | cwd (string dir) |
| | change current working directory on the server
|
| void | cdup (void) |
| | change current working directory
|
| void | put (string file, string rfilename, timeout_t to=0) |
| | send local file to remote
|
| void | put (string file, timeout_t to=0) |
| | send local file to remote; local and remote filenames are identical
|
| void | get (string file, string lfilename, timeout_t to=0) |
| | get file from server
|
| void | get (string file, timeout_t to=0) |
| | get file from server; local and remote filenames are identical
|
| void | remove (string file) |
| | delete file from server
|
| void | rename (string from, string to) |
| | rename file on server
|
| void | mkdir (string dir) |
| | create directory on server
|
| void | rmdir (string dir) |
| | remove directory on server
|
Static Public Member Functions |
| void | setDebug (int d=1) |
| | enable debugging
|
| int | getDebug () |
| | queries debugging
|
Protected Attributes |
| TCPStream * | cs |
Static Protected Attributes |
| int | debug |
Friends |
| class | oftpstream |
| class | iftpstream |
It is based on the CommonC++-Framework.