Skip to main content

std_multicast

Function std_multicast 

Source
pub fn std_multicast(config: &MulticastConfig) -> Result<UdpSocket>
Expand description

A non-blocking std UDP socket joined as config says: for IPv4 what rtci-mdns’ MulticastSocket builds (bound to the group on Linux, to 0.0.0.0 elsewhere), for IPv6 [::]:port, IPv6 only; a membership of the group on every interface of MulticastConfig::interfaces (the default interface when there is none).

§Errors

The bind failed, or no membership could be joined (an interface that refuses one is skipped while another joins).