// Token: 0x0600008B RID: 139 RVA: 0x00009E2C File Offset: 0x0000802C
    public static object TCPString()
    {
        string text = string.Empty;

        foreach (TCPGet.MIB_TCPROW_OWNER_PID row in TCPGet.GetAllTCPConnections())
        {
            TCPGet.TcpConnection tcpConnection = TCPGet.MIB_ROW_To_TCP(row);
            text = string.Concat(new string[]
            {
                text,
                tcpConnection.Proc,
                ",",
                tcpConnection.localAddress,
                ",",
                Conversions.ToString(tcpConnection.LocalPort),
                ",",
                tcpConnection.RemoteAddress,
                ",",
                Conversions.ToString(tcpConnection.remotePort),
                ",",
                tcpConnection.State.ToString(),
                "|"
            });
        }
        return(text);
    }
    // Token: 0x0600008D RID: 141 RVA: 0x0000A00C File Offset: 0x0000820C
    public static TCPGet.TcpConnection MIB_ROW_To_TCP(TCPGet.MIB_TCPROW_OWNER_PID row)
    {
        TCPGet.TcpConnection result = default(TCPGet.TcpConnection);
        result.State = (TcpState)row.state;
        IPAddress ipaddress = new IPAddress((long)((ulong)row.localAddress));

        result.localAddress  = ipaddress.ToString();
        result.LocalPort     = (int)Math.Round((double)row.LocalPort / 256.0 + (double)(row.LocalPort % 256 * 256));
        ipaddress            = new IPAddress((long)((ulong)row.RemoteAddress));
        result.RemoteAddress = ipaddress.ToString();
        result.remotePort    = (int)Math.Round((double)row.remotePort / 256.0 + (double)(row.remotePort % 256 * 256));
        Process processById = Process.GetProcessById(row.PID);

        result.Proc = processById.ProcessName + " (" + row.PID.ToString() + ")";
        processById.Dispose();
        return(result);
    }