Module network

Module network 

Source

Structs§

Flags
Interface flags
IfAddrV4
IPv4 Interface from the AFINET network interface family
IfAddrV6
IPv6 Interface from the AFINET6 network interface family
NetworkInterface
System network interface

Enums§

Addr
Network interface address

Functions§

get_hostname
This function exist for backward compatibility. Use hostname() instead.
get_network_interfaces
This function exist for backward compatibility. Use network_interfaces() instead.
hostname
Get the hostname.
local_ipv4_addresses
Gets all local IPv4 addresses that are not loopback.
local_ipv6_addresses
Gets all local IPv6 addresses that are not loopback or unicast link local.
network_interfaces
Get all the network interfaces.