summaryrefslogtreecommitdiff
path: root/cpp/src/Ice/EventHandler.h
diff options
context:
space:
mode:
authorBenoit Foucher <benoit@zeroc.com>2007-11-27 11:58:35 +0100
committerBenoit Foucher <benoit@zeroc.com>2007-11-27 11:58:35 +0100
commit47f800495093fd7679a315e2d730fea22f6135b7 (patch)
treea7b8d3488f3841367dd03d10cae293f36fd10481 /cpp/src/Ice/EventHandler.h
parentFixed SystemException to no longer derive from LocalException (diff)
downloadice-47f800495093fd7679a315e2d730fea22f6135b7.tar.bz2
ice-47f800495093fd7679a315e2d730fea22f6135b7.tar.xz
ice-47f800495093fd7679a315e2d730fea22f6135b7.zip
- Added support for non-blocking AMI/batch requests, connection
creation. - Added support for AMI oneway requests. - Changed collocation optimization to not perform any DNS lookups.
Diffstat (limited to 'cpp/src/Ice/EventHandler.h')
-rw-r--r--cpp/src/Ice/EventHandler.h14
1 files changed, 10 insertions, 4 deletions
diff --git a/cpp/src/Ice/EventHandler.h b/cpp/src/Ice/EventHandler.h
index 03c34bc3fe0..88111ce545b 100644
--- a/cpp/src/Ice/EventHandler.h
+++ b/cpp/src/Ice/EventHandler.h
@@ -46,7 +46,7 @@ public:
// Read data via the event handler. May only be called if
// readable() returns true.
//
- virtual void read(BasicStream&) = 0;
+ virtual bool read(BasicStream&) = 0;
//
// A complete message has been received.
@@ -77,15 +77,21 @@ protected:
const InstancePtr _instance;
-private:
-
//
- // The _stream data member is for use by ThreadPool only
+ // The _stream data member is for use by ThreadPool or by the
+ // connection for connection validation only.
//
BasicStream _stream;
friend class ThreadPool;
};
+class ThreadPoolWorkItem : virtual public IceUtil::Shared
+{
+public:
+
+ virtual void execute(const ThreadPoolPtr&) = 0;
+};
+
}
#endif