Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
ftp_server_commands.h File Reference
FTP server (command processing) More...
Go to the source code of this file.
Functions | |
| void | ftpServerProcessCmd (FtpServerContext *context, FtpClientConnection *connection) |
| FTP command processing. | |
| void | ftpServerProcessUnknownCmd (FtpServerContext *context, FtpClientConnection *connection, char_t *param) |
| Unknown command processing. | |
| void | ftpServerProcessNoop (FtpServerContext *context, FtpClientConnection *connection, char_t *param) |
| NOOP command processing. | |
| void | ftpServerProcessSyst (FtpServerContext *context, FtpClientConnection *connection, char_t *param) |
| SYST command processing. | |
| void | ftpServerProcessFeat (FtpServerContext *context, FtpClientConnection *connection, char_t *param) |
| FEAT command processing. | |
| void | ftpServerProcessType (FtpServerContext *context, FtpClientConnection *connection, char_t *param) |
| TYPE command processing. | |
| void | ftpServerProcessStru (FtpServerContext *context, FtpClientConnection *connection, char_t *param) |
| STRU command processing. | |
| void | ftpServerProcessMode (FtpServerContext *context, FtpClientConnection *connection, char_t *param) |
| MODE command processing. | |
| void | ftpServerProcessUser (FtpServerContext *context, FtpClientConnection *connection, char_t *param) |
| USER command processing. | |
| void | ftpServerProcessPass (FtpServerContext *context, FtpClientConnection *connection, char_t *param) |
| PASS command processing. | |
| void | ftpServerProcessRein (FtpServerContext *context, FtpClientConnection *connection, char_t *param) |
| REIN command processing. | |
| void | ftpServerProcessQuit (FtpServerContext *context, FtpClientConnection *connection, char_t *param) |
| QUIT command processing. | |
| void | ftpServerProcessPort (FtpServerContext *context, FtpClientConnection *connection, char_t *param) |
| PORT command processing. | |
| void | ftpServerProcessEprt (FtpServerContext *context, FtpClientConnection *connection, char_t *param) |
| EPRT command processing. | |
| void | ftpServerProcessPasv (FtpServerContext *context, FtpClientConnection *connection, char_t *param) |
| PASV command processing. | |
| void | ftpServerProcessEpsv (FtpServerContext *context, FtpClientConnection *connection, char_t *param) |
| EPSV command processing. | |
| void | ftpServerProcessAbor (FtpServerContext *context, FtpClientConnection *connection, char_t *param) |
| ABOR command processing. | |
| void | ftpServerProcessPwd (FtpServerContext *context, FtpClientConnection *connection, char_t *param) |
| PWD command processing. | |
| void | ftpServerProcessCwd (FtpServerContext *context, FtpClientConnection *connection, char_t *param) |
| CWD command processing. | |
| void | ftpServerProcessCdup (FtpServerContext *context, FtpClientConnection *connection, char_t *param) |
| CDUP command processing. | |
| void | ftpServerProcessList (FtpServerContext *context, FtpClientConnection *connection, char_t *param) |
| LIST command processing. | |
| void | ftpServerProcessMkd (FtpServerContext *context, FtpClientConnection *connection, char_t *param) |
| MKD command processing. | |
| void | ftpServerProcessRmd (FtpServerContext *context, FtpClientConnection *connection, char_t *param) |
| RMD command processing. | |
| void | ftpServerProcessSize (FtpServerContext *context, FtpClientConnection *connection, char_t *param) |
| SIZE command processing. | |
| void | ftpServerProcessRetr (FtpServerContext *context, FtpClientConnection *connection, char_t *param) |
| RETR command processing. | |
| void | ftpServerProcessStor (FtpServerContext *context, FtpClientConnection *connection, char_t *param) |
| STOR command processing. | |
| void | ftpServerProcessAppe (FtpServerContext *context, FtpClientConnection *connection, char_t *param) |
| APPE command processing. | |
| void | ftpServerProcessRnfr (FtpServerContext *context, FtpClientConnection *connection, char_t *param) |
| RNFR command processing. | |
| void | ftpServerProcessRnto (FtpServerContext *context, FtpClientConnection *connection, char_t *param) |
| RNTO command processing. | |
| void | ftpServerProcessDele (FtpServerContext *context, FtpClientConnection *connection, char_t *param) |
| DELE command processing. | |
Detailed Description
FTP server (command processing)
License
Copyright (C) 2010-2017 Oryx Embedded SARL. All rights reserved.
This file is part of CycloneTCP Open.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- Version:
- 1.7.6
Definition in file ftp_server_commands.h.
Function Documentation
| void ftpServerProcessAbor | ( | FtpServerContext * | context, |
| FtpClientConnection * | connection, | ||
| char_t * | param | ||
| ) |
ABOR command processing.
The ABOR command tells the server to abort the previous FTP service command and any associated transfer of data
- Parameters:
-
[in] context Pointer to the FTP server context [in] connection Pointer to the client connection [in] param Command line parameters
Definition at line 1178 of file ftp_server_commands.c.
| void ftpServerProcessAppe | ( | FtpServerContext * | context, |
| FtpClientConnection * | connection, | ||
| char_t * | param | ||
| ) |
APPE command processing.
The APPE command is used to append data to the specified file
- Parameters:
-
[in] context Pointer to the FTP server context [in] connection Pointer to the client connection [in] param Command line parameters
Definition at line 1959 of file ftp_server_commands.c.
| void ftpServerProcessCdup | ( | FtpServerContext * | context, |
| FtpClientConnection * | connection, | ||
| char_t * | param | ||
| ) |
CDUP command processing.
The CDUP command allows the user to change to the parent directory
- Parameters:
-
[in] context Pointer to the FTP server context [in] connection Pointer to the client connection [in] param Command line parameters
Definition at line 1338 of file ftp_server_commands.c.
| void ftpServerProcessCmd | ( | FtpServerContext * | context, |
| FtpClientConnection * | connection | ||
| ) |
FTP command processing.
- Parameters:
-
[in] context Pointer to the FTP server context [in] connection Pointer to the client connection
Definition at line 53 of file ftp_server_commands.c.
| void ftpServerProcessCwd | ( | FtpServerContext * | context, |
| FtpClientConnection * | connection, | ||
| char_t * | param | ||
| ) |
CWD command processing.
The CWD command allows the user to work with a different directory
- Parameters:
-
[in] context Pointer to the FTP server context [in] connection Pointer to the client connection [in] param Command line parameters
Definition at line 1261 of file ftp_server_commands.c.
| void ftpServerProcessDele | ( | FtpServerContext * | context, |
| FtpClientConnection * | connection, | ||
| char_t * | param | ||
| ) |
DELE command processing.
The DELE command causes the file specified in the pathname to be deleted at the server site
- Parameters:
-
[in] context Pointer to the FTP server context [in] connection Pointer to the client connection [in] param Command line parameters
Definition at line 2260 of file ftp_server_commands.c.
| void ftpServerProcessEprt | ( | FtpServerContext * | context, |
| FtpClientConnection * | connection, | ||
| char_t * | param | ||
| ) |
EPRT command processing.
The EPRT command allows for the specification of an extended address for the data connection
- Parameters:
-
[in] context Pointer to the FTP server context [in] connection Pointer to the client connection [in] param Command line parameters
Definition at line 778 of file ftp_server_commands.c.
| void ftpServerProcessEpsv | ( | FtpServerContext * | context, |
| FtpClientConnection * | connection, | ||
| char_t * | param | ||
| ) |
EPSV command processing.
The EPSV command requests that a server listen on a data port and wait for a connection
- Parameters:
-
[in] context Pointer to the FTP server context [in] connection Pointer to the client connection [in] param Command line parameters
Definition at line 1069 of file ftp_server_commands.c.
| void ftpServerProcessFeat | ( | FtpServerContext * | context, |
| FtpClientConnection * | connection, | ||
| char_t * | param | ||
| ) |
FEAT command processing.
The FEAT command allows a client to discover which optional commands a server supports
- Parameters:
-
[in] context Pointer to the FTP server context [in] connection Pointer to the client connection [in] param Command line parameters
Definition at line 291 of file ftp_server_commands.c.
| void ftpServerProcessList | ( | FtpServerContext * | context, |
| FtpClientConnection * | connection, | ||
| char_t * | param | ||
| ) |
LIST command processing.
The LIST command is used to list the content of a directory
- Parameters:
-
[in] context Pointer to the FTP server context [in] connection Pointer to the client connection [in] param Command line parameters
Definition at line 1385 of file ftp_server_commands.c.
| void ftpServerProcessMkd | ( | FtpServerContext * | context, |
| FtpClientConnection * | connection, | ||
| char_t * | param | ||
| ) |
MKD command processing.
The MKD command causes the directory specified in the pathname to be created as a directory
- Parameters:
-
[in] context Pointer to the FTP server context [in] connection Pointer to the client connection [in] param Command line parameters
Definition at line 1507 of file ftp_server_commands.c.
| void ftpServerProcessMode | ( | FtpServerContext * | context, |
| FtpClientConnection * | connection, | ||
| char_t * | param | ||
| ) |
MODE command processing.
The MODE command specifies the data transfer mode
- Parameters:
-
[in] context Pointer to the FTP server context [in] connection Pointer to the client connection [in] param Command line parameters
Definition at line 393 of file ftp_server_commands.c.
| void ftpServerProcessNoop | ( | FtpServerContext * | context, |
| FtpClientConnection * | connection, | ||
| char_t * | param | ||
| ) |
NOOP command processing.
The NOOP command does not affect any parameters or previously entered commands. It specifies no action other than that the server send an OK reply
- Parameters:
-
[in] context Pointer to the FTP server context [in] connection Pointer to the client connection [in] param Command line parameters
Definition at line 253 of file ftp_server_commands.c.
| void ftpServerProcessPass | ( | FtpServerContext * | context, |
| FtpClientConnection * | connection, | ||
| char_t * | param | ||
| ) |
PASS command processing.
The USER command specifies the user's password
- Parameters:
-
[in] context Pointer to the FTP server context [in] connection Pointer to the client connection [in] param Command line parameters
Definition at line 503 of file ftp_server_commands.c.
| void ftpServerProcessPasv | ( | FtpServerContext * | context, |
| FtpClientConnection * | connection, | ||
| char_t * | param | ||
| ) |
PASV command processing.
The PASV command requests the server to listen on a data port and to wait for a connection rather than initiate one upon receipt of a transfer command
- Parameters:
-
[in] context Pointer to the FTP server context [in] connection Pointer to the client connection [in] param Command line parameters
Definition at line 927 of file ftp_server_commands.c.
| void ftpServerProcessPort | ( | FtpServerContext * | context, |
| FtpClientConnection * | connection, | ||
| char_t * | param | ||
| ) |
PORT command processing.
The PORT command specifies the data port to be used for the data connection
- Parameters:
-
[in] context Pointer to the FTP server context [in] connection Pointer to the client connection [in] param Command line parameters
Definition at line 656 of file ftp_server_commands.c.
| void ftpServerProcessPwd | ( | FtpServerContext * | context, |
| FtpClientConnection * | connection, | ||
| char_t * | param | ||
| ) |
PWD command processing.
The PWD command causes the name of the current working directory to be returned in the reply
- Parameters:
-
[in] context Pointer to the FTP server context [in] connection Pointer to the client connection [in] param Command line parameters
Definition at line 1232 of file ftp_server_commands.c.
| void ftpServerProcessQuit | ( | FtpServerContext * | context, |
| FtpClientConnection * | connection, | ||
| char_t * | param | ||
| ) |
QUIT command processing.
The QUIT command is used to terminate a user session
- Parameters:
-
[in] context Pointer to the FTP server context [in] connection Pointer to the client connection [in] param Command line parameters
Definition at line 600 of file ftp_server_commands.c.
| void ftpServerProcessRein | ( | FtpServerContext * | context, |
| FtpClientConnection * | connection, | ||
| char_t * | param | ||
| ) |
REIN command processing.
The REIN command is used to reinitialize a user session
- Parameters:
-
[in] context Pointer to the FTP server context [in] connection Pointer to the client connection [in] param Command line parameters
Definition at line 564 of file ftp_server_commands.c.
| void ftpServerProcessRetr | ( | FtpServerContext * | context, |
| FtpClientConnection * | connection, | ||
| char_t * | param | ||
| ) |
RETR command processing.
The RETR command is used to retrieve the content of the specified file
- Parameters:
-
[in] context Pointer to the FTP server context [in] connection Pointer to the client connection [in] param Command line parameters
Definition at line 1738 of file ftp_server_commands.c.
| void ftpServerProcessRmd | ( | FtpServerContext * | context, |
| FtpClientConnection * | connection, | ||
| char_t * | param | ||
| ) |
RMD command processing.
The RMD command causes the directory specified in the pathname to be removed
- Parameters:
-
[in] context Pointer to the FTP server context [in] connection Pointer to the client connection [in] param Command line parameters
Definition at line 1585 of file ftp_server_commands.c.
| void ftpServerProcessRnfr | ( | FtpServerContext * | context, |
| FtpClientConnection * | connection, | ||
| char_t * | param | ||
| ) |
RNFR command processing.
The RNFR command specifies the old pathname of the file which is to be renamed
- Parameters:
-
[in] context Pointer to the FTP server context [in] connection Pointer to the client connection [in] param Command line parameters
Definition at line 2083 of file ftp_server_commands.c.
| void ftpServerProcessRnto | ( | FtpServerContext * | context, |
| FtpClientConnection * | connection, | ||
| char_t * | param | ||
| ) |
RNTO command processing.
The RNTO command specifies the new pathname of the file specified in the immediately preceding RNFR command
- Parameters:
-
[in] context Pointer to the FTP server context [in] connection Pointer to the client connection [in] param Command line parameters
Definition at line 2159 of file ftp_server_commands.c.
| void ftpServerProcessSize | ( | FtpServerContext * | context, |
| FtpClientConnection * | connection, | ||
| char_t * | param | ||
| ) |
SIZE command processing.
The SIZE command is used to obtain the transfer size of the specified file
- Parameters:
-
[in] context Pointer to the FTP server context [in] connection Pointer to the client connection [in] param Command line parameters
Definition at line 1661 of file ftp_server_commands.c.
| void ftpServerProcessStor | ( | FtpServerContext * | context, |
| FtpClientConnection * | connection, | ||
| char_t * | param | ||
| ) |
STOR command processing.
The STOR command is used to store data to the specified file
- Parameters:
-
[in] context Pointer to the FTP server context [in] connection Pointer to the client connection [in] param Command line parameters
Definition at line 1848 of file ftp_server_commands.c.
| void ftpServerProcessStru | ( | FtpServerContext * | context, |
| FtpClientConnection * | connection, | ||
| char_t * | param | ||
| ) |
STRU command processing.
The STRU command specifies the file structure
- Parameters:
-
[in] context Pointer to the FTP server context [in] connection Pointer to the client connection [in] param Command line parameters
Definition at line 356 of file ftp_server_commands.c.
| void ftpServerProcessSyst | ( | FtpServerContext * | context, |
| FtpClientConnection * | connection, | ||
| char_t * | param | ||
| ) |
SYST command processing.
The SYST command is used to find out the type of operating system at the server side
- Parameters:
-
[in] context Pointer to the FTP server context [in] connection Pointer to the client connection [in] param Command line parameters
Definition at line 272 of file ftp_server_commands.c.
| void ftpServerProcessType | ( | FtpServerContext * | context, |
| FtpClientConnection * | connection, | ||
| char_t * | param | ||
| ) |
TYPE command processing.
The TYPE command specifies the representation type
- Parameters:
-
[in] context Pointer to the FTP server context [in] connection Pointer to the client connection [in] param Command line parameters
Definition at line 313 of file ftp_server_commands.c.
| void ftpServerProcessUnknownCmd | ( | FtpServerContext * | context, |
| FtpClientConnection * | connection, | ||
| char_t * | param | ||
| ) |
Unknown command processing.
- Parameters:
-
[in] context Pointer to the FTP server context [in] connection Pointer to the client connection [in] param Command line parameters
Definition at line 215 of file ftp_server_commands.c.
| void ftpServerProcessUser | ( | FtpServerContext * | context, |
| FtpClientConnection * | connection, | ||
| char_t * | param | ||
| ) |
USER command processing.
The USER command is used to identify the user
- Parameters:
-
[in] context Pointer to the FTP server context [in] connection Pointer to the client connection [in] param Command line parameters
Definition at line 430 of file ftp_server_commands.c.
Generated on Tue Jul 12 2022 17:10:20 by
1.7.2