summaryrefslogtreecommitdiff
path: root/cpp/src/qpid/sys/AsynchIO.h
diff options
context:
space:
mode:
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;
};
/*