stuff-from-scratch/src/network/sockets/SocketInterface.h

20 lines
370 B
C
Raw Normal View History

2020-07-04 18:43:08 +00:00
#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>;