[zeromq-dev] czmq: beacon default interface via environment variable

Matt Connolly matt.connolly at me.com
Sun Jan 12 06:30:56 CET 2014

I’ve just submitted a pull request: https://github.com/zeromq/czmq/pull/358

There is a comment in zbeacon.c 

            //  Subnet broadcast addresses don't work on some platforms but 
            //  is assumed to work if the interface is specified.

I’m experiencing no Mac that INADDR_BROADCAST is causing an error. My pull request allows the user to specify an interface name for zbeacon to use which results in the broadcast of that interface being used, which works on Mac OS X. Still, I would prefer a solution that just works™.

On SmartOS (Solaris-like) using binding UDP socket to INADDR_BROADCAST is fine, and the zbeacon test passes fine. This also works on the broadcast address of the network interface.

Out of curiosity, which platforms don’t work with the broadcast address returned in getifaddrs?


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20140112/d82c838b/attachment.htm>

More information about the zeromq-dev mailing list