stuff-from-scratch/src/network/NetworkManager.h
2021-03-29 21:31:24 +01:00

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>;