ReceiveBufferSize Property
Collapse the table of content
Expand the table of content

UdpSingleSourceMulticastClient.ReceiveBufferSize Property

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Gets or sets the size, in bytes, of the receive buffer of the Socket used for multicast receive operations on this UdpSingleSourceMulticastClient instance.

Namespace:  System.Net.Sockets
Assembly:  System.Net (in System.Net.dll)

public int ReceiveBufferSize { get; set; }

Property Value

Type: System.Int32
The size, in bytes, of the receive buffer.

ExceptionCondition
ArgumentOutOfRangeException

The buffer size specified is less than 0.

InvalidOperationException

The multicast group has not yet been joined.

ObjectDisposedException

The UdpSingleSourceMulticastClient has been disposed.

The ReceiveBufferSize property gets or sets the size, in bytes, of the receive buffer of the underlying Socket used for multicast receive operations on this UdpSingleSourceMulticastClient instance. Specifically, the ReceiveBufferSize property controls the size of the buffer used by the stack when a packet arrives, but the application has not yet called the BeginReceiveFromSource method. If this buffer gets filled up and packets keep coming before the application calls the BeginReceiveFromSource and EndReceiveFromSource methods, old packets will get dropped. The application will never be able to receive the old packets, and will instead receive newer packets when it calls the BeginReceiveFromSource method.

The default size of the receive buffer on Windows is 8,192.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1

Windows Phone

Show:
© 2016 Microsoft