Method lrs::socket::Socket::ipv4_add_multicast_source

Sets the socket up to accept multicast messages from a particular source.

Syntax

impl Socket {
    fn ipv4_add_multicast_source(&self, multi_addr: Ipv4Addr, source_addr: Ipv4Addr, local_addr: Option<Ipv4Addr>) -> Result<(), Errno>
}

Arguments

NameDescription
multi_addr

The address of the multicast group on which the messages are sent.

source_addr

The address of the sender of the messages.

local_addr

The local address that will accept the messages.

Remarks

If local_addr is None, the system will choose an appropriate value.

See also