summaryrefslogtreecommitdiff
path: root/cpp/src/qpid/sys/ProtocolFactory.h
diff options
context:
space:
mode:
authorAndrew Stitcher <astitcher@apache.org>2008-07-09 20:36:17 +0000
committerAndrew Stitcher <astitcher@apache.org>2008-07-09 20:36:17 +0000
commit2212c5a5b56466491986220ddd6a3aa4e81ff4e4 (patch)
treeb1104abc063d7cf0d869ce7be74e5e84474d2c88 /cpp/src/qpid/sys/ProtocolFactory.h
parent9575428feb2a81323f0426361830bc543eba29db (diff)
downloadqpid-python-2212c5a5b56466491986220ddd6a3aa4e81ff4e4.tar.gz
Some small changes which clean up header file inclusions
and generally start to tidy up the network layer so that it's a bit easier to implement new network transports git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@675338 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/sys/ProtocolFactory.h')
-rw-r--r--cpp/src/qpid/sys/ProtocolFactory.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/cpp/src/qpid/sys/ProtocolFactory.h b/cpp/src/qpid/sys/ProtocolFactory.h
index e8eaefe1f6..4aa14d2cf6 100644
--- a/cpp/src/qpid/sys/ProtocolFactory.h
+++ b/cpp/src/qpid/sys/ProtocolFactory.h
@@ -35,6 +35,8 @@ class Poller;
class ProtocolFactory : public qpid::SharedObject<ProtocolFactory>
{
public:
+ typedef boost::function2<void, int, std::string> ConnectFailedCallback;
+
virtual ~ProtocolFactory() = 0;
virtual uint16_t getPort() const = 0;
virtual std::string getHost() const = 0;
@@ -43,7 +45,7 @@ class ProtocolFactory : public qpid::SharedObject<ProtocolFactory>
boost::shared_ptr<Poller>,
const std::string& host, int16_t port,
ConnectionCodec::Factory* codec,
- boost::function2<void, int, std::string> failed) = 0;
+ ConnectFailedCallback failed) = 0;
};
inline ProtocolFactory::~ProtocolFactory() {}