-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhttp.h
More file actions
33 lines (28 loc) · 700 Bytes
/
Copy pathhttp.h
File metadata and controls
33 lines (28 loc) · 700 Bytes
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
31
32
33
#include "stdafx.h"
namespace malware {
namespace http {
class Http final : public IHttpApi {
std::shared_ptr<std::mutex> m_Mutex = std::make_shared<std::mutex>();
public:
Http();
virtual ~Http();
private:
void Init();
void UnInit();
public:
bool Open();
void Close();
protected:
IRequest* CreateRequest() override final;
bool Perform(const IRequest*) override final;
private:
std::atomic_bool m_IsOpen = false;
private:
/// Generate request task identify
TypeIdentify GenerateIdentify() const;
private:
std::map<TypeIdentify, std::shared_ptr<Request>> m_Requests;
};
extern Http* __gpHttp;
}///namespace http
}///namespace malware