#include <rtl.h>
BOOL udp_mcast_ttl (
U8 socket, /* UDP socket to set Time to Live. */
U8* ttl); /* TTL value - number of routers to cross. */
Description
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.
Return Value
The udp_mcast_ttl function returns __TRUE when the TTL
value successfully changed. Otherwise, the function returns
__FALSE.
Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers of your data.