serverspy/src/serverspy.cxx
//------------------------------------------------------------------------------
// Constructor will create new client with the client name
//------------------------------------------------------------------------------
Constructor will create new client with the client name
Constructor will create new client with the client name
ClientDescriptor::ClientDescriptor(int id, 
                                   int client_socket,
                                   int client_port, 
                                   int client_addr,
                                   int server_socket,
                                   int server_port,
                                   int server_addr,
                                   int type,
                                   char* user)
{
    this->m_UserName       =  strdup(user);
    this->m_ID             = id;
    this->m_ClientSocket   = client_socket;
    this->m_ClientPort     = client_port;
    this->m_ClientTCP      = client_addr;
    this->m_ServerSocket   = server_socket;
    this->m_ServerPort     = server_port;
    this->m_ServerTCP      = server_addr;
    this->m_Processing     = 0;
    this->m_Timeout        = 0;
    this->m_Commands       =0;
    this->m_LastCommand     = NULL;
    this->m_LastCommandLength = 0;
    this->m_Next           = NULL;
    this->m_Type           = type;
}
ClientDescriptor :: ClientDescriptor ( int id , int client_socket , int client_port , int client_addr , int server_socket , int server_port , int server_addr , int type , char * user ) { this -> m_UserName = strdup ( user ) ; this -> m_ID = id ; this -> m_ClientSocket = client_socket ; this -> m_ClientPort = client_port ; this -> m_ClientTCP = client_addr ; this -> m_ServerSocket = server_socket ; this -> m_ServerPort = server_port ; this -> m_ServerTCP = server_addr ; this -> m_Processing = 0 ; this -> m_Timeout = 0 ; this -> m_Commands = 0 ; this -> m_LastCommand = NULL ; this -> m_LastCommandLength = 0 ; this -> m_Next = NULL ; this -> m_Type = type ; }
Constructor will create new client with the client name
Constructor will create new client with the client name