Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

ACE_QoS_Manager Class Reference

This class manages the QoS sessions associated with ACE_SOCK. More...

#include <QoS_Manager.h>

Collaboration diagram for ACE_QoS_Manager:

Collaboration graph
[legend]
List of all members.

Public Types

typedef ACE_Unbounded_Set<
ACE_QoS_Session * > 
ACE_QOS_SESSION_SET

Public Methods

 ACE_QoS_Manager (void)
 Default constructor. More...

 ~ACE_QoS_Manager (void)
 Default destructor. More...

int join_qos_session (ACE_QoS_Session *qos_session)
ACE_QOS_SESSION_SET qos_session_set (void)
 Get the QoS session set. More...


Private Attributes

ACE_QOS_SESSION_SET qos_session_set_
 Set of QoS sessions that this socket has joined. More...


Detailed Description

This class manages the QoS sessions associated with ACE_SOCK.

This class provides functions to manage the QoS associated with a socket. The idea is to keep the management of QoS for a socket separate from the socket itself. Currently, the manager is used to manage the QoS session set. It will handle more responsibilities in the future.

Definition at line 40 of file QoS_Manager.h.


Member Typedef Documentation

typedef ACE_Unbounded_Set<ACE_QoS_Session *> ACE_QoS_Manager::ACE_QOS_SESSION_SET
 

Definition at line 57 of file QoS_Manager.h.


Constructor & Destructor Documentation

ACE_QoS_Manager::ACE_QoS_Manager void   
 

Default constructor.

Definition at line 11 of file QoS_Manager.cpp.

00012 {}

ACE_QoS_Manager::~ACE_QoS_Manager void   
 

Default destructor.

Definition at line 14 of file QoS_Manager.cpp.

00015 {}


Member Function Documentation

int ACE_QoS_Manager::join_qos_session ACE_QoS_Session   qos_session
 

Join the given QoS session. A socket can join multiple QoS sessions. This call adds the given QoS session to the list of QoS sessions that the socket has already joined.

Definition at line 21 of file QoS_Manager.cpp.

References ACE_ERROR_RETURN, ACE_LIB_TEXT, ACE_Unbounded_Set< ACE_QoS_Session * >::insert, LM_ERROR, and qos_session_set.

Referenced by ACE_SOCK_Dgram_Mcast_QoS::subscribe.

00022 {
00023   if (this->qos_session_set ().insert (qos_session) != 0)
00024     ACE_ERROR_RETURN ((LM_ERROR,
00025                        ACE_LIB_TEXT ("Error in adding a new session to the ")
00026                        ACE_LIB_TEXT ("socket session set\n")),
00027                       -1);
00028   return 0;
00029 }

ACE_Unbounded_Set< ACE_QoS_Session * > ACE_QoS_Manager::qos_session_set void   
 

Get the QoS session set.

Definition at line 34 of file QoS_Manager.cpp.

References qos_session_set_.

Referenced by join_qos_session, and ACE_GQoS_Session::qos.

00035 {
00036   return this->qos_session_set_;
00037 }


Member Data Documentation

ACE_QOS_SESSION_SET ACE_QoS_Manager::qos_session_set_ [private]
 

Set of QoS sessions that this socket has joined.

Definition at line 65 of file QoS_Manager.h.

Referenced by qos_session_set.


The documentation for this class was generated from the following files:
Generated on Mon Jun 16 13:17:46 2003 for ACE_QoS by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002