mikroSDK Reference Manual
ftp_server_misc.h
Go to the documentation of this file.
1
31#ifndef _FTP_SERVER_MISC_H
32#define _FTP_SERVER_MISC_H
33
34//Dependencies
35#include "core/net.h"
36#include "ftp/ftp_server.h"
37
38//Time constant
39#define FTP_SERVER_180_DAYS (180 * 86400)
40
41//C++ guard
42#ifdef __cplusplus
43extern "C" {
44#endif
45
46//FTP server related functions
47void ftpServerTick(FtpServerContext *context);
48
49uint16_t ftpServerGetPassivePort(FtpServerContext *context);
50
51error_t ftpServerGetPath(FtpClientConnection *connection,
52 const char_t *inputPath, char_t *outputPath, size_t maxLen);
53
54uint_t ftpServerGetFilePermissions(FtpClientConnection *connection,
55 const char_t *path);
56
57size_t ftpServerFormatDirEntry(const FsDirEntry *dirEntry, uint_t perm,
58 char_t *buffer);
59
60const char_t *ftpServerStripRootDir(FtpServerContext *context,
61 const char_t *path);
62
63const char_t *ftpServerStripHomeDir(FtpClientConnection *connection,
64 const char_t *path);
65
66void ftpServerCloseConnection(FtpClientConnection *connection);
67
68//C++ guard
69#ifdef __cplusplus
70}
71#endif
72
73#endif
error_t
Error codes.
Definition error.h:43
FTP server (File Transfer Protocol)
TCP/IP stack core.
Directory entry.
Definition fs_port.h:108