TcpStatistics TcpStatistics TcpStatistics TcpStatistics Class

Definition

Stellt TCP (Transmission Control Protocol)-Statistikdaten bereit.Provides Transmission Control Protocol (TCP) statistical data.

public ref class TcpStatistics abstract
public abstract class TcpStatistics
type TcpStatistics = class
Public MustInherit Class TcpStatistics
Vererbung
TcpStatisticsTcpStatisticsTcpStatisticsTcpStatistics

Beispiele

Das folgende Codebeispiel zeigt die TCP-Statistiken für die angegebene Adressfamilie.The following code example displays the TCP statistics for the specified address family.

void ShowTcpStatistics( NetworkInterfaceComponent version )
{
   IPGlobalProperties ^ properties = IPGlobalProperties::GetIPGlobalProperties();
   TcpStatistics ^ tcpstat = nullptr;
   Console::WriteLine( "" );
   switch ( version )
   {
      case NetworkInterfaceComponent::IPv4:
         tcpstat = properties->GetTcpIPv4Statistics();
         Console::WriteLine( "TCP/IPv4 Statistics:" );
         break;

      case NetworkInterfaceComponent::IPv6:
         tcpstat = properties->GetTcpIPv6Statistics();
         Console::WriteLine( "TCP/IPv6 Statistics:" );
         break;

      default:
         throw gcnew ArgumentException( "version" );
         break;
   }
   Console::WriteLine( "  Minimum Transmission Timeout............. : {0}",
      tcpstat->MinimumTransmissionTimeout );
   Console::WriteLine( "  Maximum Transmission Timeout............. : {0}",
      tcpstat->MaximumTransmissionTimeout );
   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( "" );
   Console::WriteLine( "  Segment Data:" );
   Console::WriteLine( "      Received  ........................... : {0}",
      tcpstat->SegmentsReceived );
   Console::WriteLine( "      Sent ................................ : {0}",
      tcpstat->SegmentsSent );
   Console::WriteLine( "      Retransmitted ....................... : {0}",
      tcpstat->SegmentsResent );
   Console::WriteLine( "" );
}
public static void ShowTcpStatistics(NetworkInterfaceComponent version)
{
    IPGlobalProperties properties = IPGlobalProperties.GetIPGlobalProperties();
    TcpStatistics tcpstat = null;
    Console.WriteLine("");
    switch (version)
    {
        case NetworkInterfaceComponent.IPv4:
             tcpstat = properties.GetTcpIPv4Statistics();
            Console.WriteLine("TCP/IPv4 Statistics:");
            break;
        case NetworkInterfaceComponent.IPv6:
            tcpstat = properties.GetTcpIPv6Statistics();
            Console.WriteLine("TCP/IPv6 Statistics:");
            break;
        default:
            throw new ArgumentException("version");
        //    break;
    }
    Console.WriteLine("  Minimum Transmission Timeout............. : {0}", 
        tcpstat.MinimumTransmissionTimeout);
    Console.WriteLine("  Maximum Transmission Timeout............. : {0}", 
        tcpstat.MaximumTransmissionTimeout);
        
    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("");
    Console.WriteLine("  Segment Data:");
    Console.WriteLine("      Received  ........................... : {0}", 
        tcpstat.SegmentsReceived);
    Console.WriteLine("      Sent ................................ : {0}", 
        tcpstat.SegmentsSent);
    Console.WriteLine("      Retransmitted ....................... : {0}", 
        tcpstat.SegmentsResent);
    
    Console.WriteLine("");
}

Hinweise

Instanzen dieser Klasse werden zurückgegeben, durch die GetTcpIPv4Statistics und GetTcpIPv6Statistics Methoden, um den Anwendungszugriff auf Informationen zum TCP-Datenverkehr zu gewähren.Instances of this class are returned by the GetTcpIPv4Statistics and GetTcpIPv6Statistics methods, to give applications access to TCP traffic information.

Die Informationen in dieser Klasse entspricht den Informationen-Verwaltungsobjekte, die in beschriebenen https://www.ietf.org/rfc/rfc2012.txt .The information in this class correlates to the management information objects described in https://www.ietf.org/rfc/rfc2012.txt.

Konstruktoren

TcpStatistics() TcpStatistics() TcpStatistics() TcpStatistics()

Initialisiert eine neue Instanz der TcpStatistics-Klasse.Initializes a new instance of the TcpStatistics class.

Eigenschaften

ConnectionsAccepted ConnectionsAccepted ConnectionsAccepted ConnectionsAccepted

Ruft die Anzahl der angenommenen TCP (Transmission Control Protocol)-Verbindungsanforderungen ab.Gets the number of accepted Transmission Control Protocol (TCP) connection requests.

ConnectionsInitiated ConnectionsInitiated ConnectionsInitiated ConnectionsInitiated

Ruft die Anzahl der von Clients ausgeführten TCP (Transmission Control Protocol)-Verbindungsanforderungen ab.Gets the number of Transmission Control Protocol (TCP) connection requests made by clients.

CumulativeConnections CumulativeConnections CumulativeConnections CumulativeConnections

Gibt die Gesamtzahl der hergestellten TCP (Transmission Control Protocol)-Verbindungen an.Specifies the total number of Transmission Control Protocol (TCP) connections established.

CurrentConnections CurrentConnections CurrentConnections CurrentConnections

Ruft die Anzahl der aktuellen TCP (Transmission Control Protocol)-Verbindungen ab.Gets the number of current Transmission Control Protocol (TCP) connections.

ErrorsReceived ErrorsReceived ErrorsReceived ErrorsReceived

Ruft die Anzahl der empfangenen TCP (Transmission Control Protocol)-Fehler ab.Gets the number of Transmission Control Protocol (TCP) errors received.

FailedConnectionAttempts FailedConnectionAttempts FailedConnectionAttempts FailedConnectionAttempts

Ruft die Anzahl der fehlgeschlagenen TCP (Transmission Control Protocol)-Verbindungsversuche ab.Gets the number of failed Transmission Control Protocol (TCP) connection attempts.

MaximumConnections MaximumConnections MaximumConnections MaximumConnections

Ruft die maximale Anzahl unterstützter TCP (Transmission Control Protocol)-Verbindungen ab.Gets the maximum number of supported Transmission Control Protocol (TCP) connections.

MaximumTransmissionTimeout MaximumTransmissionTimeout MaximumTransmissionTimeout MaximumTransmissionTimeout

Ruft den maximalen Neuübertragungs-Timeoutwert für TCP (Transmission Control Protocol)-Segmente ab.Gets the maximum retransmission time-out value for Transmission Control Protocol (TCP) segments.

MinimumTransmissionTimeout MinimumTransmissionTimeout MinimumTransmissionTimeout MinimumTransmissionTimeout

Ruft den minimalen Neuübertragungs-Timeoutwert für TCP (Transmission Control Protocol)-Segmente ab.Gets the minimum retransmission time-out value for Transmission Control Protocol (TCP) segments.

ResetConnections ResetConnections ResetConnections ResetConnections

Ruft die Anzahl der über TCP (Transmission Control Protocol)-Verbindungen empfangenen RST-Pakete ab.Gets the number of RST packets received by Transmission Control Protocol (TCP) connections.

ResetsSent ResetsSent ResetsSent ResetsSent

Ruft die Anzahl der mit festgelegtem Reset-Flag gesendeten TCP (Transmission Control Protocol)-Segmente ab.Gets the number of Transmission Control Protocol (TCP) segments sent with the reset flag set.

SegmentsReceived SegmentsReceived SegmentsReceived SegmentsReceived

Ruft die Anzahl der empfangenen TCP (Transmission Control Protocol)-Segmente ab.Gets the number of Transmission Control Protocol (TCP) segments received.

SegmentsResent SegmentsResent SegmentsResent SegmentsResent

Ruft die Anzahl der erneut gesendeten TCP (Transmission Control Protocol)-Segmente ab.Gets the number of Transmission Control Protocol (TCP) segments re-sent.

SegmentsSent SegmentsSent SegmentsSent SegmentsSent

Ruft die Anzahl der gesendeten TCP (Transmission Control Protocol)-Segmente ab.Gets the number of Transmission Control Protocol (TCP) segments sent.

Methoden

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Bestimmt, ob das angegebene Objekt mit dem aktuellen Objekt identisch ist.Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Fungiert als Standardhashfunktion.Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

Ruft den Type der aktuellen Instanz ab.Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Erstellt eine flache Kopie des aktuellen Object.Creates a shallow copy of the current Object.

(Inherited from Object)
ToString() ToString() ToString() ToString()

Gibt eine Zeichenfolge zurück, die das aktuelle Objekt darstellt.Returns a string that represents the current object.

(Inherited from Object)

Gilt für: