UdpSingleSourceMulticastClient.ReceiveBufferSize 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.
Caution
This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.
Gets or sets the size, in bytes, of the receive buffer of the Socket used for multicast receive operations on this UdpSingleSourceMulticastClient instance.
public:
property int ReceiveBufferSize { int get(); void set(int value); };
[System.Obsolete("This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.", true)]
public int ReceiveBufferSize { get; set; }
[<System.Obsolete("This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.", true)>]
member this.ReceiveBufferSize : int with get, set
Public Property ReceiveBufferSize As Integer
Property Value
Returns Int32.
The size, in bytes, of the receive buffer.
- Attributes
Exceptions
The buffer size specified is less than 0.
The multicast group has not yet been joined.
The UdpSingleSourceMulticastClient has been disposed.
Remarks
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.
Applies to
Tilbakemeldinger
https://aka.ms/ContentUserFeedback.
Kommer snart: Gjennom 2024 faser vi ut GitHub Issues som tilbakemeldingsmekanisme for innhold, og erstatter det med et nytt system for tilbakemeldinger. Hvis du vil ha mer informasjon, kan du se:Send inn og vis tilbakemelding for