mirror of
https://github.com/zeromq/libzmq.git
synced 2025-10-26 02:18:06 +01:00
Problem: socks_connecter_t duplicates code around opening and configuring a TCP socket
Solution: use tcp_open_socket function
This commit is contained in:
@@ -174,7 +174,7 @@ int zmq::tcp_connecter_t::open ()
|
||||
|
||||
_addr->resolved.tcp_addr = new (std::nothrow) tcp_address_t ();
|
||||
alloc_assert (_addr->resolved.tcp_addr);
|
||||
_s = tcp_open_socket (_addr->address.c_str (), options,
|
||||
_s = tcp_open_socket (_addr->address.c_str (), options, true,
|
||||
_addr->resolved.tcp_addr);
|
||||
if (_s == retired_fd) {
|
||||
LIBZMQ_DELETE (_addr->resolved.tcp_addr);
|
||||
|
||||
Reference in New Issue
Block a user