mikroSDK Reference Manual
ftp_server_transport.h
Go to the documentation of this file.
1
31#ifndef _FTP_SERVER_TRANSPORT_H
32#define _FTP_SERVER_TRANSPORT_H
33
34//Dependencies
35#include "core/net.h"
36#include "ftp/ftp_server.h"
37
38//C++ guard
39#ifdef __cplusplus
40extern "C" {
41#endif
42
43//FTP server related functions
44error_t ftpServerOpenSecureChannel(FtpServerContext *context,
45 FtpServerChannel *channel, size_t txBufferSize, size_t rxBufferSize);
46
47error_t ftpServerEstablishSecureChannel(FtpServerChannel *channel);
48
49error_t ftpServerWriteChannel(FtpServerChannel *channel, const void *data,
50 size_t length, size_t *written, uint_t flags);
51
52error_t ftpServerReadChannel(FtpServerChannel *channel, void *data,
53 size_t size, size_t *received, uint_t flags);
54
55//C++ guard
56#ifdef __cplusplus
57}
58#endif
59
60#endif
error_t
Error codes.
Definition error.h:43
FTP server (File Transfer Protocol)
TCP/IP stack core.
Control or data channel.
Definition ftp_server.h:379