feat(common): introduce common networking and CLI infrastructure
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
#pragma once
|
||||
|
||||
#include "aliases.hpp"
|
||||
|
||||
class TcpServerBase
|
||||
{
|
||||
public:
|
||||
TcpServerBase(IoContext &io, unsigned short port);
|
||||
virtual ~TcpServerBase() = default;
|
||||
|
||||
void start();
|
||||
|
||||
protected:
|
||||
virtual void createSession(TcpSocket socket) = 0;
|
||||
|
||||
TcpAcceptor acceptor_;
|
||||
};
|
||||
Reference in New Issue
Block a user