freesecs::hsms_socket_async_t Class Reference

HSMS async socket class Inherits hsms_socket_t functionality, plus implements hsms messages asynchronous reception. More...

#include <hsms_socket.h>

Inheritance diagram for freesecs::hsms_socket_async_t:

Inheritance graph
[legend]
Collaboration diagram for freesecs::hsms_socket_async_t:

Collaboration graph
[legend]
List of all members.

Public Types

enum  state_t { inactive, wtg_for_header, wtg_for_data }
 Asyncronous reception states definition.

Public Member Functions

 hsms_socket_async_t (const char *name, const int port)
 Passive cnx socket ctor.
 hsms_socket_async_t (const char *name, const char *host, const int port)
 Active cnx socket ctor.
virtual ~hsms_socket_async_t ()

Public Attributes

signal_one_arg_t< pdata_tmsg_signal
 Signal for hsms message received.
signal_no_args_t data_partially_recvd
 Signal for receiving activity on tcp link.
signal_no_args_t recv_error
 Signal for recieving error on tcp link.

Protected Member Functions

virtual int disconnect_tcp ()
 disconnect method overload stops async message reception and then calls the method of parent class.
virtual int recv_tcp (pdata_t)
 Start asynchronous message reception. When the whole hsms message comes, msg_signal is triggered.
state_t get_state () const

Friends

class hsms_passive_cnx_t

Detailed Description

HSMS async socket class Inherits hsms_socket_t functionality, plus implements hsms messages asynchronous reception.

Definition at line 199 of file hsms_socket.h.


Member Function Documentation

virtual int freesecs::hsms_socket_async_t::recv_tcp ( pdata_t   )  [protected, virtual]

Start asynchronous message reception. When the whole hsms message comes, msg_signal is triggered.

See also:
msg_signal


The documentation for this class was generated from the following files:
Generated on Fri Oct 3 15:30:26 2008 for FREESECS hsms by  doxygen 1.5.1