mikroSDK Reference Manual
ftp_client_transport.h
Go to the documentation of this file.
1
31#ifndef _FTP_CLIENT_TRANSPORT_H
32#define _FTP_CLIENT_TRANSPORT_H
33
34//Dependencies
35#include "core/net.h"
36#include "ftp/ftp_client.h"
37
38//C++ guard
39#ifdef __cplusplus
40extern "C" {
41#endif
42
43//FTP client related functions
44error_t ftpClientOpenChannel(FtpClientContext *context,
45 FtpClientChannel *channel, size_t txBufferSize, size_t rxBufferSize);
46
47error_t ftpClientOpenSecureChannel(FtpClientContext *context,
48 FtpClientChannel *channel, size_t txBufferSize, size_t rxBufferSize);
49
50error_t ftpClientEstablishSecureChannel(FtpClientChannel *channel);
51
52error_t ftpClientShutdownChannel(FtpClientChannel *channel);
53
54void ftpClientCloseChannel(FtpClientChannel *channel);
55
56error_t ftpClientWriteChannel(FtpClientChannel *channel, const void *data,
57 size_t length, size_t *written, uint_t flags);
58
59error_t ftpClientReadChannel(FtpClientChannel *channel, void *data,
60 size_t size, size_t *received, uint_t flags);
61
62//C++ guard
63#ifdef __cplusplus
64}
65#endif
66
67#endif
error_t
Error codes.
Definition error.h:43
FTP client (File Transfer Protocol)
TCP/IP stack core.
Control or data channel.
Definition ftp_client.h:234