API Reference
Class
TcpConnectionInfo
Describes a single TCP connection including local/remote endpoints and optional owning process information.
Inheritance
- Object
- TcpConnectionInfo
Constructors
public TcpConnectionInfo() #Inherited Methods
public override Boolean Equals(Object obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object
Properties
public String ComputerName { get; set; } #Name of the computer the connection belongs to.
public IPEndPoint LocalEndPoint { get; set; } #Local endpoint (IP and port).
public IPEndPoint RemoteEndPoint { get; set; } #Remote endpoint if any; may be null for LISTEN state.
public String State { get; set; } #TCP state as a string (e.g., ESTABLISHED, LISTEN).
public Int32 ProcessId { get; set; } #Owning process identifier (0 if unknown or not available).
public String ProcessName { get; set; } #Optional process executable name, when resolvable.