The udp_mcast_ttl function sets the Time to Live value for multicast packets of an UDP socket identified with a parameter socket. A TTL value controls the number of routers the packet can cross before being expired. For multicast message the default TTL value is 1. If this function is not called a default TTL value of 1 is assumed for all transmitted Multicast UDP datagrams. The argument ttl specifies the TTL value for the UDP socket. The udp_mcast_ttl function is in the RL-TCPnet library. The prototype is defined in rtl.h. note - This TTL value is not used for unicast UDP datagrams.
|