socket_server/SS_Client_T.cpp
/* !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
 * NOTE: For descriptions of class members, please refer to the comments in
 *       SS_Client_T.hpp.
 * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
 */
For descriptions of class members, please refer to the comments in
SS_Client_T.hpp.
For descriptions of class members please refer to the comments in SS_Client_T . hpp .
SS_Client_T::SS_Client_T(Socket_Server_T& server, int socket_fd) :
   m_last_rcvd_msg_time(),
   m_msgs_recv(0),
   m_msgs_sent(0),
   m_outgoing_msg(NULL),
   m_outgoing_queue(),
   m_published_msg_codes(),
   m_recv_header_read(0),
   m_recv_header(),
   m_recv_payload_read(0),
   m_recv_payload(NULL),
   m_recv_total(0),
   m_send_header(),
   m_send_total(0),
   m_server(server),
   m_socket_fd(socket_fd),
   m_spied_from(),
   m_spied_to(),
   m_spy_from(),
   m_spy_to(),
   m_subscribed_msg_codes(),
   m_transmit_header_written(0),
   m_transmit_payload_size(0),
   m_transmit_payload_written(0),
   m_uid(0),
   m_client_description()
{
   #undef SS_SPY_MESSAGE
   #define SS_SPY_MESSAGE(msg) m_spy_handlers[msg] = &SS_Client_T::_##msg##_Processor;
   SS_SPY_MESSAGES
   SS_DBG(__FUNCTION__);
}
SS_Client_T :: SS_Client_T ( Socket_Server_T & server , int socket_fd ) : m_last_rcvd_msg_time ( ) , m_msgs_recv ( 0 ) , m_msgs_sent ( 0 ) , m_outgoing_msg ( NULL ) , m_outgoing_queue ( ) , m_published_msg_codes ( ) , m_recv_header_read ( 0 ) , m_recv_header ( ) , m_recv_payload_read ( 0 ) , m_recv_payload ( NULL ) , m_recv_total ( 0 ) , m_send_header ( ) , m_send_total ( 0 ) , m_server ( server ) , m_socket_fd ( socket_fd ) , m_spied_from ( ) , m_spied_to ( ) , m_spy_from ( ) , m_spy_to ( ) , m_subscribed_msg_codes ( ) , m_transmit_header_written ( 0 ) , m_transmit_payload_size ( 0 ) , m_transmit_payload_written ( 0 ) , m_uid ( 0 ) , m_client_description ( ) { #undef  SS_SPY_MESSAGE
 #define SS_SPY_MESSAGE ( msg )  m_spy_handlers[msg] = &SS_Client_T::_##msg##_Processor;
 SS_SPY_MESSAGES SS_DBG ( __FUNCTION__ ) ; }
NOTE: For descriptions of class members, please refer to the comments in
       SS_Client_T.hpp.
NOTE : For descriptions of class members please refer to the comments in SS_Client_T . hpp .
/* Initialize the handler for each SPY message */