ftp_server_commands.h
Go to the documentation of this file.
1 /**
2  * @file ftp_server_commands.h
3  * @brief FTP server (command processing)
4  *
5  * @section License
6  *
7  * SPDX-License-Identifier: GPL-2.0-or-later
8  *
9  * Copyright (C) 2010-2024 Oryx Embedded SARL. All rights reserved.
10  *
11  * This file is part of CycloneTCP Open.
12  *
13  * This program is free software; you can redistribute it and/or
14  * modify it under the terms of the GNU General Public License
15  * as published by the Free Software Foundation; either version 2
16  * of the License, or (at your option) any later version.
17  *
18  * This program is distributed in the hope that it will be useful,
19  * but WITHOUT ANY WARRANTY; without even the implied warranty of
20  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21  * GNU General Public License for more details.
22  *
23  * You should have received a copy of the GNU General Public License
24  * along with this program; if not, write to the Free Software Foundation,
25  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
26  *
27  * @author Oryx Embedded SARL (www.oryx-embedded.com)
28  * @version 2.4.4
29  **/
30 
31 #ifndef _FTP_SERVER_COMMANDS_H
32 #define _FTP_SERVER_COMMANDS_H
33 
34 //Dependencies
35 #include "core/net.h"
36 #include "ftp/ftp_server.h"
37 
38 //C++ guard
39 #ifdef __cplusplus
40 extern "C" {
41 #endif
42 
43 //FTP server related functions
45 
46 void ftpServerProcessNoop(FtpClientConnection *connection, char_t *param);
47 void ftpServerProcessSyst(FtpClientConnection *connection, char_t *param);
48 void ftpServerProcessFeat(FtpClientConnection *connection, char_t *param);
49 void ftpServerProcessAuth(FtpClientConnection *connection, char_t *param);
50 void ftpServerProcessPbsz(FtpClientConnection *connection, char_t *param);
51 void ftpServerProcessProt(FtpClientConnection *connection, char_t *param);
52 void ftpServerProcessType(FtpClientConnection *connection, char_t *param);
53 void ftpServerProcessStru(FtpClientConnection *connection, char_t *param);
54 void ftpServerProcessMode(FtpClientConnection *connection, char_t *param);
55 void ftpServerProcessUser(FtpClientConnection *connection, char_t *param);
56 void ftpServerProcessPass(FtpClientConnection *connection, char_t *param);
57 void ftpServerProcessRein(FtpClientConnection *connection, char_t *param);
58 void ftpServerProcessQuit(FtpClientConnection *connection, char_t *param);
59 void ftpServerProcessPort(FtpClientConnection *connection, char_t *param);
60 void ftpServerProcessEprt(FtpClientConnection *connection, char_t *param);
61 void ftpServerProcessPasv(FtpClientConnection *connection, char_t *param);
62 void ftpServerProcessEpsv(FtpClientConnection *connection, char_t *param);
63 void ftpServerProcessAbor(FtpClientConnection *connection, char_t *param);
64 void ftpServerProcessPwd(FtpClientConnection *connection, char_t *param);
65 void ftpServerProcessCwd(FtpClientConnection *connection, char_t *param);
66 void ftpServerProcessCdup(FtpClientConnection *connection, char_t *param);
67 void ftpServerProcessList(FtpClientConnection *connection, char_t *param);
68 void ftpServerProcessNlst(FtpClientConnection *connection, char_t *param);
69 void ftpServerProcessMkd(FtpClientConnection *connection, char_t *param);
70 void ftpServerProcessRmd(FtpClientConnection *connection, char_t *param);
71 void ftpServerProcessSize(FtpClientConnection *connection, char_t *param);
72 void ftpServerProcessRetr(FtpClientConnection *connection, char_t *param);
73 void ftpServerProcessStor(FtpClientConnection *connection, char_t *param);
74 void ftpServerProcessAppe(FtpClientConnection *connection, char_t *param);
75 void ftpServerProcessRnfr(FtpClientConnection *connection, char_t *param);
76 void ftpServerProcessRnto(FtpClientConnection *connection, char_t *param);
77 void ftpServerProcessDele(FtpClientConnection *connection, char_t *param);
78 
79 void ftpServerProcessUnknownCmd(FtpClientConnection *connection, char_t *param);
80 
81 //C++ guard
82 #ifdef __cplusplus
83 }
84 #endif
85 
86 #endif
void ftpServerProcessPbsz(FtpClientConnection *connection, char_t *param)
PBSZ command processing.
void ftpServerProcessDele(FtpClientConnection *connection, char_t *param)
DELE command processing.
void ftpServerProcessRein(FtpClientConnection *connection, char_t *param)
REIN command processing.
void ftpServerProcessRmd(FtpClientConnection *connection, char_t *param)
RMD command processing.
void ftpServerProcessType(FtpClientConnection *connection, char_t *param)
TYPE command processing.
void ftpServerProcessPass(FtpClientConnection *connection, char_t *param)
PASS command processing.
void ftpServerProcessCwd(FtpClientConnection *connection, char_t *param)
CWD command processing.
void ftpServerProcessSize(FtpClientConnection *connection, char_t *param)
SIZE command processing.
void ftpServerProcessStor(FtpClientConnection *connection, char_t *param)
STOR command processing.
void ftpServerProcessUnknownCmd(FtpClientConnection *connection, char_t *param)
Unknown command processing.
void ftpServerProcessUser(FtpClientConnection *connection, char_t *param)
USER command processing.
void ftpServerProcessRnto(FtpClientConnection *connection, char_t *param)
RNTO command processing.
void ftpServerProcessNlst(FtpClientConnection *connection, char_t *param)
NLST command processing.
void ftpServerProcessEprt(FtpClientConnection *connection, char_t *param)
EPRT command processing.
void ftpServerProcessCdup(FtpClientConnection *connection, char_t *param)
CDUP command processing.
void ftpServerProcessMkd(FtpClientConnection *connection, char_t *param)
MKD command processing.
void ftpServerProcessEpsv(FtpClientConnection *connection, char_t *param)
EPSV command processing.
void ftpServerProcessRnfr(FtpClientConnection *connection, char_t *param)
RNFR command processing.
void ftpServerProcessAbor(FtpClientConnection *connection, char_t *param)
ABOR command processing.
void ftpServerProcessRetr(FtpClientConnection *connection, char_t *param)
RETR command processing.
void ftpServerProcessNoop(FtpClientConnection *connection, char_t *param)
NOOP command processing.
char char_t
Definition: compiler_port.h:48
void ftpServerProcessMode(FtpClientConnection *connection, char_t *param)
MODE command processing.
void ftpServerProcessPasv(FtpClientConnection *connection, char_t *param)
PASV command processing.
void ftpServerProcessStru(FtpClientConnection *connection, char_t *param)
STRU command processing.
void ftpServerProcessPort(FtpClientConnection *connection, char_t *param)
PORT command processing.
void ftpServerProcessSyst(FtpClientConnection *connection, char_t *param)
SYST command processing.
void ftpServerProcessList(FtpClientConnection *connection, char_t *param)
LIST command processing.
void ftpServerProcessCommand(FtpClientConnection *connection)
FTP command processing.
FTP server (File Transfer Protocol)
void ftpServerProcessProt(FtpClientConnection *connection, char_t *param)
PROT command processing.
#define FtpClientConnection
Definition: ftp_server.h:212
void ftpServerProcessAppe(FtpClientConnection *connection, char_t *param)
APPE command processing.
TCP/IP stack core.
void ftpServerProcessPwd(FtpClientConnection *connection, char_t *param)
PWD command processing.
void ftpServerProcessAuth(FtpClientConnection *connection, char_t *param)
AUTH command processing.
void ftpServerProcessQuit(FtpClientConnection *connection, char_t *param)
QUIT command processing.
void ftpServerProcessFeat(FtpClientConnection *connection, char_t *param)
FEAT command processing.