Public Types | |
typedef hsms_socket_t::data_t | data_t |
typedef hsms_socket_t::pdata_t | pdata_t |
Public Member Functions | |
virtual | ~hsms_cnx_t () |
const char * | name () const |
uint16_t | session_id () const |
int | start () |
int | stop () |
int | send (pdata_t) |
Public Attributes | |
signal_one_arg_t< pdata_t > | rx_signal |
Signal for hsms data message received. | |
Protected Member Functions | |
virtual int | open_tcp () |
virtual int | close_tcp () |
virtual int | send_over_tcp (hsms_socket_t::pdata_t) |
virtual int | recv_from_tcp (hsms_socket_t::pdata_t) |
virtual void | hsms_msg_received (hsms_socket_t::pdata_t) |
hsms_cnx_t (const char *name, uint16_t session_id, const char *remote_ip, unsigned remote_port) | |
hsms_cnx_t (const char *name, uint16_t session_id, unsigned local_port) |
Definition at line 41 of file hsms_cnx.h.
hsms_cnx_t::hsms_cnx_t | ( | const char * | name, | |
uint16_t | session_id, | |||
const char * | remote_ip, | |||
unsigned | remote_port | |||
) | [protected] |
HSMS base cnx ctor for active HSMS cnx
Definition at line 31 of file hsms_cnx.cpp.
References freesecs::hsms_socket_t::cnx_failed_signal, freesecs::hsms_socket_t::cnx_state_signal, freesecs::hsms_socket_async_t::data_partially_recvd, freesecs::hsms_socket_async_t::msg_signal, and freesecs::hsms_socket_async_t::recv_error.
hsms_cnx_t::hsms_cnx_t | ( | const char * | name, | |
uint16_t | session_id, | |||
unsigned | local_port | |||
) | [protected] |
HSMS base cnx ctor for passive HSMS cnx
Definition at line 47 of file hsms_cnx.cpp.
References freesecs::hsms_socket_t::cnx_failed_signal, freesecs::hsms_socket_t::cnx_state_signal, freesecs::hsms_socket_async_t::data_partially_recvd, freesecs::hsms_socket_async_t::msg_signal, and freesecs::hsms_socket_async_t::recv_error.
int freesecs::hsms_cnx_t::start | ( | ) |
Starts hsms connection
Definition at line 79 of file hsms_cnx.cpp.
References freesecs::hsms_socket_t::connect().
Here is the call graph for this function:
int hsms_cnx_t::stop | ( | ) |
Stops hsms connection
Definition at line 86 of file hsms_cnx.cpp.
References freesecs::TRACE_DEBUG().
Here is the call graph for this function:
int hsms_cnx_t::send | ( | pdata_t | ) |
Sends data over hsms connection
Definition at line 95 of file hsms_cnx.cpp.
References freesecs::simple_event_pump_t< T >::process_event(), and freesecs::data_msg< data_t >::set_session_id().
Here is the call graph for this function:
int hsms_cnx_t::open_tcp | ( | ) | [protected, virtual] |
Opens tcp connection using hsms async socket instance. This method is called from within HSMS SM implementation (either active or passive)
Implements freesecs::hsms_sm_t.
Definition at line 171 of file hsms_cnx.cpp.
References freesecs::hsms_socket_t::connect().
Here is the call graph for this function:
int hsms_cnx_t::close_tcp | ( | ) | [protected, virtual] |
Closes tcp connection using hsms async socket instance. This method is called from within HSMS SM implementation (either active or passive)
Implements freesecs::hsms_sm_t.
Definition at line 177 of file hsms_cnx.cpp.
References freesecs::hsms_socket_t::disconnect().
Here is the call graph for this function:
int hsms_cnx_t::send_over_tcp | ( | hsms_socket_t::pdata_t | ) | [protected, virtual] |
Sends data over tcp connection using hsms async socket instance. This method is called from within HSMS SM implementation (either active or passive)
Definition at line 183 of file hsms_cnx.cpp.
References freesecs::hsms_socket_t::send().
Here is the call graph for this function:
int hsms_cnx_t::recv_from_tcp | ( | hsms_socket_t::pdata_t | ) | [protected, virtual] |
Starts asincronously receiving data from tcp connection using hsms async socket instance. This method is called from within HSMS SM implementation (either active or passive)
Definition at line 189 of file hsms_cnx.cpp.
References freesecs::hsms_socket_t::receive().
Here is the call graph for this function:
void hsms_cnx_t::hsms_msg_received | ( | hsms_socket_t::pdata_t | ) | [protected, virtual] |
The method is called from within HSMS SM implementation. It reports message reception signal to cnx event sudscriber(s).
Definition at line 195 of file hsms_cnx.cpp.
References rx_signal.