[zeromq-dev] Bind to local ip address
fredrik danerklint
fredan-zmq at fredan.se
Fri Dec 9 01:06:19 CET 2011
>>> What about using PGM-like format for the address:
>>>
>>> zmq_connect (s, "tcp://eth0;192.168.0.111:5555");
>>
>> That could work.
>>
>> zmq_connect(s, "tcp://127.0.0.2:5555;127.0.0.1");
>
> Hi,
>
> I guess another option would be to use zmq_setsockopt/zmq_getsockopt.
> This would work a bit like HWM so it would affect subsquent connects /
> binds.
>
Well, no.
If you do more than one zmq_connect(...) then you might want to bind to
more than one local ip address.
I think that this should be, somehow, within the zmq_connect. Either as
a new optional parameter or as Martin already has suggested.
--
//fredan
More information about the zeromq-dev
mailing list