#pragma once #include #include #include using boost::asio::ip::tcp; class NetworkService { public: NetworkService(uint16_t port, int threadCount); ~NetworkService(); void Run(); void Stop(); private: void DoAccept(); boost::asio::io_context io_context_; std::vector threads_; tcp::acceptor acceptor_; boost::asio::executor_work_guard work_guard_; };