UdpSingleSourceMulticastClient.SendBufferSize プロパティ

定義

注意事項

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

この UdpSingleSourceMulticastClient インスタンスのマルチキャストの送信操作に使用される Socket の送信バッファーのバイト単位のサイズを取得または設定します。

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

Int32 を返します。

送信バッファーのバイト単位のサイズ。

属性

例外

指定されたバッファー サイズは 0 より小さいです。

マルチキャスト グループにまだ参加していません。

注釈

SendBufferSize プロパティは、 Socket このインスタンスでのマルチキャストの送信操作に使用される、基になるの送信バッファーのサイズ (バイト単位) を取得または設定し UdpSingleSourceMulticastClient ます。

Mac OS X では、 SendBufferSize プロパティは、メソッドへの追加の呼び出しが失敗する前に、ネットワークスタックの待機中のバッファーに格納できるバイト数を制御し BeginSendToSource ます。 短時間の間に多数の UDP パケットを送信する場合、Mac OS X のアプリケーションはこのプロパティを考慮する必要があります。

Windows では、メソッドを呼び出すと、 BeginSendToSource 送信バッファーがいっぱいの場合に、プロパティの値に応じてコールバックが呼び出されるまでに時間がかかり SendBufferSize ます。 プロパティは、 SendBufferSize 送信が完了するまで、ユーザーのバッファーが物理メモリ内でロックされたままになるかどうかを制御します。

Windows での送信バッファーの既定のサイズは8192です。

適用対象