From 18b24ce73d0740ad7df97ccca6cec5e2ba9d3ec2 Mon Sep 17 00:00:00 2001 From: Andrew Stitcher Date: Fri, 16 Oct 2009 18:47:47 +0000 Subject: 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 --- cpp/src/qpid/sys/AsynchIO.h | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'cpp/src/qpid/sys/AsynchIO.h') 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 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); + QPID_COMMON_EXTERN static AsynchAcceptor* create(const Socket& s, Callback callback); + virtual ~AsynchAcceptor() {}; + virtual void start(boost::shared_ptr poller) = 0; }; /* -- cgit v1.2.1