summaryrefslogtreecommitdiff
path: root/trunk/TAO/tao/DynamicInterface/DII_Reply_Dispatcher.h
diff options
context:
space:
mode:
Diffstat (limited to 'trunk/TAO/tao/DynamicInterface/DII_Reply_Dispatcher.h')
-rw-r--r--trunk/TAO/tao/DynamicInterface/DII_Reply_Dispatcher.h80
1 files changed, 80 insertions, 0 deletions
diff --git a/trunk/TAO/tao/DynamicInterface/DII_Reply_Dispatcher.h b/trunk/TAO/tao/DynamicInterface/DII_Reply_Dispatcher.h
new file mode 100644
index 00000000000..cb450106c5d
--- /dev/null
+++ b/trunk/TAO/tao/DynamicInterface/DII_Reply_Dispatcher.h
@@ -0,0 +1,80 @@
+// -*- C++ -*-
+
+//=============================================================================
+/**
+ * @file DII_Reply_Dispatcher.h
+ *
+ * $Id$
+ *
+ * @brief Dispatch the reply appropriately.
+ *
+ * @author Alexander Babu Arulanthu <alex@cs.wustl.edu>
+ */
+
+#ifndef TAO_DII_REPLY_DISPATCHER_H
+#define TAO_DII_REPLY_DISPATCHER_H
+
+#include /**/ "ace/pre.h"
+
+#include "tao/DynamicInterface/dynamicinterface_export.h"
+
+#if !defined (ACE_LACKS_PRAGMA_ONCE)
+# pragma once
+#endif /* ACE_LACKS_PRAGMA_ONCE */
+
+#include "tao/orbconf.h"
+#include "tao/Asynch_Reply_Dispatcher_Base.h"
+
+TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+
+namespace CORBA
+{
+ class Request;
+ typedef Request *Request_ptr;
+}
+
+class TAO_ORB_Core;
+
+/**
+ * @class TAO_DII_Deferred_Reply_Dispatcher
+ *
+ * @brief Reply dispatcher for DII deferred requests.
+ */
+
+class TAO_DynamicInterface_Export TAO_DII_Deferred_Reply_Dispatcher
+ : public TAO_Asynch_Reply_Dispatcher_Base
+{
+public:
+ TAO_DII_Deferred_Reply_Dispatcher (const CORBA::Request_ptr req,
+ TAO_ORB_Core *orb_core);
+
+
+
+ // = The Reply_Dispatcher methods
+ virtual int dispatch_reply (TAO_Pluggable_Reply_Params &param);
+
+ virtual void connection_closed (void);
+
+ /// The following methods are not needed for this class..
+ virtual void reply_timed_out (void) {}
+ virtual long schedule_timer (CORBA::ULong ,
+ const ACE_Time_Value &
+ ACE_ENV_ARG_DECL_NOT_USED)
+ {
+ return 0;
+ }
+
+protected:
+ /// Destructor.
+ ~TAO_DII_Deferred_Reply_Dispatcher (void);
+
+private:
+ /// Where the reply needs to go.
+ const CORBA::Request_ptr req_;
+};
+
+TAO_END_VERSIONED_NAMESPACE_DECL
+
+#include /**/ "ace/post.h"
+
+#endif /* TAO_REPLY_DISPATCHER_H */