#pragma once #include #include #include // Parse servers.txt struct ServerList { // Type typedef unsigned short port_t; typedef std::pair Entry; // Load static port_t parse_port(const std::string &s); void load(const std::string &str); // Save [[nodiscard]] std::string to_string() const; // Entries std::vector entries; };