IWSDUdpAddress::SetTTL method (wsdbase.h)

Sets the time-to-live (TTL) for all outbound packets using this address.

Syntax

HRESULT SetTTL(
  [in] DWORD dwTTL
);

Parameters

[in] dwTTL

The TTL of outgoing UDP packets. Generally, the TTL represents the maximum number of hops before a packet is discarded. Some implementations interpret the TTL differently.

Return value

Possible return values include, but are not limited to, the following.

Return code Description
S_OK
Method succeeded.
E_INVALIDARG
dwTTL is greater than 255.

Requirements

Requirement Value
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2008 [desktop apps only]
Target Platform Windows
Header wsdbase.h (include Wsdapi.h)
DLL Wsdapi.dll

See also

IWSDUdpAddress