Share via


UdpAnySourceMulticastClient.SendBufferSize 属性

定义

注意

This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.

获取或设置 Socket 的发送缓冲区的大小(以字节为单位),该缓冲区用于此 UdpAnySourceMulticastClient 实例上的多播发送操作。

public:
 property int SendBufferSize { 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 SendBufferSize { 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.SendBufferSize : int with get, set
Public Property SendBufferSize As Integer

属性值

返回 Int32

发送缓冲区的大小(以字节为单位)。

属性

例外

指定的缓冲区大小小于 0。

尚未联接多播组。

注解

属性 SendBufferSize 获取或设置此实例上 UdpAnySourceMulticastClient 用于多播发送操作的基础 Socket 的发送缓冲区的大小(以字节为单位)。

如果发送缓冲区已满, BeginSendToGroup 则调用 或 BeginSendTo 方法将需要更长的时间才能调用回调,具体取决于 属性的值 SendBufferSize 。 属性 SendBufferSize 仅控制用户的缓冲区是否在发送完成之前在物理内存中保持锁定状态。

Windows 上发送缓冲区的默认大小为 8,192 字节。

适用于