pub fn mdns_socket(
socket: Socket,
bound: bool,
hosts: &[IpAddr],
) -> Result<UdpSocket>Expand description
Finishes an mDNS socket (IPv4, UDP): reuse options and the bind on
0.0.0.0:5353 unless bound (a socket handed out bound already, as a
sandbox broker does), non-blocking, multicast TTL 255 with loopback, and
the mDNS group joined on each non-loopback IPv4 address of hosts (on
the default interface when none joins). For NetIo::bind_mdns
implementations.