#include <QoS_Manager.h>
Collaboration diagram for ACE_QoS_Manager:
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. |
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.
Definition at line 60 of file QoS_Manager.h.
ACE_BEGIN_VERSIONED_NAMESPACE_DECL ACE_QoS_Manager::ACE_QoS_Manager | ( | void | ) |
ACE_QoS_Manager::~ACE_QoS_Manager | ( | void | ) |
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.
References ACE_ERROR_RETURN, ACE_TEXT, and LM_ERROR.
00024 { 00025 if (this->qos_session_set ().insert (qos_session) != 0) 00026 ACE_ERROR_RETURN ((LM_ERROR, 00027 ACE_TEXT ("Error in adding a new session to the ") 00028 ACE_TEXT ("socket session set\n")), 00029 -1); 00030 return 0; 00031 }
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.
References qos_session_set_.
Referenced by ACE_GQoS_Session::qos().
00037 { 00038 return this->qos_session_set_; 00039 }
Set of QoS sessions that this socket has joined.
Definition at line 68 of file QoS_Manager.h.
Referenced by qos_session_set().