29 lines
457 B
C++
29 lines
457 B
C++
#pragma once
|
|
|
|
#include "Socket.h"
|
|
#include "SocketInterface.h"
|
|
|
|
#include <memory>
|
|
#include <vector>
|
|
|
|
class NetworkManager
|
|
{
|
|
std::vector<SocketPtr> mActiveSockets;
|
|
ISocketInterfaceUPtr mSocketInterface;
|
|
|
|
public:
|
|
|
|
NetworkManager();
|
|
|
|
~NetworkManager();
|
|
|
|
static std::unique_ptr<NetworkManager> Create();
|
|
|
|
void Initialize();
|
|
|
|
void RunHttpServer();
|
|
|
|
void ShutDown();
|
|
};
|
|
|
|
using NetworkManagerUPtr = std::unique_ptr<NetworkManager>;
|