다음을 통해 공유


TcpStatistics.CumulativeConnections 속성

정의

설정된 TCP(Transmission Control Protocol) 연결의 총 수를 지정합니다.

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

속성 값

설정된 총 연결 수를 나타내는 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

적용 대상