-
Notifications
You must be signed in to change notification settings - Fork 13
/
FTPClientService.h
28 lines (21 loc) · 1010 Bytes
/
FTPClientService.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#pragma once
#include "ClientService.h"
#include "functions/FCast.h"
#include "functions/FString.h"
#include "Global.h"
#define FTP_CLIENT_SERVICE_DEFAULT_PORT 21
#define FTP_CLIENT_SERVICE_SSL_DEFAULT_PORT 21
#define FTP_CLIENT_SERVICE_TLS_DEFAULT_PORT 21
#define FTP_CLIENT_SERVICE_AUTH_COMMAND_USER "USER <login-username>"
#define FTP_CLIENT_SERVICE_AUTH_COMMAND_PASSWORD "PASS <login-password>"
#define FTP_CLIENT_SERVICE_AUTH_SUCCESS_REPLY_CODE "230"
#define FTP_CLIENT_SERVICE_END_COMMAND_LINE "\r\n"
using namespace std;
class FTPClientService: public ClientService {
private:
bool authCryptographicSecurity();
bool authLoginUser();
public:
FTPClientService(unsigned int nRecvSecTimeout = CLIENT_SERVICE_RECV_DEFAULT_SECONDS_TIMEOUT);
~FTPClientService();
};