Share via


StreamSocketControl.OutboundUnicastHopLimit Property

Definition

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

public:
 property byte OutboundUnicastHopLimit { byte get(); void set(byte value); };
byte OutboundUnicastHopLimit();

void OutboundUnicastHopLimit(byte value);
public byte OutboundUnicastHopLimit { get; set; }
var byte = streamSocketControl.outboundUnicastHopLimit;
streamSocketControl.outboundUnicastHopLimit = byte;
Public Property OutboundUnicastHopLimit As Byte

Property Value

Byte

byte

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

Windows requirements

App capabilities
ID_CAP_NETWORKING [Windows Phone]

Remarks

This value indicates the hop limit that is set on an outbound TCP packet sent to a unicast IP address using the StreamSocket 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 128.

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

Setting the OutboundUnicastHopLimit may not have an effect if the system doesn't support setting the TTL.

Applies to

See also