mirror of
https://github.com/zeromq/libzmq.git
synced 2025-11-06 13:21:10 +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:
@@ -103,7 +103,7 @@ zmq::tcp_listener_t::get_socket_name (zmq::fd_t fd_,
|
||||
|
||||
int zmq::tcp_listener_t::create_socket (const char *addr_)
|
||||
{
|
||||
_s = tcp_open_socket (addr_, options, &_address);
|
||||
_s = tcp_open_socket (addr_, options, true, &_address);
|
||||
if (_s == retired_fd) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user