12 class MVRxchangeSession;
20 uint32_t
GetIP()
const;
21 void AddSession(
const std::shared_ptr<MVRxchangeSession>&);
22 void CloseSession(
const std::shared_ptr<MVRxchangeSession>&);
23 inline bool isRunning()
const {
return !fContext.stopped(); }
27 void ExecutionFunction();
31 tcp::endpoint fEndpoint;
32 boost::asio::io_context fContext;
33 tcp::acceptor fAcceptor;
35 std::thread fExecutionThread;
41 std::set<std::shared_ptr<MVRxchangeSession>> fSession;
Definition mvrxchange_server.h:14
~MVRxchangeServer()
Definition mvrxchange_server.cpp:25
uint16_t GetPort() const
Definition mvrxchange_server.cpp:72
bool isRunning() const
Definition mvrxchange_server.h:23
uint32_t GetIP() const
Definition mvrxchange_server.cpp:77
void AddSession(const std::shared_ptr< MVRxchangeSession > &)
Definition mvrxchange_server.cpp:60
void CloseSession(const std::shared_ptr< MVRxchangeSession > &)
Definition mvrxchange_server.cpp:66
Definition CMVRxchangeService.h:27
Definition mvrxchange_client.h:11