serverspy/src/serverspy.cxx
//------------------------------------------------------------------------------
// This function will return a pointer to the client record in the 
// clients linked list or NULL if no client with the given name found.
//------------------------------------------------------------------------------
This function will return a pointer to the client record in the
clients linked list or NULL if no client with the given name found.
This function will return a pointer to the client record in the clients linked list or NULL if no client with the given name found .
ClientDescriptor *ClientDescriptor::LookupID(int id)
{
    ClientDescriptor *cur = sd_list;
    while(cur != NULL){
            if(cur->m_ID==id) return cur;
            cur = cur->m_Next;
    }
    return NULL;
}
ClientDescriptor * ClientDescriptor :: LookupID ( int id ) { ClientDescriptor * cur = sd_list ; while ( cur != NULL ) { if ( cur -> m_ID == id ) return cur ; cur = cur -> m_Next ; } return NULL ; }
This function will return a pointer to the client record in the
clients linked list or NULL if no client with the given name found.
This function will return a pointer to the client record in the clients linked list or NULL if no client with the given name found .