summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Stitcher <astitcher@apache.org>2011-05-26 20:39:19 +0000
committerAndrew Stitcher <astitcher@apache.org>2011-05-26 20:39:19 +0000
commit1cfc0dc6a7e4b951f47452bdc22cc178ab159c22 (patch)
tree7709a0519df40e69cdce5419ea287d2a7f6bbd6c
parent998dad52d13280508ff2704a7ef3f9af836b5a25 (diff)
downloadqpid-python-1cfc0dc6a7e4b951f47452bdc22cc178ab159c22.tar.gz
NO-JIRA: Windows: set up name to connect to before connecting (as unix code)
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1128069 13f79535-47bb-0310-9956-ffa450edef68
-rwxr-xr-xqpid/cpp/src/qpid/sys/windows/Socket.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/qpid/cpp/src/qpid/sys/windows/Socket.cpp b/qpid/cpp/src/qpid/sys/windows/Socket.cpp
index fa47308cc2..baa80f04e0 100755
--- a/qpid/cpp/src/qpid/sys/windows/Socket.cpp
+++ b/qpid/cpp/src/qpid/sys/windows/Socket.cpp
@@ -164,6 +164,8 @@ void Socket::connect(const std::string& host, const std::string& port) const
void
Socket::connect(const SocketAddress& addr) const
{
+ peername = addr.asString(false);
+
const SOCKET& socket = impl->fd;
const addrinfo *addrs = &(getAddrInfo(addr));
int error = 0;