Method lrs::socket::Socket::ipv4_remove_multicast_source

Removes a previously added source of multicast messages.

Syntax

impl Socket {
    fn ipv4_remove_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 was set up to accept the messages.

Remarks

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

This is the inverse of ipv4_add_multicast_source. If you want to block messages from a group joined with ipv4_join_multicast_group, use ipv4_block_multicast_peer.

See also