我想获得Windows在给定时间点接收的打开的HTTP(TCP端口80)连接的总数。
.NET有没有办法获得这个?
我需要以某种方式查询IPGlobalProperties.GetActiveTcpConnections ?
适用于我:
var properties = IPGlobalProperties.GetIPGlobalProperties(); var httpConnections = (from connection in properties.GetActiveTcpConnections() where connection.LocalEndPoint.Port == 80 select connection);