This topic has not yet been rated - Rate this topic

StreamSocketControl.OutboundUnicastHopLimit | outboundUnicastHopLimit property

Applies to Windows and Windows Phone

The hop limit on an outbound packet sent to a unicast IP address by the StreamSocket object.

Syntax


var outboundUnicastHopLimit = streamSocketControl.outboundUnicastHopLimit;
streamSocketControl.outboundUnicastHopLimit = outboundUnicastHopLimit;

Property value

Type: Number [JavaScript] | System.Byte [.NET] | uint8 [C++]

The hop limit on an outbound packet sent by the StreamSocket object.

Remarks

This value indicates the hop limit that is set on an outbound TCP packet sent to a unicast IP address using the DatagramSocket object. This property is used to set the Time to Live (TTL) field in an IPv4 packet header. This property is used to set the Hop Limit field in an IPv6 header. The default value for this property is 64.

This property may be set before the StreamSocket is connected. After the StreamSocket is connected, setting this property will result in an error.

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8

Namespace

Windows.Networking.Sockets
Windows::Networking::Sockets [C++]

Metadata

Windows.winmd

DLL

Windows.Networking.dll

Capabilities

ID_CAP_NETWORKING [Windows Phone]

See also

StreamSocket
StreamSocketControl

 

 

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.