Add Windows support.
This commit is contained in:
parent
ee51f3ee09
commit
683ba5447f
37 changed files with 477 additions and 113 deletions
20
src/network/sockets/SocketInterface.h
Normal file
20
src/network/sockets/SocketInterface.h
Normal file
|
@ -0,0 +1,20 @@
|
|||
#pragma
|
||||
|
||||
#include <memory>
|
||||
|
||||
class Socket;
|
||||
using SocketPtr = std::shared_ptr<Socket>;
|
||||
|
||||
class SocketInterface
|
||||
{
|
||||
public:
|
||||
|
||||
SocketInterface();
|
||||
|
||||
static std::unique_ptr<SocketInterface> Create();
|
||||
void CreateSocket(SocketPtr socket);
|
||||
void Listen(SocketPtr socket);
|
||||
void Run(SocketPtr socket);
|
||||
};
|
||||
|
||||
using SocketInterfaceUPtr = std::unique_ptr<SocketInterface>;
|
Loading…
Add table
Add a link
Reference in a new issue