ftp_server_commands.c
void ftpServerProcessEprt(FtpClientConnection *connection, char_t *param)
EPRT command processing.
Definition: ftp_server_commands.c:1030
Path manipulation helper functions.
error_t fsSeekFile(FsFile *file, int_t offset, uint_t origin)
Move to specified position in file.
Definition: fs_port_fatfs.c:483
error_t socketBind(Socket *socket, const IpAddr *localIpAddr, uint16_t localPort)
Associate a local address with a socket.
Definition: socket.c:1316
void ftpServerProcessPbsz(FtpClientConnection *connection, char_t *param)
PBSZ command processing.
Definition: ftp_server_commands.c:444
void ftpServerProcessSize(FtpClientConnection *connection, char_t *param)
SIZE command processing.
Definition: ftp_server_commands.c:2059
String manipulation helper functions.
void ftpServerProcessStor(FtpClientConnection *connection, char_t *param)
STOR command processing.
Definition: ftp_server_commands.c:2242
void ftpServerProcessCwd(FtpClientConnection *connection, char_t *param)
CWD command processing.
Definition: ftp_server_commands.c:1540
FTP server (command processing)
error_t fsGetFileSize(const char_t *path, uint32_t *size)
Retrieve the size of the specified file.
Definition: fs_port_fatfs.c:204
const char_t * ftpServerStripHomeDir(FtpClientConnection *connection, const char_t *path)
Strip home directory from specified pathname.
Definition: ftp_server_misc.c:362
FTP data connection.
void strRemoveTrailingSpace(char_t *s)
Removes all trailing whitespace from a string.
Definition: str.c:119
void ftpServerProcessDele(FtpClientConnection *connection, char_t *param)
DELE command processing.
Definition: ftp_server_commands.c:2648
error_t ftpServerOpenDataChannel(FtpClientConnection *connection)
Open data connection.
Definition: ftp_server_data.c:269
void ftpServerProcessAuth(FtpClientConnection *connection, char_t *param)
AUTH command processing.
Definition: ftp_server_commands.c:382
void ftpServerProcessList(FtpClientConnection *connection, char_t *param)
LIST command processing.
Definition: ftp_server_commands.c:1660
void ftpServerProcessNlst(FtpClientConnection *connection, char_t *param)
NLST command processing.
Definition: ftp_server_commands.c:1784
void ftpServerProcessUser(FtpClientConnection *connection, char_t *param)
USER command processing.
Definition: ftp_server_commands.c:651
void ftpServerProcessType(FtpClientConnection *connection, char_t *param)
TYPE command processing.
Definition: ftp_server_commands.c:540
void ftpServerProcessRein(FtpClientConnection *connection, char_t *param)
REIN command processing.
Definition: ftp_server_commands.c:819
error_t socketGetRemoteAddr(Socket *socket, IpAddr *remoteIpAddr, uint16_t *remotePort)
Retrieve the address of the peer to which a socket is connected.
Definition: socket.c:1985
Helper functions for FTP server.
error_t socketSetTxBufferSize(Socket *socket, size_t size)
Specify the size of the TCP send buffer.
Definition: socket.c:1201
error_t ipStringToAddr(const char_t *str, IpAddr *ipAddr)
Convert a string representation of an IP address to a binary IP address.
Definition: ip.c:761
Helper functions for IPv4.
error_t socketSetRxBufferSize(Socket *socket, size_t size)
Specify the size of the TCP receive buffer.
Definition: socket.c:1237
void ftpServerProcessMkd(FtpClientConnection *connection, char_t *param)
MKD command processing.
Definition: ftp_server_commands.c:1909
void ftpServerProcessRetr(FtpClientConnection *connection, char_t *param)
RETR command processing.
Definition: ftp_server_commands.c:2134
void ftpServerCloseDataChannel(FtpClientConnection *connection)
Close data connection.
Definition: ftp_server_data.c:756
error_t fsRenameFile(const char_t *oldPath, const char_t *newPath)
Rename the specified file.
Definition: fs_port_fatfs.c:325
void strReplaceChar(char_t *s, char_t oldChar, char_t newChar)
Replace all occurrences of the specified character.
Definition: str.c:149
error_t ftpServerGetPath(FtpClientConnection *connection, const char_t *inputPath, char_t *outputPath, size_t maxLen)
Retrieve the full pathname.
Definition: ftp_server_misc.c:130
FsFile * fsOpenFile(const char_t *path, uint_t mode)
Open the specified file for reading or writing.
Definition: fs_port_fatfs.c:413
void ftpServerProcessPwd(FtpClientConnection *connection, char_t *param)
PWD command processing.
Definition: ftp_server_commands.c:1513
void ftpServerProcessRnfr(FtpClientConnection *connection, char_t *param)
RNFR command processing.
Definition: ftp_server_commands.c:2475
Socket * socketOpen(uint_t type, uint_t protocol)
Create a socket (UDP or TCP)
Definition: socket.c:125
bool_t ipv4IsOnLink(NetInterface *interface, Ipv4Addr ipAddr)
Check whether an IPv4 address is on-link.
Definition: ipv4_misc.c:438
void ftpServerProcessProt(FtpClientConnection *connection, char_t *param)
PROT command processing.
Definition: ftp_server_commands.c:486
void ftpServerProcessPass(FtpClientConnection *connection, char_t *param)
PASS command processing.
Definition: ftp_server_commands.c:751
void ftpServerProcessAppe(FtpClientConnection *connection, char_t *param)
APPE command processing.
Definition: ftp_server_commands.c:2351
void ftpServerProcessEpsv(FtpClientConnection *connection, char_t *param)
EPSV command processing.
Definition: ftp_server_commands.c:1345
uint_t ftpServerGetFilePermissions(FtpClientConnection *connection, const char_t *path)
Get permissions for the specified file or directory.
Definition: ftp_server_misc.c:182
void ftpServerProcessRmd(FtpClientConnection *connection, char_t *param)
RMD command processing.
Definition: ftp_server_commands.c:1985
void ftpServerProcessCommand(FtpClientConnection *connection)
FTP command processing.
Definition: ftp_server_commands.c:54
error_t socketGetLocalAddr(Socket *socket, IpAddr *localIpAddr, uint16_t *localPort)
Retrieve the local address for a given socket.
Definition: socket.c:1953
bool_t fsDirExists(const char_t *path)
Check whether a directory exists.
Definition: fs_port_fatfs.c:667
void ftpServerProcessPasv(FtpClientConnection *connection, char_t *param)
PASV command processing.
Definition: ftp_server_commands.c:1178
void ftpServerProcessSyst(FtpClientConnection *connection, char_t *param)
SYST command processing.
Definition: ftp_server_commands.c:320
void ftpServerProcessNoop(FtpClientConnection *connection, char_t *param)
NOOP command processing.
Definition: ftp_server_commands.c:303
FTP server (File Transfer Protocol)
void ftpServerProcessFeat(FtpClientConnection *connection, char_t *param)
FEAT command processing.
Definition: ftp_server_commands.c:337
error_t ipv4StringToAddr(const char_t *str, Ipv4Addr *ipAddr)
Convert a dot-decimal string to a binary IPv4 address.
Definition: ipv4.c:1368
void ftpServerProcessAbor(FtpClientConnection *connection, char_t *param)
ABOR command processing.
Definition: ftp_server_commands.c:1460
error_t ipv6StringToAddr(const char_t *str, Ipv6Addr *ipAddr)
Convert a string representation of an IPv6 address to a binary IPv6 address.
Definition: ipv6.c:2174
void ftpServerProcessCdup(FtpClientConnection *connection, char_t *param)
CDUP command processing.
Definition: ftp_server_commands.c:1615
void ftpServerProcessMode(FtpClientConnection *connection, char_t *param)
MODE command processing.
Definition: ftp_server_commands.c:616
void ftpServerProcessUnknownCmd(FtpClientConnection *connection, char_t *param)
Unknown command processing.
Definition: ftp_server_commands.c:2719
char_t * ipv4AddrToString(Ipv4Addr ipAddr, char_t *str)
Convert a binary IPv4 address to dot-decimal notation.
Definition: ipv4.c:1457
void ftpServerProcessStru(FtpClientConnection *connection, char_t *param)
STRU command processing.
Definition: ftp_server_commands.c:581
uint16_t ftpServerGetPassivePort(FtpServerContext *context)
Get a passive port number.
Definition: ftp_server_misc.c:88
error_t socketSetTimeout(Socket *socket, systime_t timeout)
Set timeout value for blocking operations.
Definition: socket.c:148
void ftpServerProcessRnto(FtpClientConnection *connection, char_t *param)
RNTO command processing.
Definition: ftp_server_commands.c:2549
void ftpServerProcessPort(FtpClientConnection *connection, char_t *param)
PORT command processing.
Definition: ftp_server_commands.c:909
Debugging facilities.
void ftpServerProcessQuit(FtpClientConnection *connection, char_t *param)
QUIT command processing.
Definition: ftp_server_commands.c:854
void pathCombine(char_t *path, const char_t *more, size_t maxLen)
Concatenate two paths.
Definition: path.c:394
error_t socketListen(Socket *socket, uint_t backlog)
Place a socket in the listening state.
Definition: socket.c:1413