summaryrefslogtreecommitdiff
path: root/ACE/examples/QOS/Simple/Receiver_QoS_Event_Handler.h
diff options
context:
space:
mode:
Diffstat (limited to 'ACE/examples/QOS/Simple/Receiver_QoS_Event_Handler.h')
-rw-r--r--ACE/examples/QOS/Simple/Receiver_QoS_Event_Handler.h61
1 files changed, 61 insertions, 0 deletions
diff --git a/ACE/examples/QOS/Simple/Receiver_QoS_Event_Handler.h b/ACE/examples/QOS/Simple/Receiver_QoS_Event_Handler.h
new file mode 100644
index 00000000000..874d628e3c1
--- /dev/null
+++ b/ACE/examples/QOS/Simple/Receiver_QoS_Event_Handler.h
@@ -0,0 +1,61 @@
+/* -*- C++ -*- */
+// $Id$
+
+// ============================================================================
+//
+// = LIBRARY
+// ACE_wrappers/examples/QOS
+//
+// = FILENAME
+// Receiver_QoS_Event_Handler.h
+//
+// = AUTHOR
+// Vishal Kachroo <vishal@cs.wustl.edu>
+//
+// ============================================================================
+
+#ifndef RECEIVER_QOS_EVENT_HANDLER_H
+#define RECEIVER_QOS_EVENT_HANDLER_H
+
+#include "ace/Reactor.h"
+#include "ace/INET_Addr.h"
+#include "ace/Event_Handler.h"
+#include "ace/QoS/QoS_Session.h"
+#include "ace/QoS/SOCK_Dgram_Mcast_QoS.h"
+
+ACE_RCSID(Receiver_QoS_Event_Handler, Receiver_QoS_Event_Handler, "$Id$")
+
+ class Receiver_QoS_Event_Handler : public ACE_Event_Handler
+ {
+ public:
+ // = Initialization and Termination methods.
+ Receiver_QoS_Event_Handler (void);
+ // Constructor.
+
+ Receiver_QoS_Event_Handler::Receiver_QoS_Event_Handler (const ACE_SOCK_Dgram_Mcast_QoS &dgram_mcast_qos,
+ ACE_QoS_Session *qos_session);
+ // Constructor.
+
+ ~Receiver_QoS_Event_Handler (void);
+ // Destructor.
+
+ virtual ACE_HANDLE get_handle (void) const;
+ // Override this to return the handle of the Dgram_Mcast
+ // that we are using.
+
+ virtual int handle_input (ACE_HANDLE fd);
+ // Handles a READ event.
+
+ virtual int handle_qos (ACE_HANDLE fd);
+ // Handles a QoS event.
+
+ private:
+ ACE_SOCK_Dgram_Mcast_QoS dgram_mcast_qos_;
+ ACE_QoS_Session *qos_session_;
+ ACE_INET_Addr remote_addr_;
+ };
+
+#endif /* RECEIVER_QOS_EVENT_HANDLER_H */
+
+
+