summaryrefslogtreecommitdiff
path: root/qpid/cpp/src/tests/SocketProxy.h
diff options
context:
space:
mode:
authorAndrew Stitcher <astitcher@apache.org>2011-05-26 20:38:16 +0000
committerAndrew Stitcher <astitcher@apache.org>2011-05-26 20:38:16 +0000
commit46bec4ce2ac0e8260eee6c5e2986bae0f6dafbec (patch)
tree9592c1f5a4de6b1b12b9deae818b27e02a8dd3cb /qpid/cpp/src/tests/SocketProxy.h
parentdd013733f349b34b71392ad61ff101fb281159a6 (diff)
downloadqpid-python-46bec4ce2ac0e8260eee6c5e2986bae0f6dafbec.tar.gz
Refactor socket connect calls to take a string port
This is used used to implement unix domain sockets - QPID-3281 git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1128064 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src/tests/SocketProxy.h')
-rw-r--r--qpid/cpp/src/tests/SocketProxy.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/qpid/cpp/src/tests/SocketProxy.h b/qpid/cpp/src/tests/SocketProxy.h
index 0c6f39d62e..d195f11aa9 100644
--- a/qpid/cpp/src/tests/SocketProxy.h
+++ b/qpid/cpp/src/tests/SocketProxy.h
@@ -35,6 +35,8 @@
#include "qpid/sys/Mutex.h"
#include "qpid/log/Statement.h"
+#include <boost/lexical_cast.hpp>
+
namespace qpid {
namespace tests {
@@ -62,7 +64,7 @@ class SocketProxy : private qpid::sys::Runnable
: closed(false), joined(true),
port(listener.listen()), dropClient(), dropServer()
{
- client.connect(host, connectPort);
+ client.connect(host, boost::lexical_cast<std::string>(connectPort));
joined = false;
thread = qpid::sys::Thread(static_cast<qpid::sys::Runnable*>(this));
}