mirror of
https://github.com/zeromq/libzmq.git
synced 2025-10-28 19:52:00 +01:00
Problem: ZMQ_TCP_RETRANSMIT_TIMEOUT is a clumsy name
Solution: rename to ZMQ_MAXRT This is the option name used on Windows, so easier to use and remember.
This commit is contained in:
@@ -48,7 +48,7 @@ zmq::options_t::options_t () :
|
||||
type (-1),
|
||||
linger (-1),
|
||||
connect_timeout (0),
|
||||
tcp_retransmit_timeout (0),
|
||||
tcp_maxrt (0),
|
||||
reconnect_ivl (100),
|
||||
reconnect_ivl_max (0),
|
||||
backlog (100),
|
||||
@@ -178,9 +178,9 @@ int zmq::options_t::setsockopt (int option_, const void *optval_,
|
||||
}
|
||||
break;
|
||||
|
||||
case ZMQ_TCP_RETRANSMIT_TIMEOUT:
|
||||
case ZMQ_TCP_MAXRT:
|
||||
if (is_int && value >= 0) {
|
||||
tcp_retransmit_timeout = value;
|
||||
tcp_maxrt = value;
|
||||
return 0;
|
||||
}
|
||||
break;
|
||||
@@ -745,9 +745,9 @@ int zmq::options_t::getsockopt (int option_, void *optval_, size_t *optvallen_)
|
||||
}
|
||||
break;
|
||||
|
||||
case ZMQ_TCP_RETRANSMIT_TIMEOUT:
|
||||
case ZMQ_TCP_MAXRT:
|
||||
if (is_int) {
|
||||
*value = tcp_retransmit_timeout;
|
||||
*value = tcp_maxrt;
|
||||
return 0;
|
||||
}
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user