i was playing around with some rendezvous/zeroconf stuff yesterday, toying with the idea of writing an implementation (for educational purposes), and realized that APR doesn't have any support for multicast UDP yet.

here's a rough patch that at least seems to let one join and leave a multicast group correctly. it's unix only, the ipv6 case hasn't been tested at all, and i need some guidance on what they should return when the socket's family is something other than APR_INET or APR_INET6 (hey, it could happen ;-) ), but other than that it seems to work.

assuming people would like this support, i'd also like to throw together some other useful functions (setting the multicast ttl seems like the next useful thing one would want to do, and i'm sure there are others, but my multicast-fu is quite weak at the moment).

any comments?

-garrett


Attachment: apr-multicast.diff
Description: Binary data


Reply via email to