00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014 #ifndef FILL_ACE_QOS_H
00015 #define FILL_ACE_QOS_H
00016
00017 #include "ace/config-all.h"
00018
00019 #if defined (ACE_HAS_RAPI) || defined (ACE_HAS_WINSOCK2_GQOS)
00020
00021 #include "tao/Versioned_Namespace.h"
00022
00023 #include "ace/SString.h"
00024 #include "ace/Hash_Map_Manager_T.h"
00025 #include "ace/Synch.h"
00026 #include "ace/ACE.h"
00027 #include "ace/OS_QoS.h"
00028
00029 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
00030
00031
00032
00033
00034
00035
00036
00037
00038 class Fill_ACE_QoS
00039 {
00040
00041 public:
00042 typedef ACE_Hash_Map_Manager <ACE_CString, ACE_Flow_Spec *, ACE_Null_Mutex> FLOW_SPEC_HASH_MAP;
00043
00044
00045
00046 Fill_ACE_QoS (void);
00047
00048
00049 ~Fill_ACE_QoS (void);
00050
00051
00052
00053 int fill_simplex_receiver_qos (ACE_QoS &ace_qos,
00054 ACE_Flow_Spec *recv_flow_spec);
00055
00056
00057
00058 int fill_simplex_sender_qos (ACE_QoS &ace_qos,
00059 ACE_Flow_Spec *recv_flow_spec);
00060
00061
00062
00063 int fill_duplex_qos (ACE_QoS &ace_qos,
00064 ACE_Flow_Spec *recv_flow_spec,
00065 ACE_Flow_Spec *sender_flow_spec);
00066
00067
00068 FLOW_SPEC_HASH_MAP& map (void);
00069
00070 private:
00071
00072
00073 static const iovec iov_;
00074
00075
00076
00077 ACE_Flow_Spec *default_traffic_;
00078
00079
00080 FLOW_SPEC_HASH_MAP flow_spec_map_;
00081 };
00082
00083 TAO_END_VERSIONED_NAMESPACE_DECL
00084
00085 #endif
00086 #endif