ok, here's a revised patch for adding some multicast support to APR.

since the last patch i posted i've moved to an extended socket option interface (since that's what people seemed to want). i've also added support for APR_SO_MC_REUSEADDR, which tries to mask the differences in operating system support for multiple programs binding to the same multicast port. on some systems all sockets involved in such a thing must use SO_REUSEPORT, while on others you just need to set SO_REUSEADDR. in this case, APR_SO_MC_REUSEADDR sets SO_REUSEPORT if it's present, and SO_REUSEADDR in any event.

again, this is almost completely untested, unix only, and i'm mainly looking for comments on the interface (both the extended socket options interface and the APR_SO_MC_REUSEADDR idea).

-garrett


Attachment: apr-mc-2.diff
Description: Binary data

Reply via email to