summaryrefslogtreecommitdiff
path: root/src/socket_base.cpp
diff options
context:
space:
mode:
authorMartin Sustrik <sustrik@250bpm.com>2011-07-28 13:46:16 +0200
committerMartin Sustrik <sustrik@250bpm.com>2011-07-28 13:46:16 +0200
commit46b053b8d67ba4826302d53268edccf919e6d785 (patch)
tree25e3bd4710a5cfcbe72055a4b03260fb16a06446 /src/socket_base.cpp
parent5ac63140b01fed145fa41f613308e134420920ab (diff)
Dead code removed from TCP and IPC transports
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
Diffstat (limited to 'src/socket_base.cpp')
-rw-r--r--src/socket_base.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/socket_base.cpp b/src/socket_base.cpp
index 975934f..593ff66 100644
--- a/src/socket_base.cpp
+++ b/src/socket_base.cpp
@@ -368,7 +368,7 @@ int zmq::socket_base_t::bind (const char *addr_)
tcp_listener_t *listener = new (std::nothrow) tcp_listener_t (
io_thread, this, options);
alloc_assert (listener);
- int rc = listener->set_address (protocol.c_str(), address.c_str ());
+ int rc = listener->set_address (address.c_str ());
if (rc != 0) {
delete listener;
return -1;
@@ -377,11 +377,12 @@ int zmq::socket_base_t::bind (const char *addr_)
return 0;
}
+#if !defined ZMQ_HAVE_WINDOWS && !defined ZMQ_HAVE_OPENVMS
if (protocol == "ipc") {
ipc_listener_t *listener = new (std::nothrow) ipc_listener_t (
io_thread, this, options);
alloc_assert (listener);
- int rc = listener->set_address (protocol.c_str(), address.c_str ());
+ int rc = listener->set_address (address.c_str ());
if (rc != 0) {
delete listener;
return -1;
@@ -389,6 +390,7 @@ int zmq::socket_base_t::bind (const char *addr_)
launch_child (listener);
return 0;
}
+#endif
#if defined ZMQ_HAVE_VTCP
if (protocol == "vtcp") {