IPConnectionImpl
class IPConnectionImpl( val type: String, val localAddress: ByteArray, val localPort: Int, val foreignAddress: ByteArray, val foreignPort: Int, val state: TcpState, val transmitQueue: Int, val receiveQueue: Int, val owningProcessId: Int) : IPConnection
IPConnectionImpl
Implementation of the IPConnection
interface. This class represents an active IP connection, providing details about the connection's state, local and foreign addresses, ports, and associated process information.
Author
N7ghtm4r3
Parameters
type
The type of the connection (e.g., TCP, UDP).
localAddress
The local IP address of the connection as a byte array.
localPort
The local port number of the connection.
foreignAddress
The foreign IP address (remote) of the connection as a byte array.
foreignPort
The foreign port number (remote) of the connection.
state
The current state of the connection (e.g., ESTABLISHED, LISTENING).
transmitQueue
The length of the transmit queue for the connection.
receiveQueue
The length of the receive queue for the connection.
owningProcessId
The process ID of the process that owns the connection.