mirror of
https://github.com/zeromq/libzmq.git
synced 2025-03-10 07:56:09 +00:00
Minor problems in MSVC build fixed
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
This commit is contained in:
parent
9196c48256
commit
3c3c0bfd1f
@ -179,7 +179,8 @@ int zmq::tcp_connecter_t::get_new_reconnect_ivl ()
|
||||
|
||||
int zmq::tcp_connecter_t::set_address (const char *addr_)
|
||||
{
|
||||
return resolve_ip_hostname (&addr, &addr_len, addr_, options.ipv4only);
|
||||
return resolve_ip_hostname (&addr, &addr_len, addr_,
|
||||
options.ipv4only ? true : false);
|
||||
}
|
||||
|
||||
int zmq::tcp_connecter_t::open ()
|
||||
|
@ -123,7 +123,8 @@ void zmq::tcp_listener_t::close ()
|
||||
int zmq::tcp_listener_t::set_address (const char *addr_)
|
||||
{
|
||||
// Convert the interface into sockaddr_in structure.
|
||||
int rc = resolve_ip_interface (&addr, &addr_len, addr_, options.ipv4only);
|
||||
int rc = resolve_ip_interface (&addr, &addr_len, addr_,
|
||||
options.ipv4only ? true : false);
|
||||
if (rc != 0)
|
||||
return -1;
|
||||
|
||||
|
@ -593,7 +593,7 @@ int zmq_poll (zmq_pollitem_t *items_, int nitems_, long timeout_)
|
||||
#if defined ZMQ_HAVE_WINDOWS
|
||||
int rc = select (0, &inset, &outset, &errset, ptimeout);
|
||||
if (unlikely (rc == SOCKET_ERROR)) {
|
||||
wsa_error_to_errno ();
|
||||
zmq::wsa_error_to_errno ();
|
||||
if (errno == ENOTSOCK)
|
||||
return -1;
|
||||
wsa_assert (false);
|
||||
|
Loading…
x
Reference in New Issue
Block a user