[zeromq-dev] How to limit the range for zmq_bind() in C++?
Alexander, Michael
Michael.Alexander at xerox.com
Thu May 14 16:14:29 CEST 2020
I have been using zmq_bind(socket, "tcp://lo:*") to bind to a random unused port. I can find examples using other languages to use random_port to limit the range of ports (e.g. only assign a port between 30000 and 31000). Is there a way to do this in C++?
Thanks,
Mike Alexander
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20200514/6159fa23/attachment.htm>
More information about the zeromq-dev
mailing list