TimeToLive Property

The maximum number of subnets that a multicast 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_MCAST_TIMETOLIVE 12

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

Default Value

7

Remarks

This property contains the maximum number of subnets that a multicast datagram can traverse. The default value for this property is 7. This is an arbitrary value. You need to specify a value suitable for your application.

Multicast datagrams with this property set to 0 are not transmitted on any subnetwork. Multicast datagrams with this property set to 1 are delivered only on the local network. Multicast datagrams with this property set to greater than 1 may be delivered to more than one subnetwork if there are one or more multicast routers attached to the first-hop subnetwork.

A multicast router does not forward multicast datagrams with destination addresses between 224.0.0.0 and 224.0.0.255, inclusive, regardless of their TimeToLive. This particular range of addresses is reserved for the use of routing protocols and other low-level topology discovery or maintenance protocols, such as gateway discovery and group membership reporting.

Data Type

Integer

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