summaryrefslogtreecommitdiff
path: root/ACE/examples/QOS/Change_Receiver_FlowSpec/QoS_Util.h
diff options
context:
space:
mode:
Diffstat (limited to 'ACE/examples/QOS/Change_Receiver_FlowSpec/QoS_Util.h')
-rw-r--r--ACE/examples/QOS/Change_Receiver_FlowSpec/QoS_Util.h75
1 files changed, 75 insertions, 0 deletions
diff --git a/ACE/examples/QOS/Change_Receiver_FlowSpec/QoS_Util.h b/ACE/examples/QOS/Change_Receiver_FlowSpec/QoS_Util.h
new file mode 100644
index 00000000000..ae347de68f6
--- /dev/null
+++ b/ACE/examples/QOS/Change_Receiver_FlowSpec/QoS_Util.h
@@ -0,0 +1,75 @@
+/* -*- C++ -*- */
+// $Id$
+
+// =====================================================================
+//
+// = LIBRARY
+// ACE_wrappers/examples/QOS
+//
+// = FILENAME
+// QoS_Util.h
+//
+// = AUTHOR
+// Vishal Kachroo <vishal@cs.wustl.edu>
+//
+// =====================================================================
+
+#ifndef QOS_UTIL_H
+#define QOS_UTIL_H
+
+#include "ace/INET_Addr.h"
+#include "ace/QoS/QoS_Session.h"
+
+class QoS_Util
+{
+ // = TITLE
+ // This class provides the utility functions like parse_args ()
+ // required by a QoS enabled application.
+
+public:
+
+ // constructor.
+ QoS_Util (int argc, ACE_TCHAR *argv[]);
+
+ // destructor.
+ ~QoS_Util (void);
+
+ // Parse command-line arguments.
+ int parse_args (void);
+
+ // GET methods.
+ ACE_INET_Addr *mult_session_addr (void) const;
+
+ ACE_INET_Addr *dest_addr (void) const;
+
+ u_short source_port (void) const;
+
+ ACE_Protocol_ID protocol (void) const;
+
+ int multicast_flag (void) const;
+
+private:
+
+ // Command line arguments.
+ int argc_;
+ ACE_TCHAR **argv_;
+
+ // Multicast session address.
+ ACE_INET_Addr *mult_session_addr_;
+
+ // Unicast destination address of the receiver.
+ ACE_INET_Addr *dest_addr_;
+
+ // Source port for the sender.
+ u_short source_port_;
+
+ // Protocol.
+ ACE_Protocol_ID protocol_;
+
+ // Multicast Flag.
+ int multicast_flag_;
+
+};
+
+#endif /* QOS_UTIL_H */
+