ClientWebSocketOptions.SetBuffer Method

Definition

Sets client buffer parameters.

Overloads

SetBuffer(Int32, Int32)

Sets the client buffer parameters.

SetBuffer(Int32, Int32, ArraySegment<Byte>)

Sets client buffer parameters.

SetBuffer(Int32, Int32)

Source:
ClientWebSocketOptions.cs
Source:
ClientWebSocketOptions.cs
Source:
ClientWebSocketOptions.cs

Sets the client buffer parameters.

C#
[System.Runtime.Versioning.UnsupportedOSPlatform("browser")]
public void SetBuffer(int receiveBufferSize, int sendBufferSize);
C#
public void SetBuffer(int receiveBufferSize, int sendBufferSize);

Parameters

receiveBufferSize
Int32

The size, in bytes, of the client receive buffer.

sendBufferSize
Int32

The size, in bytes, of the client send buffer.

Attributes

Applies to

.NET 10 and other versions
Product Versions
.NET Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1

SetBuffer(Int32, Int32, ArraySegment<Byte>)

Source:
ClientWebSocketOptions.cs
Source:
ClientWebSocketOptions.cs
Source:
ClientWebSocketOptions.cs

Sets client buffer parameters.

C#
[System.Runtime.Versioning.UnsupportedOSPlatform("browser")]
public void SetBuffer(int receiveBufferSize, int sendBufferSize, ArraySegment<byte> buffer);
C#
public void SetBuffer(int receiveBufferSize, int sendBufferSize, ArraySegment<byte> buffer);

Parameters

receiveBufferSize
Int32

The size, in bytes, of the client receive buffer.

sendBufferSize
Int32

The size, in bytes, of the client send buffer.

buffer
ArraySegment<Byte>

The receive buffer to use.

Attributes

Applies to

.NET 10 and other versions
Product Versions
.NET Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1