Method lrs::socket::Socket::ipv4_join_multicast_group

Joins a multicast group.

Syntax

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

Arguments

NameDescription
multi_addr

The address of the multicast group to join.

local_addr

The local address that will join the group.

interface

The local interface that will join the group.

Remarks

If local_addr or interface are None, the system will choose appropriate values.

See also