| Extracted from Pike v7.8 release 866 at 2018-07-18.

[Top]
Stdio
Stdio.UDP

# Method Stdio.UDP()->set_multicast_ttl()

Method set_multicast_ttl

  `int set_multicast_ttl(int ttl)`

Description

  Set the time-to-live value of outgoing multicast packets for this socket. It is very important for multicast packets to set the smallest TTL possible. The default is 1 which means that multicast packets don't leacl the local network unless the user program explicitly request it. See also the Unix man page for setsocketopt IPPROTO_IP IP_MULTICAST_TTL.