This class manages the QoS sessions associated with ACE_SOCK. More...
#include <QoS_Manager.h>
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 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.
Definition at line 60 of file QoS_Manager.h.
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.
{ 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_; }
Set of QoS sessions that this socket has joined.
Definition at line 68 of file QoS_Manager.h.