Freigeben über


TcpStatistics.FailedConnectionAttempts Eigenschaft

Definition

Ruft die Anzahl der fehlgeschlagenen TCP (Transmission Control Protocol)-Verbindungsversuche ab.

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

Eigenschaftswert

Ein Int64-Wert, der die Gesamtzahl fehlgeschlagener TCP-Verbindungsversuche angibt.

Beispiele

Im folgenden Codebeispiel werden Verbindungsinformationen angezeigt.

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

Hinweise

IETF RFC 2012 definiert diesen Wert formell wie folgt: "Die Anzahl, wie oft TCP-Verbindungen einen direkten Übergang vom SYN-SENT-Zustand oder dem SYN-RCVD-Zustand in den ZUSTAND CLOSED durchgeführt haben, plus die Häufigkeit, wie oft TCP-Verbindungen einen direkten Übergang vom SYN-RCVD-Zustand in den LISTEN-Zustand vorgenommen haben."

Gilt für: