feat(common): introduce common networking and CLI infrastructure

This commit is contained in:
Ваше Имя
2025-09-30 18:33:06 +04:00
parent ad9b11cdbd
commit ba91359db3
12 changed files with 385 additions and 0 deletions
+17
View File
@@ -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_;
};