Exemplo n.º 1
0
bool NetworkManager::OnSocketOpen(const SocketPtr& socket)
{
    NetworkThread& thread = socket->owner();
    thread.AddSocket(socket);

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