Public Types | Public Member Functions | Private Attributes

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 Member Functions

 ACE_QoS_Manager (void)
 Default constructor.
 ~ACE_QoS_Manager (void)
 Default destructor.
int join_qos_session (ACE_QoS_Session *qos_session)
ACE_QOS_SESSION_SET qos_session_set (void)
 Get the QoS session set.

Private Attributes

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

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 43 of file QoS_Manager.h.


Member Typedef Documentation

Definition at line 60 of file QoS_Manager.h.


Constructor & Destructor Documentation

ACE_QoS_Manager::ACE_QoS_Manager ( void   ) 

Default constructor.

Definition at line 13 of file QoS_Manager.cpp.

{}

ACE_QoS_Manager::~ACE_QoS_Manager ( void   ) 

Default destructor.

Definition at line 16 of file QoS_Manager.cpp.

{}


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 23 of file QoS_Manager.cpp.

{
  if (this->qos_session_set ().insert (qos_session) != 0)
    ACE_ERROR_RETURN ((LM_ERROR,
                       ACE_TEXT ("Error in adding a new session to the ")
                       ACE_TEXT ("socket session set\n")),
                      -1);
  return 0;
}

ACE_Unbounded_Set< ACE_QoS_Session * > ACE_QoS_Manager::qos_session_set ( void   ) 

Get the QoS session set.

Definition at line 36 of file QoS_Manager.cpp.

{
  return this->qos_session_set_;
}


Member Data Documentation

Set of QoS sessions that this socket has joined.

Definition at line 68 of file QoS_Manager.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines