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:
 property byte OutboundUnicastHopLimit { byte get(); void set(byte value); };
byte OutboundUnicastHopLimit();

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

Property Value

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.

Applies to

See also