Package oshi.software.os.unix.openbsd
Class OpenBsdInternetProtocolStats
java.lang.Object
oshi.software.common.AbstractInternetProtocolStats
oshi.software.os.unix.openbsd.OpenBsdInternetProtocolStats
- All Implemented Interfaces:
InternetProtocolStats
@ThreadSafe public class OpenBsdInternetProtocolStats extends AbstractInternetProtocolStats
Internet Protocol Stats implementation
-
Nested Class Summary
Nested classes/interfaces inherited from interface oshi.software.os.InternetProtocolStats
InternetProtocolStats.IPConnection, InternetProtocolStats.TcpState, InternetProtocolStats.TcpStats, InternetProtocolStats.UdpStats
-
Constructor Summary
Constructors Constructor Description OpenBsdInternetProtocolStats()
-
Method Summary
Modifier and Type Method Description InternetProtocolStats.TcpStats
getTCPv4Stats()
Get the TCP stats for IPv4 connections.InternetProtocolStats.UdpStats
getUDPv4Stats()
Get the UDP stats for IPv4 datagrams.Methods inherited from class oshi.software.common.AbstractInternetProtocolStats
getConnections, getTCPv6Stats, getUDPv6Stats
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
OpenBsdInternetProtocolStats
public OpenBsdInternetProtocolStats()
-
-
Method Details
-
getTCPv4Stats
Description copied from interface:InternetProtocolStats
Get the TCP stats for IPv4 connections.On macOS connection information requires elevated permissions. Without elevatd permissions, segment data is estimated.
- Returns:
- a
InternetProtocolStats.TcpStats
object encapsulating the stats.
-
getUDPv4Stats
Description copied from interface:InternetProtocolStats
Get the UDP stats for IPv4 datagrams.- Returns:
- a
InternetProtocolStats.UdpStats
object encapsulating the stats.
-