BoostAsyncSocket uses the ASIO framework to implement a cross-platform reverse remote control program. The remote control supports saving sockets. When a socket is connected, it is automatically stored in the map container. When the client goes offline, it is automatically moved from the map container. Except, when we need to communicate with a specific client, we only need to specify the client ID number. The AsyncTcpServer server first defines the CEventHandler class and inherits from the CAsyncTcpServer::IEventHandler interface. In this class, we need to implement three methods. The method ClientConnected is used to trigger when the client connects, and the method ClientDisconnect is used to log in… |
#Reverse #asynchronous #communication #socket #program #BoostAsyncSocket