OSM_SV_MsgReceiver Class Reference

Main class of the Osmius Server. Receives Messages from Master Agents. More...

#include <osm_sv_msgmanager.h>

Collaboration diagram for OSM_SV_MsgReceiver:

Collaboration graph
[legend]
List of all members.

Public Types

typedef ACE_Svc_Handler< ACE_SOCK_STREAM,
ACE_MT_SYNCH > 
PARENT
 Typedef PARENT.

Public Member Functions

 OSM_SV_MsgReceiver (OSM_SV_MsgSender *s=0)
 Constructor using ACE_SOCK_STREAM to receive commands.
virtual ACE_HANDLE get_handle () const
virtual int open (void *)
virtual int svc (void)
 Runs in different threads. Active object configuration.
virtual int handle_close (ACE_HANDLE=ACE_INVALID_HANDLE, ACE_Reactor_Mask=ACE_Event_Handler::ALL_EVENTS_MASK)
 Perform object termination.
int close (u_long flags)
 Close the peer channel.

Protected Attributes

OSM_SV_MsgSendermsg_sender_
 Connection to peer service handler.

Detailed Description

Main class of the Osmius Server. Receives Messages from Master Agents.

Definition at line 264 of file osm_sv_msgmanager.h.


Member Function Documentation

ACE_HANDLE OSM_SV_MsgReceiver::get_handle (  )  const [virtual]

Returns the socket handle used to listen for commands.

Return values:
stream_handle. 

Definition at line 728 of file osm_sv_msgmanager.cpp.

int OSM_SV_MsgReceiver::open ( void *   )  [virtual]

Open method used to either active this object or to register with the reactor.Initialize the handler when called by <ACE_Acceptor::handle_input>.

Return values:
-1 in case of error.

Definition at line 733 of file osm_sv_msgmanager.cpp.

References OSM_CfgManager::counter(), OSM_CfgManager::instance(), and OSM_STAT_AGCONN.

Here is the call graph for this function:


The documentation for this class was generated from the following files:
Generated on Thu Feb 21 18:39:37 2008 for Osmius by  doxygen 1.5.1