public TcpRow(IpHelperNative.MIB_UDPROW_OWNER_PID udpRow, TcpRowProtocol protocol) { this.LocalAddress = new IPAddress(udpRow.dwLocalAddr); this.LocalPort = NetworkToHostOrder(udpRow.dwLocalPort); this.ProcessId = (int)udpRow.dwOwningPid; this.Protocol = protocol; }
public TcpRow(IpHelperNative.MIB_TCPROW_OWNER_PID tcpRow, TcpRowProtocol protocol) { this.LocalAddress = new IPAddress(tcpRow.dwLocalAddr); this.LocalPort = NetworkToHostOrder(tcpRow.dwLocalPort); this.RemoteAddress = new IPAddress(tcpRow.dwRemoteAddr); this.RemotePort = NetworkToHostOrder(tcpRow.dwRemotePort); this.State = tcpRow.dwState; this.ProcessId = (int)tcpRow.dwOwningPid; this.Protocol = protocol; }
public TcpRow(TcpRow tcpRow) { this.LocalAddress = tcpRow.LocalAddress; this.LocalPort = tcpRow.LocalPort; this.RemoteAddress = tcpRow.RemoteAddress; this.RemotePort = tcpRow.RemotePort; this.State = tcpRow.State; this.ProcessId = tcpRow.ProcessId; this.Protocol = tcpRow.Protocol; }
public TcpRow(IpHelperNative.MIB_TCP6ROW_OWNER_PID tcpRow, TcpRowProtocol protocol) { this.LocalAddress = new IPAddress(tcpRow.ucLocalAddr); this.LocalPort = NetworkToHostOrder(tcpRow.dwLocalPort); if (49667 == this.LocalPort) { Console.Write("1"); } this.RemoteAddress = new IPAddress(tcpRow.ucRemoteAddr); this.RemotePort = NetworkToHostOrder(tcpRow.dwRemotePort); this.State = tcpRow.dwState; this.ProcessId = (int)tcpRow.dwOwningPid; this.Protocol = protocol; }