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

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