Socket.setTtl

void setTtl(uint ttl) nothrow

Sets the time-to-live for outgoing unicast packets on socket. By default the platform-specific default value is used.

Parameters

ttlthe time-to-live value for all unicast packets on socket