TimeToLive Property

The maximum number of subnets that a datagram can traverse.

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_UDPPORT_TIMETOLIVE 9

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

Default Value

0

Remarks

The default value for this property is 0, which tells the class to use the default TTL value of the underlying TCP/IP subsystem. Depending on the application, you can specify a value between 1 and 255.

Data Type

Integer

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