sptk2 logo
SPTK Home Page

sptk::CFTPSocket Class Reference
[Utility Classes]

FTP socket. More...

#include <CFTPConnect.h>

Inheritance diagram for sptk::CFTPSocket:

sptk::CSocket

List of all members.

Public Member Functions

 CFTPSocket ()
 Default constructor.
 ~CFTPSocket ()
 Destructor.
virtual void open (std::string hostName="", int port=0, CSocketOpenMode openMode=SOM_CONNECT)
 Establish the connection.
const CStringsresponse () const
 Returns a reference to server response string list.
const CStringslogin (std::string user, std::string password)
 Logs in to the server.
const CStringscommand (std::string cmd)
 Sends a command to the server.
const CStringsget_response ()
 Reads server response after calling a command.


Detailed Description

FTP socket.

Connects to FTP server. It takes two of such sockets to establish the correct FTP communication


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

Mon Mar 5 11:56:05 2012: SPTK 3.5.7