다음을 통해 공유


TcpStatistics.ResetConnections 속성

정의

TCP(Transmission Control Protocol) 연결을 통해 받은 RST 패킷 수를 가져옵니다.

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

속성 값

다시 설정된 총 TCP 연결 수를 나타내는 Int64 값입니다.

예제

다음 코드 예제에서는 연결 정보를 표시합니다.

void ShowTcpConnectionStatistics()
{
   IPGlobalProperties ^ properties = IPGlobalProperties::GetIPGlobalProperties();
   TcpStatistics ^ tcpstat = properties->GetTcpIPv4Statistics();
   Console::WriteLine( "  Connection Data:" );
   Console::WriteLine( "      Current  ............................ : {0}", 
       tcpstat->CurrentConnections );
   Console::WriteLine( "      Cumulative .......................... : {0}", 
       tcpstat->CumulativeConnections );
   Console::WriteLine( "      Initiated ........................... : {0}", 
       tcpstat->ConnectionsInitiated );
   Console::WriteLine( "      Accepted ............................ : {0}", 
       tcpstat->ConnectionsAccepted );
   Console::WriteLine( "      Failed Attempts ..................... : {0}", 
       tcpstat->FailedConnectionAttempts );
   Console::WriteLine( "      Reset ............................... : {0}", 
       tcpstat->ResetConnections );
   Console::WriteLine( "      Errors .............................. : {0}", 
       tcpstat->ErrorsReceived );
}
public static void ShowTcpConnectionStatistics()
{
    IPGlobalProperties properties = IPGlobalProperties.GetIPGlobalProperties();
    TcpStatistics tcpstat = properties.GetTcpIPv4Statistics();

    Console.WriteLine("  Connection Data:");
    Console.WriteLine("      Current  ............................ : {0}",
        tcpstat.CurrentConnections);
    Console.WriteLine("      Cumulative .......................... : {0}",
        tcpstat.CumulativeConnections);
    Console.WriteLine("      Initiated ........................... : {0}",
        tcpstat.ConnectionsInitiated);
    Console.WriteLine("      Accepted ............................ : {0}",
        tcpstat.ConnectionsAccepted);
    Console.WriteLine("      Failed Attempts ..................... : {0}",
        tcpstat.FailedConnectionAttempts);
    Console.WriteLine("      Reset ............................... : {0}",
        tcpstat.ResetConnections);
    Console.WriteLine("      Errors .............................. : {0}",
        tcpstat.ErrorsReceived);
    Console.WriteLine();
}
Public Shared Sub ShowTcpConnectionStatistics() 
    Dim properties As IPGlobalProperties = IPGlobalProperties.GetIPGlobalProperties()
    Dim tcpstat As TcpStatistics = properties.GetTcpIPv4Statistics()
    
    Console.WriteLine("  Connection Data:")
    Console.WriteLine("      Current  ............................ : {0}", tcpstat.CurrentConnections)
    Console.WriteLine("      Cumulative .......................... : {0}", tcpstat.CumulativeConnections)
    Console.WriteLine("      Initiated ........................... : {0}", tcpstat.ConnectionsInitiated)
    Console.WriteLine("      Accepted ............................ : {0}", tcpstat.ConnectionsAccepted)
    Console.WriteLine("      Failed Attempts ..................... : {0}", tcpstat.FailedConnectionAttempts)
    Console.WriteLine("      Reset ............................... : {0}", tcpstat.ResetConnections)
    Console.WriteLine("      Errors .............................. : {0}", tcpstat.ErrorsReceived)

End Sub

설명

IETF RFC 2012는 이 값을 공식적으로 "TCP 연결이 ESTABLISHED 상태 또는 CLOSE-WAIT 상태에서 CLOSED 상태로 직접 전환한 횟수"로 정의합니다.

적용 대상