serverspy/src/serverspy.cxx
//------------------------------------------------------------------------------
// This function will create new client record in the clients linked list.
//------------------------------------------------------------------------------
This function will create new client record in the clients linked list.
This function will create new client record in the clients linked list .
void CreateNewClient(int id, int client_socket, int client_port, int client_tcp, 
                                                     int model_socket, int model_port, int model_tcp, int type, char* user) {
     ClientDescriptor* descr;
         descr = new ClientDescriptor(id,client_socket,client_port,client_tcp,model_socket,model_port,model_tcp,type,user);
         descr->AddNewClient(descr);
}
void CreateNewClient ( int id , int client_socket , int client_port , int client_tcp , int model_socket , int model_port , int model_tcp , int type , char * user ) { ClientDescriptor * descr ; descr = new ClientDescriptor ( id , client_socket , client_port , client_tcp , model_socket , model_port , model_tcp , type , user ) ; descr -> AddNewClient ( descr ) ; }
This function will create new client record in the clients linked list.
This function will create new client record in the clients linked list .