TimeToLive Property

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

Syntax

ANSI (Cross Platform)
int GetTimeToLive();
int SetTimeToLive(int iTimeToLive); Unicode (Windows) INT GetTimeToLive();
INT SetTimeToLive(INT iTimeToLive);
@property (nonatomic,readwrite,assign,getter=timeToLive,setter=setTimeToLive:) int timeToLive;
- (int)timeToLive;
- (void)setTimeToLive:(int)newTimeToLive;
#define PID_PING_TIMETOLIVE 10

IPWORKS_EXTERNAL void* IPWORKS_CALL IPWorks_Ping_Get(void *lpObj, int propid, int arridx, int *lpcbVal, int64 *lpllVal);
IPWORKS_EXTERNAL int IPWORKS_CALL IPWorks_Ping_Set(void *lpObj, int propid, int arridx, const void *val, int cbVal);

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.

This property is not available at design time.

Data Type

Integer

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