public override TcpConnectionInformation [] GetActiveTcpConnections ()
{
List<string []> list = new List<string []> ();
GetRows (TcpFile, list);
GetRows (Tcp6File, list);
TcpConnectionInformation [] ret = new TcpConnectionInformation [list.Count];
for (int i = 0; i < ret.Length; i++) {
// sl local_address rem_address st tx_queue rx_queue tr tm->when retrnsmt uid timeout inode
IPEndPoint local = ToEndpoint (list [i] [1]);
IPEndPoint remote = ToEndpoint (list [i] [2]);
TcpState state = (TcpState) int.Parse (list [i] [3], NumberStyles.HexNumber);
ret [i] = new TcpConnectionInformationImpl (local, remote, state);
}
return ret;
}