Method lrs::socket::Socket::ipv4_multicast_hop_limit

Retrieves the hop limit of Ipv4 multicast packets sent over this socket.

Syntax

impl Socket {
    fn ipv4_multicast_hop_limit(&self) -> Result<u8, Errno>
}

Return value

Returns the hop limit of Ipv4 multicast packets sent over this socket.

Remarks

This option is only available for Ipv4 sockets. The default value is 1 so that multicast packets don't leave the local network.

See also