diff options
| author | Andrew Stitcher <astitcher@apache.org> | 2009-10-16 18:47:47 +0000 |
|---|---|---|
| committer | Andrew Stitcher <astitcher@apache.org> | 2009-10-16 18:47:47 +0000 |
| commit | 18b24ce73d0740ad7df97ccca6cec5e2ba9d3ec2 (patch) | |
| tree | e7124e5e295a79d2c2518bbf9d5d3a161bdba39a /cpp/src/qpid/sys/AsynchIO.h | |
| parent | 2b04bc6dc46b3f761a239f41032258eb1d345fbf (diff) | |
| download | qpid-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.h | 11 |
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; }; /* |
