Skip to main content
StreamWebSocketControl.OutboundBufferSizeInBytes | outboundBufferSizeInBytes property

Applies to Windows and Windows Phone

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

Syntax


var outboundBufferSizeInBytes = streamWebSocketControl.outboundBufferSizeInBytes;
streamWebSocketControl.outboundBufferSizeInBytes = outboundBufferSizeInBytes;

public uint OutboundBufferSizeInBytes { get; set; }

Public Property OutboundBufferSizeInBytes As UInteger

public:
property unsigned int OutboundBufferSizeInBytes { 
   unsigned int get();
   void set (unsigned int value);
}

Property value

Type: Number [JavaScript] | System.UInt32 [.NET] | uint32 [C++]

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

Remarks

For most apps, this property should not be set, since the setting disables TCP send auto-tuning by the system on this StreamWebSocket object.

This 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 property must be set before the StreamWebSocket connection is made. It will not have any effect if set after the connection has been initiated.

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8.1 [Windows Runtime apps only]

Namespace

Windows.Networking.Sockets
Windows::Networking::Sockets [C++]

Metadata

Windows.winmd

DLL

Windows.Networking.dll

See also

StreamWebSocket
StreamWebSocketControl
How to use advanced WebSocket controls