ftp_server_commands.h File Reference

FTP server (command processing) More...

#include "ftp/ftp_server.h"

Go to the source code of this file.

Functions

void ftpServerProcessCmd (FtpServerContext *context, FtpClientConnection *connection)
 FTP command processing. More...
 
void ftpServerProcessUnknownCmd (FtpServerContext *context, FtpClientConnection *connection, char_t *param)
 Unknown command processing. More...
 
void ftpServerProcessNoop (FtpServerContext *context, FtpClientConnection *connection, char_t *param)
 NOOP command processing. More...
 
void ftpServerProcessSyst (FtpServerContext *context, FtpClientConnection *connection, char_t *param)
 SYST command processing. More...
 
void ftpServerProcessFeat (FtpServerContext *context, FtpClientConnection *connection, char_t *param)
 FEAT command processing. More...
 
void ftpServerProcessType (FtpServerContext *context, FtpClientConnection *connection, char_t *param)
 TYPE command processing. More...
 
void ftpServerProcessStru (FtpServerContext *context, FtpClientConnection *connection, char_t *param)
 STRU command processing. More...
 
void ftpServerProcessMode (FtpServerContext *context, FtpClientConnection *connection, char_t *param)
 MODE command processing. More...
 
void ftpServerProcessUser (FtpServerContext *context, FtpClientConnection *connection, char_t *param)
 USER command processing. More...
 
void ftpServerProcessPass (FtpServerContext *context, FtpClientConnection *connection, char_t *param)
 PASS command processing. More...
 
void ftpServerProcessRein (FtpServerContext *context, FtpClientConnection *connection, char_t *param)
 REIN command processing. More...
 
void ftpServerProcessQuit (FtpServerContext *context, FtpClientConnection *connection, char_t *param)
 QUIT command processing. More...
 
void ftpServerProcessPort (FtpServerContext *context, FtpClientConnection *connection, char_t *param)
 PORT command processing. More...
 
void ftpServerProcessEprt (FtpServerContext *context, FtpClientConnection *connection, char_t *param)
 EPRT command processing. More...
 
void ftpServerProcessPasv (FtpServerContext *context, FtpClientConnection *connection, char_t *param)
 PASV command processing. More...
 
void ftpServerProcessEpsv (FtpServerContext *context, FtpClientConnection *connection, char_t *param)
 EPSV command processing. More...
 
void ftpServerProcessAbor (FtpServerContext *context, FtpClientConnection *connection, char_t *param)
 ABOR command processing. More...
 
void ftpServerProcessPwd (FtpServerContext *context, FtpClientConnection *connection, char_t *param)
 PWD command processing. More...
 
void ftpServerProcessCwd (FtpServerContext *context, FtpClientConnection *connection, char_t *param)
 CWD command processing. More...
 
void ftpServerProcessCdup (FtpServerContext *context, FtpClientConnection *connection, char_t *param)
 CDUP command processing. More...
 
void ftpServerProcessList (FtpServerContext *context, FtpClientConnection *connection, char_t *param)
 LIST command processing. More...
 
void ftpServerProcessMkd (FtpServerContext *context, FtpClientConnection *connection, char_t *param)
 MKD command processing. More...
 
void ftpServerProcessRmd (FtpServerContext *context, FtpClientConnection *connection, char_t *param)
 RMD command processing. More...
 
void ftpServerProcessSize (FtpServerContext *context, FtpClientConnection *connection, char_t *param)
 SIZE command processing. More...
 
void ftpServerProcessRetr (FtpServerContext *context, FtpClientConnection *connection, char_t *param)
 RETR command processing. More...
 
void ftpServerProcessStor (FtpServerContext *context, FtpClientConnection *connection, char_t *param)
 STOR command processing. More...
 
void ftpServerProcessAppe (FtpServerContext *context, FtpClientConnection *connection, char_t *param)
 APPE command processing. More...
 
void ftpServerProcessRnfr (FtpServerContext *context, FtpClientConnection *connection, char_t *param)
 RNFR command processing. More...
 
void ftpServerProcessRnto (FtpServerContext *context, FtpClientConnection *connection, char_t *param)
 RNTO command processing. More...
 
void ftpServerProcessDele (FtpServerContext *context, FtpClientConnection *connection, char_t *param)
 DELE command processing. More...
 

Detailed Description

FTP server (command processing)

License

Copyright (C) 2010-2018 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.

Author
Oryx Embedded SARL (www.oryx-embedded.com)
Version
1.9.0

Definition in file ftp_server_commands.h.

Function Documentation

◆ ftpServerProcessAbor()

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]contextPointer to the FTP server context
[in]connectionPointer to the client connection
[in]paramCommand line parameters

Definition at line 1196 of file ftp_server_commands.c.

◆ ftpServerProcessAppe()

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]contextPointer to the FTP server context
[in]connectionPointer to the client connection
[in]paramCommand line parameters

Definition at line 1978 of file ftp_server_commands.c.

◆ ftpServerProcessCdup()

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]contextPointer to the FTP server context
[in]connectionPointer to the client connection
[in]paramCommand line parameters

Definition at line 1357 of file ftp_server_commands.c.

◆ ftpServerProcessCmd()

void ftpServerProcessCmd ( FtpServerContext context,
FtpClientConnection connection 
)

FTP command processing.

Parameters
[in]contextPointer to the FTP server context
[in]connectionPointer to the client connection

Definition at line 53 of file ftp_server_commands.c.

◆ ftpServerProcessCwd()

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]contextPointer to the FTP server context
[in]connectionPointer to the client connection
[in]paramCommand line parameters

Definition at line 1280 of file ftp_server_commands.c.

◆ ftpServerProcessDele()

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]contextPointer to the FTP server context
[in]connectionPointer to the client connection
[in]paramCommand line parameters

Definition at line 2279 of file ftp_server_commands.c.

◆ ftpServerProcessEprt()

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]contextPointer to the FTP server context
[in]connectionPointer to the client connection
[in]paramCommand line parameters

Definition at line 780 of file ftp_server_commands.c.

◆ ftpServerProcessEpsv()

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]contextPointer to the FTP server context
[in]connectionPointer to the client connection
[in]paramCommand line parameters

Definition at line 1085 of file ftp_server_commands.c.

◆ ftpServerProcessFeat()

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]contextPointer to the FTP server context
[in]connectionPointer to the client connection
[in]paramCommand line parameters

Definition at line 291 of file ftp_server_commands.c.

◆ ftpServerProcessList()

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]contextPointer to the FTP server context
[in]connectionPointer to the client connection
[in]paramCommand line parameters

Definition at line 1404 of file ftp_server_commands.c.

◆ ftpServerProcessMkd()

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]contextPointer to the FTP server context
[in]connectionPointer to the client connection
[in]paramCommand line parameters

Definition at line 1526 of file ftp_server_commands.c.

◆ ftpServerProcessMode()

void ftpServerProcessMode ( FtpServerContext context,
FtpClientConnection connection,
char_t param 
)

MODE command processing.

The MODE command specifies the data transfer mode

Parameters
[in]contextPointer to the FTP server context
[in]connectionPointer to the client connection
[in]paramCommand line parameters

Definition at line 393 of file ftp_server_commands.c.

◆ ftpServerProcessNoop()

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]contextPointer to the FTP server context
[in]connectionPointer to the client connection
[in]paramCommand line parameters

Definition at line 253 of file ftp_server_commands.c.

◆ ftpServerProcessPass()

void ftpServerProcessPass ( FtpServerContext context,
FtpClientConnection connection,
char_t param 
)

PASS command processing.

The USER command specifies the user's password

Parameters
[in]contextPointer to the FTP server context
[in]connectionPointer to the client connection
[in]paramCommand line parameters

Definition at line 503 of file ftp_server_commands.c.

◆ ftpServerProcessPasv()

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]contextPointer to the FTP server context
[in]connectionPointer to the client connection
[in]paramCommand line parameters

Definition at line 929 of file ftp_server_commands.c.

◆ ftpServerProcessPort()

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]contextPointer to the FTP server context
[in]connectionPointer to the client connection
[in]paramCommand line parameters

Definition at line 658 of file ftp_server_commands.c.

◆ ftpServerProcessPwd()

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]contextPointer to the FTP server context
[in]connectionPointer to the client connection
[in]paramCommand line parameters

Definition at line 1251 of file ftp_server_commands.c.

◆ ftpServerProcessQuit()

void ftpServerProcessQuit ( FtpServerContext context,
FtpClientConnection connection,
char_t param 
)

QUIT command processing.

The QUIT command is used to terminate a user session

Parameters
[in]contextPointer to the FTP server context
[in]connectionPointer to the client connection
[in]paramCommand line parameters

Definition at line 601 of file ftp_server_commands.c.

◆ ftpServerProcessRein()

void ftpServerProcessRein ( FtpServerContext context,
FtpClientConnection connection,
char_t param 
)

REIN command processing.

The REIN command is used to reinitialize a user session

Parameters
[in]contextPointer to the FTP server context
[in]connectionPointer to the client connection
[in]paramCommand line parameters

Definition at line 564 of file ftp_server_commands.c.

◆ ftpServerProcessRetr()

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]contextPointer to the FTP server context
[in]connectionPointer to the client connection
[in]paramCommand line parameters

Definition at line 1757 of file ftp_server_commands.c.

◆ ftpServerProcessRmd()

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]contextPointer to the FTP server context
[in]connectionPointer to the client connection
[in]paramCommand line parameters

Definition at line 1604 of file ftp_server_commands.c.

◆ ftpServerProcessRnfr()

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]contextPointer to the FTP server context
[in]connectionPointer to the client connection
[in]paramCommand line parameters

Definition at line 2102 of file ftp_server_commands.c.

◆ ftpServerProcessRnto()

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]contextPointer to the FTP server context
[in]connectionPointer to the client connection
[in]paramCommand line parameters

Definition at line 2178 of file ftp_server_commands.c.

◆ ftpServerProcessSize()

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]contextPointer to the FTP server context
[in]connectionPointer to the client connection
[in]paramCommand line parameters

Definition at line 1680 of file ftp_server_commands.c.

◆ ftpServerProcessStor()

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]contextPointer to the FTP server context
[in]connectionPointer to the client connection
[in]paramCommand line parameters

Definition at line 1867 of file ftp_server_commands.c.

◆ ftpServerProcessStru()

void ftpServerProcessStru ( FtpServerContext context,
FtpClientConnection connection,
char_t param 
)

STRU command processing.

The STRU command specifies the file structure

Parameters
[in]contextPointer to the FTP server context
[in]connectionPointer to the client connection
[in]paramCommand line parameters

Definition at line 356 of file ftp_server_commands.c.

◆ ftpServerProcessSyst()

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]contextPointer to the FTP server context
[in]connectionPointer to the client connection
[in]paramCommand line parameters

Definition at line 272 of file ftp_server_commands.c.

◆ ftpServerProcessType()

void ftpServerProcessType ( FtpServerContext context,
FtpClientConnection connection,
char_t param 
)

TYPE command processing.

The TYPE command specifies the representation type

Parameters
[in]contextPointer to the FTP server context
[in]connectionPointer to the client connection
[in]paramCommand line parameters

Definition at line 313 of file ftp_server_commands.c.

◆ ftpServerProcessUnknownCmd()

void ftpServerProcessUnknownCmd ( FtpServerContext context,
FtpClientConnection connection,
char_t param 
)

Unknown command processing.

Parameters
[in]contextPointer to the FTP server context
[in]connectionPointer to the client connection
[in]paramCommand line parameters

Definition at line 215 of file ftp_server_commands.c.

◆ ftpServerProcessUser()

void ftpServerProcessUser ( FtpServerContext context,
FtpClientConnection connection,
char_t param 
)

USER command processing.

The USER command is used to identify the user

Parameters
[in]contextPointer to the FTP server context
[in]connectionPointer to the client connection
[in]paramCommand line parameters

Definition at line 430 of file ftp_server_commands.c.