Class MacInternetProtocolStatsJNA
java.lang.Object
oshi.software.common.AbstractInternetProtocolStats
oshi.software.common.os.mac.MacInternetProtocolStats
oshi.software.os.mac.MacInternetProtocolStatsJNA
- All Implemented Interfaces:
InternetProtocolStats
Internet Protocol Stats implementation
-
Nested Class Summary
Nested classes/interfaces inherited from class MacInternetProtocolStats
MacInternetProtocolStats.BsdIp6stat, MacInternetProtocolStats.BsdIpstat, MacInternetProtocolStats.BsdTcpstat, MacInternetProtocolStats.BsdUdpstatModifier and TypeClassDescriptionstatic final classSelected fields of the macOSip6statstructure.static final classSelected fields of the macOSipstatstructure.static final classSelected fields of the macOStcpstatstructure.static final classSelected fields of the macOSudpstatstructure.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 TypeMethodDescriptionGets a list of TCP and UDP connections.protected MacInternetProtocolStats.BsdIp6statReads thenet.inet6.ip6.statssysctl into a carrier.protected MacInternetProtocolStats.BsdIpstatReads thenet.inet.ip.statssysctl into a carrier.protected MacInternetProtocolStats.BsdTcpstatReads thenet.inet.tcp.statssysctl into a carrier.protected MacInternetProtocolStats.BsdUdpstatReads thenet.inet.udp.statssysctl into a carrier.Methods inherited from class MacInternetProtocolStats
getTCPv4Stats, getTCPv6Stats, getUDPv4Stats, getUDPv6StatsModifier and TypeMethodDescriptionGet the TCP stats for IPv4 connections.Get the TCP stats for IPv6 connections, if available.Get the UDP stats for IPv4 datagrams.Get the UDP stats for IPv6 datagrams, if available.
-
Constructor Details
-
MacInternetProtocolStatsJNA
public MacInternetProtocolStatsJNA(boolean elevated)
-
-
Method Details
-
getConnections
Description copied from interface:InternetProtocolStatsGets a list of TCP and UDP connections.- Specified by:
getConnectionsin interfaceInternetProtocolStats- Overrides:
getConnectionsin classAbstractInternetProtocolStats- Returns:
- A list of
InternetProtocolStats.IPConnectionobjects for TCP and UDP connections.
-
queryTcpstat
Description copied from class:MacInternetProtocolStatsReads thenet.inet.tcp.statssysctl into a carrier.- Specified by:
queryTcpstatin classMacInternetProtocolStats- Returns:
- the TCP statistics
-
queryIpstat
Description copied from class:MacInternetProtocolStatsReads thenet.inet.ip.statssysctl into a carrier.- Specified by:
queryIpstatin classMacInternetProtocolStats- Returns:
- the IP statistics
-
queryIp6stat
Description copied from class:MacInternetProtocolStatsReads thenet.inet6.ip6.statssysctl into a carrier.- Specified by:
queryIp6statin classMacInternetProtocolStats- Returns:
- the IPv6 statistics
-
queryUdpstat
Description copied from class:MacInternetProtocolStatsReads thenet.inet.udp.statssysctl into a carrier.- Specified by:
queryUdpstatin classMacInternetProtocolStats- Returns:
- the UDP statistics
-