TcpStatistics.ResetConnections Eigenschaft

Definition

Ruft die Anzahl der über TCP (Transmission Control Protocol)-Verbindungen empfangenen RST-Pakete ab.

C#
public abstract long ResetConnections { get; }

Eigenschaftswert

Ein Int64-Wert, der die Gesamtzahl der zurückgesetzten TCP-Verbindungen angibt.

Beispiele

Im folgenden Codebeispiel werden Verbindungsinformationen angezeigt.

C#
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();
}

Hinweise

IETF RFC 2012 definiert diesen Wert formell wie folgt: "Die Anzahl, wie oft TCP-Verbindungen einen direkten Übergang vom Zustand ESTABLISHED oder CLOSE-WAIT in den Zustand CLOSED durchgeführt haben."

Gilt für:

Produkt Versionen
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1