summaryrefslogtreecommitdiff
path: root/ace/QoS_Manager.h
blob: 66936aeeb8edd9c92a3cd76c1e7e4412a5d40e8b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
/* -*- C++ -*- */
// $Id$

//============================================================================
//
// = LIBRARY
//    ace
//
// = FILENAME
//    QoS_Manager.h
//
// = AUTHOR
//    Vishal Kachroo
//
//============================================================================

#ifndef ACE_QOS_MANAGER_H
#define ACE_QOS_MANAGER_H
#include "ace/pre.h"

#include "ace/Addr.h"

#if !defined (ACE_LACKS_PRAGMA_ONCE)
#define  ACE_LACKS_PRAGMA_ONCE
#endif /* ACE_LACKS_PRAGMA_ONCE */

#include "ace/IPC_SAP.h"
#include "ace/Containers_T.h"

class ACE_QoS_Session;

class ACE_Export ACE_QoS_Manager
{
  // = TITLE
  //     This class manages the QoS sessions associated with ACE_SOCK.
  //
  // = DESCRIPTION 
  //     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.

public:
  ACE_QoS_Manager (void);
  ~ACE_QoS_Manager (void);
  // Default ctor/dtor.
  
  int 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.

  typedef ACE_Unbounded_Set <ACE_QoS_Session *> ACE_QOS_SESSION_SET;

  ACE_QOS_SESSION_SET qos_session_set (void);
  // Get the QoS session set.

private:

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

#include "ace/post.h"
#endif /* ACE_QOS_MANAGER_H */