TcpStatistics.SegmentsResent Właściwość

Definicja

Pobiera liczbę segmentów protokołu TCP (Transmission Control Protocol) ponownie wysłanych.

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

Wartość właściwości

Wartość Int64 określająca łączną liczbę segmentów TCP ponownie przetransmitowanych.

Przykłady

W poniższym przykładzie kodu są wyświetlane informacje o segmencie.

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

Uwagi

Segmenty TCP, które nie są uznawane za odbierane w miejscu docelowym, są ponownie przesyłane.

Dotyczy