StreamSocketControl.OutboundUnicastHopLimit StreamSocketControl.OutboundUnicastHopLimit StreamSocketControl.OutboundUnicastHopLimit StreamSocketControl.OutboundUnicastHopLimit StreamSocketControl.OutboundUnicastHopLimit Property

Definition

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

public : byte OutboundUnicastHopLimit { get; set; }
byte OutboundUnicastHopLimit();

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

Property Value

byte byte byte

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

Additional features and requirements

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.

See also