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