summaryrefslogtreecommitdiff
path: root/cpp/src
diff options
context:
space:
mode:
authorAndrew Stitcher <astitcher@apache.org>2011-05-26 20:38:59 +0000
committerAndrew Stitcher <astitcher@apache.org>2011-05-26 20:38:59 +0000
commit524c6bf61487f229144b5d344675dd7dbb56fa4f (patch)
treeeb7aa2d6ae75fdc4da90a86fa1b9ee0b7af8982d /cpp/src
parent7bb094f36079b5b34f635d51f850d3bca086b5f8 (diff)
downloadqpid-python-524c6bf61487f229144b5d344675dd7dbb56fa4f.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/qpid@1128069 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src')
-rwxr-xr-xcpp/src/qpid/sys/windows/Socket.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/cpp/src/qpid/sys/windows/Socket.cpp b/cpp/src/qpid/sys/windows/Socket.cpp
index fa47308cc2..baa80f04e0 100755
--- a/cpp/src/qpid/sys/windows/Socket.cpp
+++ b/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;