NetworkParamsImpl

class NetworkParamsImpl(networkParamsInfo: NetworkParams) : NetworkParams

NetworkParamsImpl Implementation of the NetworkParams interface. This class provides details about the network parameters of the device, including host name, domain name, DNS servers, and default gateways for IPv4 and IPv6.

Author

N7ghtm4r3

Parameters

networkParamsInfo

An instance of oshi.software.os.NetworkParams containing the network information.

See also

Constructors

Link copied to clipboard
constructor(networkParamsInfo: NetworkParams)

Properties

Link copied to clipboard
open override val dnsServers: Array<String>

dnsServers A list of DNS server addresses used by the device for domain name resolution.

Link copied to clipboard
open override val domainName: String

domainName The domain name of the network or the device (e.g., "example.com").

Link copied to clipboard
open override val hostName: String

hostName The name of the device on the network (e.g., "MyComputer").

Link copied to clipboard
open override val ipv4DefaultGateway: String

ipv4DefaultGateway The default gateway for IPv4 traffic, typically the router's IP address.

Link copied to clipboard
open override val ipv6DefaultGateway: String

ipv6DefaultGateway The default gateway for IPv6 traffic, typically the router's IPv6 address.