serverspy/src/serverspy.cxx
//------------------------------------------------------------------------------
// This function will remove client with the given ID.
//------------------------------------------------------------------------------
This function will remove client with the given ID.
This function will remove client with the given ID .
void AdminRemoveClient(int admin, int id) {
    char reply[10000];
    if(ClientDescriptor::LookupID(id)==NULL) {
        sprintf(reply,"ID=%d - no such client.\n",id);
    } else {
        ClientDescriptor::RemoveClient(id);
        sprintf(reply,"Client %d disconnected from the server.\n",id);
    }
    sendSafe(admin,reply,strlen(reply));
}
void AdminRemoveClient ( int admin , int id ) { char reply [ 10000 ] ; if ( ClientDescriptor :: LookupID ( id ) == NULL ) { sprintf ( reply , " \n " , id ) ; } else { ClientDescriptor :: RemoveClient ( id ) ; sprintf ( reply , " \n " , id ) ; } sendSafe ( admin , reply , strlen ( reply ) ) ; }
This function will remove client with the given ID.
This function will remove client with the given ID .