class CFtpProtocol : public CBase |
Implements an FTP engine, and allows the client to access the individual FTP commands as defined in RFC959.
Note that before commands that cause data to transit on the DTP channel (e.g. NLST, LIST, RETR, STOR) a data buffer must be provided using SendBuffer()/RecvBuffer(). Also, when the client is notified of a MoreData() event, it must re-issue RecvBuffer() to get the rest of the data.
Public Member Functions | |
---|---|
~CFtpProtocol() | |
void | Abor(void) |
void | Acct(const TDesC8 &) |
void | Allo(const TDesC8 &) |
void | Allo(const TDesC8 &, const TDesC8 &) |
void | Appe(const TDesC8 &) |
void | Cdup(void) |
void | Connect(TSockAddr &) |
void | Connect(const THostName &) |
void | Connect(const THostName &, const TUint) |
void | Cwd(const TDesC8 &) |
void | Dele(const TDesC8 &) |
void | FTPServerAnswer(TDes &) |
IMPORT_C TUint32 | GetVersion(void) |
void | Help(const TDesC8 &) |
void | Help(void) |
void | List(void) |
void | List(const TDesC8 &) |
void | Mkd(const TDesC8 &) |
void | Mode(const TDesC8 &) |
IMPORT_C CFtpProtocol * | NewL(MFtpProtocolNotifier *) |
void | Nlst(void) |
void | Nlst(const TDesC8 &) |
void | Noop(void) |
void | Pass(const TDesC8 &) |
void | Pasv(void) |
void | Port(void) |
void | Port(TUint) |
void | Pwd(void) |
void | Quit(void) |
void | RecvBuffer(TDes8 *) |
void | Rein(void) |
void | Rest(const TDesC8 &) |
void | Retr(const TDesC8 &) |
void | Rmd(const TDesC8 &) |
void | Rnfr(const TDesC8 &) |
void | Rnto(const TDesC8 &) |
void | SendBuffer(TDes8 *) |
void | SendEOF(void) |
void | Site(const TDesC8 &) |
void | Smnt(const TDesC8 &) |
void | Stat(const TDesC8 &) |
void | Stat(void) |
void | Stor(const TDesC8 &) |
void | Stou(void) |
void | Stru(const TDesC8 &) |
void | Syst(void) |
void | Type(const TDesC8 &) |
void | Type(const TDesC8 &, const TDesC8 &) |
void | User(const TDesC8 &) |
void | UserCancel(void) |
void | Acct | ( | const TDesC8 & | aParam | ) | [pure virtual] |
Issues the ACCT command.
const TDesC8 & aParam | Telnet string identifying the user's account |
void | Allo | ( | const TDesC8 & | aParam | ) | [pure virtual] |
Issues the ALLO command (single parameter).
const TDesC8 & aParam | Number of bytes (using the logical byte size) of storage to be reserved for the file |
void | Allo | ( | const TDesC8 & | aParam1, |
const TDesC8 & | aParam2 | |||
) | [pure virtual] |
Issues the ALLO command (two parameters).
void | Appe | ( | const TDesC8 & | aFileName | ) | [pure virtual] |
Issues the APPE command.
const TDesC8 & aFileName | File name |
void | Connect | ( | TSockAddr & | aNetAddr | ) | [pure virtual] |
Connect to an FTP server, specifying an IP address.
TSockAddr & aNetAddr | FTP server's IP address |
void | Connect | ( | const THostName & | aServerName | ) | [pure virtual] |
Connect to an FTP server, specifying a DNS name.
const THostName & aServerName | FTP server's DNS name |
void | Connect | ( | const THostName & | aServerName, |
const TUint | aPort | |||
) | [pure virtual] |
Connect to an FTP server, specifying a DNS name and port number.
void | Cwd | ( | const TDesC8 & | aParam | ) | [pure virtual] |
Issues the CWD command.
const TDesC8 & aParam | Directory or other system dependent file group designator |
void | Dele | ( | const TDesC8 & | aFileName | ) | [pure virtual] |
Issues the DELE command.
const TDesC8 & aFileName | File name |
void | FTPServerAnswer | ( | TDes & | aServerAnswer | ) | [pure virtual] |
Gets the 3 digits answer received from the FTP server.
TDes & aServerAnswer | 3 digit answer |
IMPORT_C TUint32 | GetVersion | ( | void | ) | [static] |
Returns 32-bit, with MAJOR_VERSION in the highest byte MINOR_VERSION in the next byte i.e. MAJOR 2, MINOR 0x34, BUILD 0x278 would be "ver 2.52
void |
void | Help | ( | const TDesC8 & | aParam | ) | [pure virtual] |
Issues the HELP command.
const TDesC8 & aParam | HELP command argument |
void | List | ( | void | ) | [pure virtual] |
Issues the LIST command, giving a null argument.
void |
void | List | ( | const TDesC8 & | aParam | ) | [pure virtual] |
Issues the LIST command, specifying a file/directory name.
const TDesC8 & aParam | File/directory name |
void | Mkd | ( | const TDesC8 & | aParam | ) | [pure virtual] |
Issues the MKD command.
const TDesC8 & aParam | Directory name |
void | Mode | ( | const TDesC8 & | aParam | ) | [pure virtual] |
Issues the MODE command.
const TDesC8 & aParam | Telnet character code specifying the data transfer mode |
IMPORT_C CFtpProtocol * | NewL | ( | MFtpProtocolNotifier * | ) | [static] |
Allocates and constructs a new FTP engine object.
MFtpProtocolNotifier * |
void | Nlst | ( | void | ) | [pure virtual] |
Issues the NLST command, giving a null argument.
void |
void | Nlst | ( | const TDesC8 & | aParam | ) | [pure virtual] |
Issues the NLST command, specifying a directory name.
const TDesC8 & aParam | Directory name |
void | Pass | ( | const TDesC8 & | aParam | ) | [pure virtual] |
Issues the PASS command.
const TDesC8 & aParam | Telnet string specifying the user's password |
void | Port | ( | void | ) | [pure virtual] |
Issues the PORT command, setting the Data Transfer Process port to a value allocated by the Sockets Server.
void |
void | Port | ( | TUint | aPort | ) | [pure virtual] |
Issues the PORT command, specifying a port number.
TUint aPort | Port number |
void | RecvBuffer | ( | TDes8 * | aBuffer | ) | [pure virtual] |
Specifies a buffer to receive data from the DTP channel.
TDes8 * aBuffer | Receive buffer |
void | Rest | ( | const TDesC8 & | aParam | ) | [pure virtual] |
Issues the REST command.
const TDesC8 & aParam | The server marker at which file transfer is to be restarted |
void | Retr | ( | const TDesC8 & | aFileName | ) | [pure virtual] |
Issues the RETR command.
const TDesC8 & aFileName | File name |
void | Rmd | ( | const TDesC8 & | aParam | ) | [pure virtual] |
Issues the RMD command.
const TDesC8 & aParam | Directory name |
void | Rnfr | ( | const TDesC8 & | aFileName | ) | [pure virtual] |
Issues the RNFR command.
const TDesC8 & aFileName | File name |
void | Rnto | ( | const TDesC8 & | aFileName | ) | [pure virtual] |
Issues the RNTO command.
const TDesC8 & aFileName | File name |
void | SendBuffer | ( | TDes8 * | aBuffer | ) | [pure virtual] |
Specifies a buffer to transfer data to the DTP channel.
TDes8 * aBuffer | Send receive |
void | SendEOF | ( | void | ) | [pure virtual] |
Finishes the transfer initiated by a STOR command.
void |
void | Site | ( | const TDesC8 & | aParam | ) | [pure virtual] |
Issues the SITE command.
const TDesC8 & aParam | SITE command argument |
void | Smnt | ( | const TDesC8 & | aParam | ) | [pure virtual] |
Issues the SMNT command.
const TDesC8 & aParam | Pathname specifying a directory or other system dependent file group designator |
void | Stat | ( | const TDesC8 & | aParam | ) | [pure virtual] |
Issues the STAT command, specifying an argument.
const TDesC8 & aParam | STAT command argument |
void | Stor | ( | const TDesC8 & | aFileName | ) | [pure virtual] |
Issues the STOR command.
const TDesC8 & aFileName | File name |
void | Stru | ( | const TDesC8 & | aParam | ) | [pure virtual] |
Issues the STRU command.
const TDesC8 & aParam | Telnet character code specifying the file structure |
void | Type | ( | const TDesC8 & | aParam | ) | [pure virtual] |
Issues the TYPE command (single parameter).
const TDesC8 & aParam | First representation type parameter |
void | Type | ( | const TDesC8 & | aParam1, |
const TDesC8 & | aParam2 | |||
) | [pure virtual] |
Issues the TYPE command (two parameters).
void | User | ( | const TDesC8 & | aParam | ) | [pure virtual] |
Issues the USER command.
const TDesC8 & aParam | Telnet string identifying the user |
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.