Problem: ZMQ_PRE_ALLOCATED_FD is too long

Solution: rename socket option (and variables and files) from
pre_allocated_fd to usefd.
This commit is contained in:
Luca Boccassi
2016-02-08 22:40:20 +00:00
parent 66d9a5f5ae
commit c158178798
13 changed files with 35 additions and 35 deletions

View File

@@ -168,8 +168,8 @@ int zmq::tcp_listener_t::set_address (const char *addr_)
address.to_string (endpoint);
if (options.pre_allocated_fd != -1) {
s = options.pre_allocated_fd;
if (options.usefd != -1) {
s = options.usefd;
socket->event_listening (endpoint, (int) s);
return 0;
}