Package oshi.software.os.unix.freebsd
Class FreeBsdInternetProtocolStats
java.lang.Object
oshi.software.common.AbstractInternetProtocolStats
oshi.software.os.unix.freebsd.FreeBsdInternetProtocolStats
- All Implemented Interfaces:
InternetProtocolStats
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 -
Method Summary
Modifier and TypeMethodDescriptionGet the TCP stats for IPv4 connections.Get the UDP stats for IPv4 datagrams.Get the UDP stats for IPv6 datagrams, if available.Methods inherited from class oshi.software.common.AbstractInternetProtocolStats
getConnections, getTCPv6Stats
-
Constructor Details
-
FreeBsdInternetProtocolStats
public FreeBsdInternetProtocolStats()
-
-
Method Details
-
getTCPv4Stats
Description copied from interface:InternetProtocolStatsGet the TCP stats for IPv4 connections.On macOS connection information requires elevated permissions. Without elevatd 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.
-
getUDPv6Stats
Description copied from interface:InternetProtocolStatsGet the UDP stats for IPv6 datagrams, if available. If not available separately, these may be 0 and included in IPv4 datagrams.- Specified by:
getUDPv6Statsin interfaceInternetProtocolStats- Overrides:
getUDPv6Statsin classAbstractInternetProtocolStats- Returns:
- a
InternetProtocolStats.UdpStatsobject encapsulating the stats.
-