-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathPOP3ClientService.h
30 lines (23 loc) · 1.1 KB
/
POP3ClientService.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
29
30
#pragma once
#include "ClientService.h"
#include "functions/FCast.h"
#include "functions/FCrypt.h"
#include "functions/FString.h"
#include "Global.h"
#define POP3_CLIENT_SERVICE_DEFAULT_PORT 110
#define POP3_CLIENT_SERVICE_SSL_DEFAULT_PORT 995
#define POP3_CLIENT_SERVICE_TLS_DEFAULT_PORT 110
#define POP3_CLIENT_SERVICE_AUTH_COMMAND "AUTH LOGIN"
#define POP3_CLIENT_SERVICE_AUTH_COMMAND_USER "<login-username>"
#define POP3_CLIENT_SERVICE_AUTH_COMMAND_PASSWORD "<login-password>"
#define POP3_CLIENT_SERVICE_AUTH_SUCCESS_REPLY_CODE "+OK"
#define POP3_CLIENT_SERVICE_END_COMMAND_LINE "\r\n"
using namespace std;
class POP3ClientService: public ClientService {
private:
bool authCryptographicSecurity();
bool authLoginUser();
public:
POP3ClientService(unsigned int nRecvSecTimeout = CLIENT_SERVICE_RECV_DEFAULT_SECONDS_TIMEOUT);
~POP3ClientService();
};