다음을 통해 공유


TcpStatistics.ResetsSent 속성

정의

다시 설정 플래그가 설정된 상태로 보낸 TCP(Transmission Control Protocol) 세그먼트 수를 가져옵니다.

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(재설정) 컨트롤 비트를 사용하여 지정됩니다.

적용 대상