mirror of
https://github.com/zeromq/libzmq.git
synced 2025-11-01 11:01:44 +01:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user