bool CListenSocket::Rebind() { if (thePrefs.GetPort() == m_port) return false; Close(); KillAllSockets(); return StartListening(); }
CListenSocket::~CListenSocket() { shutdown = true; Discard(); Close(); #ifdef __DEBUG__ // No new sockets should have been opened by now for (SocketSet::iterator it = socket_list.begin(); it != socket_list.end(); it++) { wxASSERT((*it)->OnDestroy()); } #endif KillAllSockets(); }
CListenSocket::~CListenSocket() { Close(); KillAllSockets(); }