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?
Cheers,
Matt
_______________________________________________
zeromq-dev mailing list
[email protected]
http://lists.zeromq.org/mailman/listinfo/zeromq-dev