TcpStatistics.ResetsSent プロパティ

定義

リセット フラグを設定して送信された伝送制御プロトコル (TCP) セグメントの数を取得します。

public:
 abstract property long ResetsSent { long get(); };
public abstract long ResetsSent { get; }
member this.ResetsSent : int64
Public MustOverride ReadOnly Property ResetsSent As Long

プロパティ値

リセット フラグを設定して送信された TCP セグメントの合計数を示す Int64 値。

次のコード例では、セグメント情報を表示します。

void ShowTcpSegmentData()
{
   IPGlobalProperties ^ properties = IPGlobalProperties::GetIPGlobalProperties();
   TcpStatistics ^ tcpstat = properties->GetTcpIPv4Statistics();
   Console::WriteLine( "  Segment Data:" );
   Console::WriteLine( "      Received  ........................... : {0}", 
      tcpstat->SegmentsReceived );
   Console::WriteLine( "      Sent ................................ : {0}", 
      tcpstat->SegmentsSent );
   Console::WriteLine( "      Retransmitted ....................... : {0}", 
      tcpstat->SegmentsResent );
   Console::WriteLine( "      Resent with reset ................... : {0}", 
      tcpstat->ResetsSent );
}
public static void ShowTcpSegmentData()
{
    IPGlobalProperties properties = IPGlobalProperties.GetIPGlobalProperties();
    TcpStatistics tcpstat = properties.GetTcpIPv4Statistics();

    Console.WriteLine("  Segment Data:");
    Console.WriteLine("      Received  ........................... : {0}",
        tcpstat.SegmentsReceived);
    Console.WriteLine("      Sent ................................ : {0}",
        tcpstat.SegmentsSent);
    Console.WriteLine("      Retransmitted ....................... : {0}",
        tcpstat.SegmentsResent);
    Console.WriteLine("      Resent with reset ................... : {0}",
        tcpstat.ResetsSent);
    Console.WriteLine();
}
Public Shared Sub ShowTcpSegmentData() 
    Dim properties As IPGlobalProperties = IPGlobalProperties.GetIPGlobalProperties()
    Dim tcpstat As TcpStatistics = properties.GetTcpIPv4Statistics()
    
    Console.WriteLine("  Segment Data:")
    Console.WriteLine("      Received  ........................... : {0}", tcpstat.SegmentsReceived)
    Console.WriteLine("      Sent ................................ : {0}", tcpstat.SegmentsSent)
    Console.WriteLine("      Retransmitted ....................... : {0}", tcpstat.SegmentsResent)
    Console.WriteLine("      Resent with reset ................... : {0}", tcpstat.ResetsSent)

End Sub

注釈

TCP リセットは、TCP ヘッダーのリセット (RST) 制御ビットを使用して指定されます。

適用対象