summaryrefslogtreecommitdiff
path: root/cpp/src/qpid/sys/Poller.h
diff options
context:
space:
mode:
authorAndrew Stitcher <astitcher@apache.org>2008-04-15 15:41:21 +0000
committerAndrew Stitcher <astitcher@apache.org>2008-04-15 15:41:21 +0000
commitdd53b33c3badd538d2d25a35146d9ab032573cc0 (patch)
tree305a9f3e6cdc5d88d6c78638c75dda9d3ddb9831 /cpp/src/qpid/sys/Poller.h
parent8ac8e19e4805e78c3adcab66f1aab2ef5190f48e (diff)
downloadqpid-python-dd53b33c3badd538d2d25a35146d9ab032573cc0.tar.gz
Refactored the IO framework that sits on top of Poller so that it uses a generalised IOHandle.
This means that you can define new classes derived from IOHandle (other than Socket) that can also be added to a Poller and waited for. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@648288 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/sys/Poller.h')
-rw-r--r--cpp/src/qpid/sys/Poller.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/cpp/src/qpid/sys/Poller.h b/cpp/src/qpid/sys/Poller.h
index 0d6b4f9308..dccc12479a 100644
--- a/cpp/src/qpid/sys/Poller.h
+++ b/cpp/src/qpid/sys/Poller.h
@@ -35,16 +35,16 @@ namespace sys {
/**
* Handle class to use for polling
*/
+class IOHandle;
class Poller;
class PollerHandlePrivate;
class PollerHandle {
friend class Poller;
PollerHandlePrivate* const impl;
- const Socket& socket;
public:
- PollerHandle(const Socket& s);
+ PollerHandle(const IOHandle& h);
// Usual way to delete (will defer deletion until we
// can't be returned from a Poller::wait any more)
@@ -52,8 +52,6 @@ public:
// Class clients shouldn't ever use this
virtual ~PollerHandle();
-
- const Socket& getSocket() const {return socket;}
};
/**