Example #1
0
void CMultiSocketServer::Shutdown(const string& endpoint)
{
    // Find the descriptor in the open socket list
    CServerSocket* pSocket = FindSocket(endpoint);
    if (pSocket)
        pSocket->Shutdown();
}
Example #2
0
void CMultiSocketServer::ShutdownAll()
{
    for (ServerSocketIterator it = m_Sockets.begin(); it != m_Sockets.end(); ++it)
    {
        CServerSocket* pSocket = it->second;
        pSocket->Shutdown();
    }
}