Skip to content

Latest commit

 

History

History
28 lines (19 loc) · 1.7 KB

streamwebsocketcontrol_outboundbuffersizeinbytes.md

File metadata and controls

28 lines (19 loc) · 1.7 KB
-api-id -api-type
P:Windows.Networking.Sockets.StreamWebSocketControl.OutboundBufferSizeInBytes
winrt property

Windows.Networking.Sockets.StreamWebSocketControl.OutboundBufferSizeInBytes

-description

The size, in bytes, of the send buffer to be used for sending data on a StreamWebSocket object.

-property-value

The size, in bytes, of the send buffer to be used for sending data.

-remarks

The OutboundBufferSizeInBytes property sets the value of the SO_SNDBUF socket option on the TCP socket used by the StreamWebSocket. The default value is the local computer's default send buffer size. This value varies based on the system memory size. For more detailed information, see SOL_SOCKET Socket Options in the Windows Sockets documentation.

For most apps, this property should not be set since this disables TCP send auto-tuning by the system on this StreamWebSocket object. With TCP send auto-tuning disabled, network throughput is often worse especially on a connections with high latency. So this property should only be used in very specific situations.

The OutboundBufferSizeInBytes property must be set before the StreamWebSocket is connected. Setting this property after the MessageWebSocket is connected has no effect.

-examples

-see-also

How to use advanced WebSocket controls, SOL_SOCKET Socket Options, StreamWebSocket