VSockSetBufferSize Method

Sets the buffer size for a stream socket.

Definition

Namespace: Ookii.VmSockets
Assembly: Ookii.VmSockets (in Ookii.VmSockets.dll) Version: 1.0.0+087207370c685ccfa01d10830e6db3af2770247a
C#
public static void SetBufferSize(
	Socket socket,
	long size
)

Parameters

socket  Socket
A VSock socket.
size  Int64
The buffer size in bytes. The value will be clamped between the minimum and maximum buffer size.

Remarks

The behavior of this function is undefined if the socket is not a VSock socket.

Exceptions

ArgumentNullExceptionsocket is .
ObjectDisposedException The Socket object has been closed.
SocketException An error occurred when attempting to access the socket.

See Also