Problem: ZMQ_USEFD does not follow conventions

Solution: rename socket option (and variables and files) from usefd
to use_fd.
This commit is contained in:
Luca Boccassi
2016-02-09 09:36:14 +00:00
parent 15846f2fe4
commit edc4ee03e8
13 changed files with 35 additions and 35 deletions

View File

@@ -78,7 +78,7 @@ zmq::options_t::options_t () :
heartbeat_ttl (0),
heartbeat_interval (0),
heartbeat_timeout (-1),
usefd (-1)
use_fd (-1)
{
#if defined ZMQ_HAVE_VMCI
vmci_buffer_size = 0;
@@ -623,9 +623,9 @@ int zmq::options_t::setsockopt (int option_, const void *optval_,
break;
# endif
case ZMQ_USEFD:
case ZMQ_USE_FD:
if (is_int && value >= -1) {
usefd = value;
use_fd = value;
return 0;
}
break;
@@ -1040,9 +1040,9 @@ int zmq::options_t::getsockopt (int option_, void *optval_, size_t *optvallen_)
}
break;
case ZMQ_USEFD:
case ZMQ_USE_FD:
if (is_int) {
*value = usefd;
*value = use_fd;
return 0;
}
break;