freesecs Namespace Reference


Classes

class  async_reception_t
 Asyncronous read from a file descriptor The class implements async read from file descriptor using POSIX select. The read is done in a separate thread with the signal triggered when all the requested data comes. There's only one thread started per multiple async_reception_t instances, with refcount, to exit when the last async_reception_t gets destroyed. The new async_reception_t gets created, FDSET is updated and the thread is notified to call select against an updated FDSET. More...
class  callback_t
 Callback (with no arguments) class implementation Wraps any class object together with it's method of type int(*method)(void) into an object for a later invocation. More...
class  callback_1arg_t
 Callback (with 1 argument) class implementation Wraps any class object together with it's method of type int(*method)(<template type>=""> arg) into an object for a later invocation. More...
class  threaded_event_pump_t
 Queue of events of template type that is processed in a separate thread. There shall be a descendant class overloading pure virtual method process to use threaded event pump feature. More...
class  simple_event_pump_t
 Thread-safe queue of events of template type that is processed right in place. There shall be a descendant class overloading pure virtual method process to use simple event pump feature. More...
class  shared_ptr_t
 Shared ptr with refcount. Obtained from www.koders.com. More...
class  signal_no_args_multiple_clients_t
 Signal with no args and multiple clients support Signal takes no arguments. Multiple clients can get attached to the signal. The client signal handler must be the method of some class and must be of the following type: int (*pfunc)(). More...
class  signal_no_args_single_client_t
 Signal with no args and single client suport Signal takes no arguments. Only one client at a time can get attached to the signal. The client signal handler must be the method of some class and must be of the following type: int (*pfunc)(). More...
class  signal_one_arg_multiple_clients_t
 Signal with one arg and multiple clients support Signal takes one argument of template type. Multiple clients can get attached to the signal. The client signal handler must be the method of some class and must be of the following type: int (*pfunc)(const Arg&) where Arg is a template parameter. More...
class  signal_one_arg_single_client_t
 Signal with one arg and single client support Signal takes one argument of template type. Only one client can get attached to the signal at a time. The client signal handler must be the method of some class and must be of the following type: int (*pfunc)(const Arg&) where Arg is a template parameter. More...
class  ms_timer_t
 Timer implementation Implementation is based on: More...
class  lock_t
 Mutex locker class A mutex is locked in class ctor and unlocked in class dtor. More...
class  thread_safe_queue
 Mutex-protected queue. More...
class  hsms_config_t
 Base class for parsing [key, value] tuples and holding parsed hsms settings. More...
class  hsms_passive_config_t
 Passive HSMS cnx settings parser. More...
class  hsms_active_config_t
 Active HSMS cnx settings parser. More...
class  hsms_config_parser_t
 Wrapper around libexpat Initialises libexpat instance Parses config file Holds arrays of settings for active/passive HSMS connections. More...
class  hsms_factory_t
 Creates a list of HSMS cnx objects from config file using hsms_config_parser_t. More...
class  hsms_cnx_t
class  hsms_active_cnx_t
 Active HSMS cnx class. More...
class  hsms_passive_cnx_t
 Passive HSMS cnx class. More...
class  hsms_msg_base
 Base class for all HSMS messages Incorporates methods and data common for all HSMS messages and defines interfaces descendant clesses. More...
class  select_req
 Select.req class. More...
class  select_rsp
 Select.rsp class. More...
class  linktest_req
 Linktest.req class. More...
class  linktest_rsp
 Linktest.rsp class. More...
class  reject_req
 Reject.req class. More...
class  separate_req
 Separate.req class. More...
class  data_msg
 Data message class. More...
class  hsms_socket_t
 HSMS socket base class Implements tcp cnx link establishment, defines interface for descendant classes. More...
class  hsms_socket_async_t
 HSMS async socket class Inherits hsms_socket_t functionality, plus implements hsms messages asynchronous reception. More...
struct  hsms_passive_params_t
 HSMS Passive SM configure parameters. More...
struct  hsms_active_params_t
 HSMS Active SM configure parameters. More...
struct  hsms_event_t
 HSMS event structure. More...
class  hsms_sm_t
 HSMS SM base class. Inherits from event_pump_t for thread-safe event handling. Defines HSMS SM datatypes and signals. Defines abstract interface to open/close tcp cnx and to send data/recv over tcp. NOTE: T9 timeout is not managed with FREESECS HSMS module. More...
class  passive_hsms_sm_t
 Passive HSMS SM class. More...
class  active_hsms_sm_t
 Active HSMS SM class. More...
class  hsmsd_proxy_t
 HSMS cnx thin client implementation class. More...
class  hsmsd_client_registrar_t
class  ua_req_handler_t
 Processes request data from the client. More...
class  user_agent_t
 User agent for the HSMS daemon client Processes requests from the client and is a mediator between the client and HSMS connection instance. More...

Enumerations

enum  hsms_ev_et {
  e_tcpip_established = 0, e_hsms_msg_rcvd, e_tcpip_error, e_cnx_term_req,
  e_cnx_start_req, e_datamsg_send_req, e_linktest_timeout, e_t5_timeout,
  e_t6_timeout, e_t7_timeout, e_t8_timeout, e_data_received,
  e_tcpip_broken, e_tcpip_cnx_failure
}
 HSMS SM event types enum.
enum  hsms_state_et { e_hsms_not_connected, e_hsms_not_selected, e_hsms_selected, e_hsms_not_connected_t5 }
 HSMS SM states definition enum.

Functions

void TRACE_CRITICAL (const char *fmt,...)
void TRACE_ERROR (const char *fmt,...)
void TRACE_INFO (int lvl, const char *fmt,...)
void TRACE_DEBUG (int lvl, const char *fmt,...)
void TRACE_FSM_BEGIN (int lvl, const char *fsm_name, int state, int event)
void TRACE_FSM_END (int lvl, const char *fsm_name, int state, int event)
void TRACE_FSM_TRANS (int lvl, const char *fsm_name, int prev_state, int new_state)
void TRACE_FSM_ERROR (int lvl, const char *fsm_name, const char *fmt,...)
void TRACE_FSM_ACTION (int lvl, const char *fsm_name, const char *act, const char *fmt,...)
void TRACE_HEX_DUMP (int lvl, const char *msg, size_t len)


Generated on Fri Oct 3 15:30:05 2008 for FREESECS hsms by  doxygen 1.5.1