cmdriver/src/CMDriver.cxx
//------------------------------------------------------------------------------------------------------
// This function will remove client with the given address
//------------------------------------------------------------------------------------------------------
This function will remove client with the given address
This function will remove client with the given address
void ClientDescriptor::RemoveAllClients(void) {
    ClientDescriptor *p;
    ClientDescriptor *cur  = sd_list;
    while(cur != NULL) {
        p=cur;
        cur  = cur->m_Next;
        closesocket(p->m_ClientSocket);
        delete p;
    }
    sd_list=sd_list_last=NULL;
}
void ClientDescriptor :: RemoveAllClients ( void ) { ClientDescriptor * p ; ClientDescriptor * cur = sd_list ; while ( cur != NULL ) { p = cur ; cur = cur -> m_Next ; closesocket ( p -> m_ClientSocket ) ; delete p ; } sd_list = sd_list_last = NULL ; }
This function will remove client with the given address
This function will remove client with the given address