Method lrs::socket::Socket::ipv4_block_multicast_peer

Blocks messages from a peer in a multicast group.

Syntax

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

Arguments

NameDescription
multi_addr

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

peer_addr

The address of the peer which will be blocked.

local_addr

The local address which is a member of the multicast group.

Remarks

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

See also