UdpTransportSettings.SocketReceiveBufferSize 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.
Gets or sets the receive buffer size on the underlying WinSock socket.
public:
property int SocketReceiveBufferSize { int get(); void set(int value); };
public int SocketReceiveBufferSize { get; set; }
member this.SocketReceiveBufferSize : int with get, set
Public Property SocketReceiveBufferSize As Integer
Property Value
The receive buffer size.
Remarks
A user of a receiving channel can use this value on the binding to control how the system behaves when it receives data. For example, given an application that is accessing inbound WCF messages at the maximum threshold, using a higher value would allow messages to stack up in the WinSock buffer while waiting for the application to process them. Using a lower value in the same situation would result in messages getting dropped. This property exposes the underlying WinSock SO_RCVBUF
socket setting. This property value must be at least the size of MaxReceivedMessageSize. Setting it to a value smaller than the MaxReceivedMessageSize results in a runtime exception. The default value is 65536.