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.

See also

Constructors

Link copied to clipboard
constructor(    type: String,     localAddress: ByteArray,     localPort: Int,     foreignAddress: ByteArray,     foreignPort: Int,     state: TcpState,     transmitQueue: Int,     receiveQueue: Int,     owningProcessId: Int)

Properties

Link copied to clipboard
open override val foreignAddress: ByteArray
Link copied to clipboard
open override val foreignPort: Int
Link copied to clipboard
open override val localAddress: ByteArray
Link copied to clipboard
open override val localPort: Int
Link copied to clipboard
open override val owningProcessId: Int
Link copied to clipboard
open override val receiveQueue: Int
Link copied to clipboard
open override val state: TcpState
Link copied to clipboard
open override val transmitQueue: Int
Link copied to clipboard
open override val type: String