serverspy/src/serverspy.cxx
void ClientDescriptor::AddNewClient(ClientDescriptor *sd) {
    if(sd_list == NULL){
        sd_list      = sd;
        sd_list_last = sd;
    } else {
        sd_list_last->m_Next = sd;
        sd_list_last         = sd;
    }
    m_NumberClients++;
    if (sd->m_Type != -1) {
        LogConnectionEvent( sd, 1 );
    }
}
//------------------------------------------------------------------------------
// This method will add new client to the clients linked list
//------------------------------------------------------------------------------
This method will add new client to the clients linked list
This method will add new client to the clients linked list
void ClientDescriptor::AddNewClient(ClientDescriptor *sd) {
    if(sd_list == NULL){
        sd_list      = sd;
        sd_list_last = sd;
    } else {
        sd_list_last->m_Next = sd;
        sd_list_last         = sd;
    }
    m_NumberClients++;
    if (sd->m_Type != -1) {
        LogConnectionEvent( sd, 1 );
    }
}
void ClientDescriptor :: AddNewClient ( ClientDescriptor * sd ) { if ( sd_list == NULL ) { sd_list = sd ; sd_list_last = sd ; } else { sd_list_last -> m_Next = sd ; sd_list_last = sd ; } m_NumberClients ++ ; if ( sd -> m_Type != -1 ) { LogConnectionEvent ( sd , 1 ) ; } }
This method will add new client to the clients linked list
This method will add new client to the clients linked list