summaryrefslogtreecommitdiff
path: root/cpp/src/qpid/client/TCPConnector.cpp
diff options
context:
space:
mode:
authorAndrew Stitcher <astitcher@apache.org>2010-01-21 06:15:06 +0000
committerAndrew Stitcher <astitcher@apache.org>2010-01-21 06:15:06 +0000
commit4dae7bc7c71ead4a97c192f839abb1b3c64a55a9 (patch)
tree7759ff53bfbed958d832c9883fbcf45ce344130c /cpp/src/qpid/client/TCPConnector.cpp
parent56c8e15171dae96958cd9106e2e05abbf02739fc (diff)
downloadqpid-python-4dae7bc7c71ead4a97c192f839abb1b3c64a55a9.tar.gz
Split out AsynchConnecter::start from constructor (like other AsynchIO classes)
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@901547 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/client/TCPConnector.cpp')
-rw-r--r--cpp/src/qpid/client/TCPConnector.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/cpp/src/qpid/client/TCPConnector.cpp b/cpp/src/qpid/client/TCPConnector.cpp
index 1a6e51d54d..9369dd2ef4 100644
--- a/cpp/src/qpid/client/TCPConnector.cpp
+++ b/cpp/src/qpid/client/TCPConnector.cpp
@@ -91,14 +91,15 @@ void TCPConnector::connect(const std::string& host, int port) {
assert(closed);
assert(joined);
poller = Poller::shared_ptr(new Poller);
+ AsynchConnector* c =
AsynchConnector::create(socket,
- poller,
host, port,
boost::bind(&TCPConnector::connected, this, _1),
boost::bind(&TCPConnector::connectFailed, this, _3));
closed = false;
joined = false;
receiver = Thread(this);
+ c->start(poller);
}
void TCPConnector::connected(const Socket&) {