StreamSocketListenerControl.OutboundUnicastHopLimit StreamSocketListenerControl.OutboundUnicastHopLimit StreamSocketListenerControl.OutboundUnicastHopLimit StreamSocketListenerControl.OutboundUnicastHopLimit StreamSocketListenerControl.OutboundUnicastHopLimit Property

Definition

The hop limit on an outbound packet sent to a unicast IP address by the StreamSocket object created when a connection is received by the StreamSocketListener 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 = streamSocketListenerControl.outboundUnicastHopLimit;
streamSocketListenerControl.outboundUnicastHopLimit = byte;

Property Value

byte byte byte

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

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 created. 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 StreamSocketListener starts listening for incoming connections. After the StreamSocketListener starts listening for incoming connections, setting the property will result in an error.

Setting this property may throw an exception if the system doesn't support setting the TTL.

See also