StreamSocketListenerControl.OutboundUnicastHopLimit Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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.