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