hypermedia.net
index
 
Name setTimeToLive ( )
Examples None available
Description Control the life-time of a datagram in the network for multicast packets in order to indicates the scope of the multicasts (ie how far the packet will travel).

The TTL value must be in range of 0 to 255 inclusive. The larger the number, the farther the multicast packets will travel (by convention):

 0	-> restricted to the same host
 1	-> restricted to the same subnet (default)
 <32	-> restricted to the same site
 <64	-> restricted to the same region
 <128	-> restricted to the same continent
 <255	-> no restriction
 
The default value is 1, meaning that the datagram will not go beyond the local subnet.

return true if no error occured.

Syntax
setTimeToLive(ttl);
Parameters
ttl   the "Time to Live" value
Returns boolean
Usage Web & Application
Related