QoS_Manager.h

Go to the documentation of this file.
00001 // -*- C++ -*-
00002 
00003 //=============================================================================
00004 /**
00005  *  @file    QoS_Manager.h
00006  *
00007  *  $Id: QoS_Manager.h 69855 2005-12-08 22:25:45Z ossama $
00008  *
00009  *  @author Vishal Kachroo
00010  */
00011 //=============================================================================
00012 
00013 
00014 #ifndef ACE_QOS_MANAGER_H
00015 #define ACE_QOS_MANAGER_H
00016 #include /**/ "ace/pre.h"
00017 
00018 #include "ace/Addr.h"
00019 
00020 #if !defined (ACE_LACKS_PRAGMA_ONCE)
00021 #pragma once
00022 #endif /* ACE_LACKS_PRAGMA_ONCE */
00023 
00024 #include "ace/IPC_SAP.h"
00025 #include "ace/Containers_T.h"
00026 #include "ACE_QoS_Export.h"
00027 #include "QoS_Session.h"
00028 
00029 
00030 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
00031 
00032 /**
00033  * @class ACE_QoS_Manager
00034  *
00035  * @brief This class manages the QoS sessions associated with ACE_SOCK.
00036  *
00037  * This class provides functions to manage the QoS
00038  * associated with a socket.  The idea is to keep the management of
00039  * QoS for a socket separate from the socket itself. Currently, the
00040  * manager is used to manage the QoS session set. It will handle more
00041  * responsibilities in the future.
00042  */
00043 class ACE_QoS_Export ACE_QoS_Manager
00044 {
00045 
00046 public:
00047   /// Default constructor.
00048   ACE_QoS_Manager (void);
00049 
00050   /// Default destructor.
00051   ~ACE_QoS_Manager (void);
00052 
00053   /**
00054    * Join the given QoS session. A socket can join multiple QoS
00055    * sessions.  This call adds the given QoS session to the list of
00056    * QoS sessions that the socket has already joined.
00057    */
00058   int join_qos_session (ACE_QoS_Session *qos_session);
00059 
00060   typedef ACE_Unbounded_Set <ACE_QoS_Session *> ACE_QOS_SESSION_SET;
00061 
00062   /// Get the QoS session set.
00063   ACE_QOS_SESSION_SET qos_session_set (void);
00064 
00065 private:
00066 
00067   /// Set of QoS sessions that this socket has joined.
00068   ACE_QOS_SESSION_SET qos_session_set_;
00069 };
00070 
00071 ACE_END_VERSIONED_NAMESPACE_DECL
00072 
00073 #include /**/ "ace/post.h"
00074 #endif /* ACE_QOS_MANAGER_H */

Generated on Sun Jan 27 13:03:37 2008 for ACE_QoS by doxygen 1.3.6