InternetProtocolStatsImpl

class InternetProtocolStatsImpl(val internetProtocolStatsInfo: InternetProtocolStats) : InternetProtocolStats

InternetProtocolStatsImpl Implements the InternetProtocolStats interface to provide details about the network protocol statistics, including TCP and UDP statistics for both IPv4 and IPv6, as well as active IP connections.

Author

N7ghtm4r3

Parameters

internetProtocolStatsInfo

The source object that contains the raw protocol stats.

See also

Constructors

Link copied to clipboard
constructor(internetProtocolStatsInfo: InternetProtocolStats)

Properties

Link copied to clipboard
private val internetProtocolStatsInfo: InternetProtocolStats
Link copied to clipboard
open override val ipConnections: List<IPConnection>

ipConnections A list of active IP connections, including local and foreign addresses, ports, and their respective states.

Link copied to clipboard
open override val tcpV4Stats: TcpStats

tcpV4Stats Returns the TCP statistics for the IPv4 protocol, including established, active, passive connections, and other metrics like sent/received segments.

Link copied to clipboard
open override val tcpV6Stats: TcpStats

tcpV6Stats Returns the TCP statistics for the IPv6 protocol, including established, active, passive connections, and other metrics like sent/received segments.

Link copied to clipboard
open override val udpV4Stats: UdpStats

udpV4Stats Returns the UDP statistics for the IPv4 protocol, including sent/received datagrams, and other related metrics.

Link copied to clipboard
open override val udpV6Stats: UdpStats

udpV6Stats Returns the UDP statistics for the IPv6 protocol, including sent/received datagrams, and other related metrics.

Functions

Link copied to clipboard
private fun initTcpStats(source: InternetProtocolStats.TcpStats): TcpStats

Initializes the TCP statistics from the raw source data.

Link copied to clipboard
private fun initUdpStats(source: InternetProtocolStats.UdpStats): UdpStats

Initializes the UDP statistics from the raw source data.

Link copied to clipboard
private fun loadIpConnections(sourceList: List<InternetProtocolStats.IPConnection>): List<IPConnection>

Loads the IP connections from the raw source list.