TcpStatistics.ConnectionsAccepted Özellik

Tanım

Kabul edilen İletim Denetimi Protokolü (TCP) bağlantı isteklerinin sayısını alır.

C#
public abstract long ConnectionsAccepted { get; }

Özellik Değeri

Int64 Kabul edilen tcp bağlantı isteklerinin toplam sayısını belirten bir değer.

Örnekler

Aşağıdaki kod örneği bağlantı bilgilerini görüntüler.

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

Açıklamalar

IETF RFC 2012 bu değeri resmi olarak "TCP bağlantılarının LISTEN durumundan SYN-RCVD durumuna doğrudan geçiş sayısı" olarak tanımlar.

Şunlara uygulanır

Ürün Sürümler
.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