pub fn is_ipv6_only<F: AsFd>(socket: &F) -> Result<bool>Expand description
Whether an IPv6 socket serves IPv6 traffic alone.
A dual-stack socket answers on the IPv4-mapped range too, so an unspecified address of one binds both families. The option does not exist on other families, which are reported as unrestricted.