mikroSDK Reference Manual
ftp_client_misc.h
Go to the documentation of this file.
1
31#ifndef _FTP_CLIENT_MISC_H
32#define _FTP_CLIENT_MISC_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
44void ftpClientChangeState(FtpClientContext *context, FtpClientState newState);
45
46error_t ftpClientSendCommand(FtpClientContext *context);
47
48error_t ftpClientFormatCommand(FtpClientContext *context,
49 const char_t *command, const char_t *argument);
50
51error_t ftpClientFormatPortCommand(FtpClientContext *context,
52 const IpAddr *ipAddr, uint16_t port);
53
54error_t ftpClientFormatPasvCommand(FtpClientContext *context);
55error_t ftpClientParsePasvReply(FtpClientContext *context, uint16_t *port);
56
57error_t ftpClientParsePwdReply(FtpClientContext *context, char_t *path,
58 size_t maxLen);
59
60error_t ftpClientParseDirEntry(char_t *line, FtpDirEntry *dirEntry);
61
62error_t ftpClientInitDataTransfer(FtpClientContext *context, bool_t direction);
63error_t ftpClientTerminateDataTransfer(FtpClientContext *context);
64
65error_t ftpClientCheckTimeout(FtpClientContext *context);
66
67//C++ guard
68#ifdef __cplusplus
69}
70#endif
71
72#endif
error_t
Error codes.
Definition error.h:43
FTP client (File Transfer Protocol)
FtpClientState
FTP client states.
Definition ftp_client.h:194
TCP/IP stack core.
Directory entry.
Definition ftp_client.h:275
IP network address.
Definition ip.h:72