summaryrefslogtreecommitdiff
path: root/cpp/src/qpid/sys/AsynchIO.h
diff options
context:
space:
mode:
authorAndrew Stitcher <astitcher@apache.org>2009-10-16 18:47:47 +0000
committerAndrew Stitcher <astitcher@apache.org>2009-10-16 18:47:47 +0000
commit18b24ce73d0740ad7df97ccca6cec5e2ba9d3ec2 (patch)
treee7124e5e295a79d2c2518bbf9d5d3a161bdba39a /cpp/src/qpid/sys/AsynchIO.h
parent2b04bc6dc46b3f761a239f41032258eb1d345fbf (diff)
downloadqpid-python-18b24ce73d0740ad7df97ccca6cec5e2ba9d3ec2.tar.gz
Rationalised AsynchConnector/Acceptor/IO to all use the same code structure
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@826032 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/sys/AsynchIO.h')
-rw-r--r--cpp/src/qpid/sys/AsynchIO.h11
1 files changed, 3 insertions, 8 deletions
diff --git a/cpp/src/qpid/sys/AsynchIO.h b/cpp/src/qpid/sys/AsynchIO.h
index 419770568a..2a41f0a7d1 100644
--- a/cpp/src/qpid/sys/AsynchIO.h
+++ b/cpp/src/qpid/sys/AsynchIO.h
@@ -36,18 +36,13 @@ class Poller;
* Asynchronous acceptor: accepts connections then does a callback with the
* accepted fd
*/
-class AsynchAcceptorPrivate;
class AsynchAcceptor {
public:
typedef boost::function1<void, const Socket&> Callback;
-private:
- AsynchAcceptorPrivate* impl;
-
-public:
- QPID_COMMON_EXTERN AsynchAcceptor(const Socket& s, Callback callback);
- QPID_COMMON_EXTERN ~AsynchAcceptor();
- QPID_COMMON_EXTERN void start(boost::shared_ptr<Poller> poller);
+ QPID_COMMON_EXTERN static AsynchAcceptor* create(const Socket& s, Callback callback);
+ virtual ~AsynchAcceptor() {};
+ virtual void start(boost::shared_ptr<Poller> poller) = 0;
};
/*