TcpStatistics.CumulativeConnections 속성
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
설정된 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
적용 대상
GitHub에서 Microsoft와 공동 작업
이 콘텐츠의 원본은 GitHub에서 찾을 수 있으며, 여기서 문제와 끌어오기 요청을 만들고 검토할 수도 있습니다. 자세한 내용은 참여자 가이드를 참조하세요.
.NET