TcpClient.NoDelay プロパティとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > TcpClient.NoDelay プロパティの意味・解説 

TcpClient.NoDelay プロパティ

送信バッファまたは受信バッファ設定されているサイズ超えてない場合に、遅延無効にする値を取得または設定します

名前空間: System.Net.Sockets
アセンブリ: System (system.dll 内)
構文構文

Dim instance As TcpClient
Dim value As Boolean

value = instance.NoDelay

instance.NoDelay = value
public bool NoDelay { get;
 set; }
/** @property */
public boolean get_NoDelay ()

/** @property */
public void set_NoDelay (boolean value)

プロパティ
遅延無効になっている場合trueそれ以外場合false既定値false です。

解説解説
使用例使用例

遅延無効にするコード例次に示します。この例では、次に NoDelay の値をチェックしてプロパティ正常に設定されていることを検証します。

' Sends data immediately upon calling NetworkStream.Write.
tcpClient.NoDelay = True

' Determines if the delay is enabled by using the NoDelay property.
If tcpClient.NoDelay = True Then
   Console.WriteLine(("The delay was set successfully to "
 + tcpClient.NoDelay.ToString()))
End If
// Sends data immediately upon calling NetworkStream.Write.
tcpClient.NoDelay = true;

// Determines if the delay is enabled by using the NoDelay property.
if (tcpClient.NoDelay == true)
    Console.WriteLine ("The delay was set successfully to
 " + tcpClient.NoDelay.ToString ());

// Sends data immediately upon calling NetworkStream.Write.
tcpClient->NoDelay = true;

// Determines if the delay is enabled by using the NoDelay property.
if ( tcpClient->NoDelay == true )
      Console::WriteLine( "The delay was set successfully
 to {0}", tcpClient->NoDelay );


// Sends data immediately upon calling NetworkStream.Write.
tcpClient.set_NoDelay(true);

// Determines if the delay is enabled by using the NoDelay property.
if (tcpClient.get_NoDelay() == true) {
    Console.WriteLine("The delay was set successfully to
 "
        + ((System.Boolean)tcpClient.get_NoDelay()).ToString());
}
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
TcpClient クラス
TcpClient メンバ
System.Net.Sockets 名前空間


このページでは「.NET Framework クラス ライブラリ リファレンス」からTcpClient.NoDelay プロパティを検索した結果を表示しています。
Weblioに収録されているすべての辞書からTcpClient.NoDelay プロパティを検索する場合は、下記のリンクをクリックしてください。
 全ての辞書からTcpClient.NoDelay プロパティ を検索

英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

TcpClient.NoDelay プロパティのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



TcpClient.NoDelay プロパティのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2024 Microsoft.All rights reserved.

©2024 GRAS Group, Inc.RSS