Skip to main content

Module server

Module server 

Source
Expand description

Server discovery and selection.

This module provides the core server discovery and selection logic.

Structs§

ServerDiscovery
Server discovery result.

Functions§

calculate_distance
Calculate distance between two geographic points using Haversine formula.
fetch
Fetch available servers and client location.
fetch_client_location
Fetch just the client location from speedtest.net.
measure_latency_under_load
Measure latency while running a bandwidth test.
ping_test
Run a ping test against a server.
select_best_server
Select the best server from a list based on distance.