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 傳送緩衝區的大小,以位元組為單位。

呼叫 BeginSendToGroupBeginSendTo 方法需要較長的時間才能呼叫回呼,視傳送緩衝區已滿時的屬性值 SendBufferSize 而定。 屬性 SendBufferSize 只會控制用戶緩衝區是否在實體記憶體中保持鎖定狀態,直到傳送完成為止。

Windows 上傳送緩衝區的預設大小為 8,192 個字節。

適用於