summaryrefslogtreecommitdiff
path: root/cpp/src/qpid/sys/windows/Socket.cpp
diff options
context:
space:
mode:
authorAndrew Stitcher <astitcher@apache.org>2012-10-24 05:51:19 +0000
committerAndrew Stitcher <astitcher@apache.org>2012-10-24 05:51:19 +0000
commitc61f7c0c79717b0eb842d0c4c88deeda9f7672e6 (patch)
treebaabe1be2b4389b3412154598fe0ea543ddd63f5 /cpp/src/qpid/sys/windows/Socket.cpp
parentf47c28c9ee2fb8f2967a221a28912060edcba749 (diff)
downloadqpid-python-c61f7c0c79717b0eb842d0c4c88deeda9f7672e6.tar.gz
QPID-4272: Large amounts of code are duplicated between the SSL and TCP transports
Refactor to unify the various SSL and TCP interfaces: - Make ssl listen have the same signature as regular sockets - Give ssl connect same interface as tcp - Unify the SSL and TCP IO interfaces some more git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1401558 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/sys/windows/Socket.cpp')
-rw-r--r--cpp/src/qpid/sys/windows/Socket.cpp12
1 files changed, 0 insertions, 12 deletions
diff --git a/cpp/src/qpid/sys/windows/Socket.cpp b/cpp/src/qpid/sys/windows/Socket.cpp
index 17e3212a46..0c74b3a725 100644
--- a/cpp/src/qpid/sys/windows/Socket.cpp
+++ b/cpp/src/qpid/sys/windows/Socket.cpp
@@ -160,12 +160,6 @@ void Socket::setNonblocking() const {
QPID_WINSOCK_CHECK(ioctlsocket(impl->fd, FIONBIO, &nonblock));
}
-void Socket::connect(const std::string& host, const std::string& port) const
-{
- SocketAddress sa(host, port);
- connect(sa);
-}
-
void
Socket::connect(const SocketAddress& addr) const
{
@@ -209,12 +203,6 @@ int Socket::read(void *buf, size_t count) const
return received;
}
-int Socket::listen(const std::string& host, const std::string& port, int backlog) const
-{
- SocketAddress sa(host, port);
- return listen(sa, backlog);
-}
-
int Socket::listen(const SocketAddress& addr, int backlog) const
{
createSocket(addr);