Expand description
Checks the network conditions from the current host.
NetReport is responsible for finding out the network conditions of the current host, like whether it is connected to the internet via IPv4 and/or IPv6, what the NAT situation is etc and reachability to the configured relays.
Structs§
- Addr
- Sender to the main service.
- Client
- Client to run net_reports.
- IpMapped
Addr - A map fake Ipv6 address with an actual IP address.
- IpMapped
Addr Error - Can occur when converting a
SocketAddr
to anIpMappedAddr
- IpMapped
Addresses - A Map of
IpMappedAddresses
toSocketAddr
. - Metrics
- Enum of metrics for the module
- Options
Non- wasm_browser
- Options for running probes
- Quic
Config - Pieces needed to do QUIC address discovery.
- Relay
Latencies - Latencies per relay node.
- Report
- A net_report report.
Functions§
- bind_
local_ stun_ socket stun-utils
- Attempts to bind a local socket to send STUN packets from.
- os_
has_ ipv6 Non- wasm_browser
- Test if IPv6 works at all, or if it’s been hard disabled at the OS level.