Class NetBsdInternetProtocolStats
java.lang.Object
oshi.software.common.AbstractInternetProtocolStats
oshi.software.common.os.unix.netbsd.NetBsdInternetProtocolStats
- All Implemented Interfaces:
InternetProtocolStats
Internet Protocol Stats implementation
-
Nested Class Summary
Nested classes/interfaces inherited from interface InternetProtocolStats
InternetProtocolStats.IPConnection, InternetProtocolStats.TcpState, InternetProtocolStats.TcpStats, InternetProtocolStats.UdpStatsModifier and TypeInterfaceDescriptionstatic final classEncapsulates information associated with an IP connection.static enumThe TCP connection state as described in RFC 793.static final classEncapsulates statistics associated with a TCP connection.static final classEncapsulates statistics associated with a UDP connection. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the TCP stats for IPv4 connections.Get the UDP stats for IPv4 datagrams.Methods inherited from class AbstractInternetProtocolStats
getConnections, getTCPv6Stats, getUDPv6StatsModifier and TypeMethodDescriptionGets a list of TCP and UDP connections.Get the TCP stats for IPv6 connections, if available.Get the UDP stats for IPv6 datagrams, if available.
-
Constructor Details
-
NetBsdInternetProtocolStats
public NetBsdInternetProtocolStats()
-
-
Method Details
-
getTCPv4Stats
Description copied from interface:InternetProtocolStatsGet the TCP stats for IPv4 connections.On macOS connection information requires elevated permissions. Without elevated permissions, segment data is estimated.
- Returns:
- a
InternetProtocolStats.TcpStatsobject encapsulating the stats.
-
getUDPv4Stats
Description copied from interface:InternetProtocolStatsGet the UDP stats for IPv4 datagrams.- Returns:
- a
InternetProtocolStats.UdpStatsobject encapsulating the stats.
-