Skip to content

UDPSocket.setTTL ​

js
    UDPSocket.setTTL(number ttl)

Sets the IP_TTL socket option, used to set the maximum number of hops allowed when an IP packet is transmitted.

Parameters

  • number ttl: the ttl parameter can be between 0 and 255