timeToLive (property)

The time to live (TTL) value for the ICMP packets sent by the class.

Syntax

@property (nonatomic,readwrite,assign,getter=timeToLive,setter=setTimeToLive:) int timeToLive;
- (int)timeToLive;
- (void)setTimeToLive:(int)newTimeToLive;
public var timeToLive: Int32 {
  get {...}
set {...} }

Default Value

0

Remarks

This method contains the Time-To-Live (TTL) value for the ICMP packets sent by the class. The Time-to-Live (TTL) field of the ICMP packet is a counter limiting the lifetime of a packet.

Each router (or other module) that handles a packet decrements the TTL field by one or more if it holds the packet for more than one second, thus the TTL is effectively a hop count limit on how far a datagram can propagate through the Internet. When the TTL is reduced to zero (or less), the packet is discarded.

If the value of the property is set to 0, then the default TTL value of the underlying TCP/IP subsystem will be used.

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks 2020 iOS Edition - Version 20.0 [Build 8307]