summaryrefslogtreecommitdiff
path: root/cpp/src/Ice/IncomingRequest.h
diff options
context:
space:
mode:
authorBernard Normier <bernard@zeroc.com>2007-05-16 19:14:39 +0000
committerBernard Normier <bernard@zeroc.com>2007-05-16 19:14:39 +0000
commit93349d8446a3847d38c8bed0cefb71cdecb0570a (patch)
tree1426813a2e221e92dc7ce56c36d4aba240ed0c96 /cpp/src/Ice/IncomingRequest.h
parentBug 1996 - multihomed hostnames (diff)
downloadice-93349d8446a3847d38c8bed0cefb71cdecb0570a.tar.bz2
ice-93349d8446a3847d38c8bed0cefb71cdecb0570a.tar.xz
ice-93349d8446a3847d38c8bed0cefb71cdecb0570a.zip
New Dispatch Interceptor (see bug #2126)
Diffstat (limited to 'cpp/src/Ice/IncomingRequest.h')
-rw-r--r--cpp/src/Ice/IncomingRequest.h38
1 files changed, 38 insertions, 0 deletions
diff --git a/cpp/src/Ice/IncomingRequest.h b/cpp/src/Ice/IncomingRequest.h
new file mode 100644
index 00000000000..cf5aa48e437
--- /dev/null
+++ b/cpp/src/Ice/IncomingRequest.h
@@ -0,0 +1,38 @@
+// **********************************************************************
+//
+// Copyright (c) 2003-2007 ZeroC, Inc. All rights reserved.
+//
+// This copy of Ice is licensed to you under the terms described in the
+// ICE_LICENSE file included in this distribution.
+//
+// **********************************************************************
+
+#ifndef ICE_INCOMING_REQUEST_H
+#define ICE_INCOMING_REQUEST_H
+
+#include <Ice/Incoming.h>
+#include <Ice/Object.h>
+
+namespace IceInternal
+{
+
+//
+// Adapts Incoming to Ice::Request
+// (the goal here is to avoid adding any virtual function to Incoming)
+//
+class ICE_API IncomingRequest : public Ice::Request
+{
+public:
+ IncomingRequest(Incoming& in) :
+ _in(in)
+ {
+ }
+
+ virtual bool isCollocated();
+ virtual const Ice::Current& getCurrent();
+
+ Incoming& _in;
+};
+}
+
+#endif