예제 #1
0
bool NetworkManager::OnSocketOpen(const SocketPtr& socket)
{
    NetworkThread& thread = socket->owner();
    thread.AddSocket(socket);

    return true;
}
예제 #2
0
void NetworkManager::OnSocketClose(const SocketPtr& socket)
{
    NetworkThread& thread = socket->owner();
    thread.RemoveSocket(socket);
}