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

Значение свойства

Значение типа Int64, указывающее общее число отправленных сегментов TCP с установленным флагом сброса.

Примеры

В следующем примере кода отображаются сведения о сегменте.

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 задаются с помощью бита управления сбросом (RST) в заголовке TCP.

Применяется к