group2 0.1.0
CSE 125 Group 2
Loading...
Searching...
No Matches
NetworkConfig.hpp
Go to the documentation of this file.
1
3
4#pragma once
5
6#include <cstdint>
7#include <string>
8
14{
15 std::string host = "127.0.0.1";
16 uint16_t port = 9999;
17};
18
27[[nodiscard]] NetworkConfig loadNetworkConfig(const char* path);
NetworkConfig loadNetworkConfig(const char *path)
Load network config from a TOML file.
Definition NetworkConfig.cpp:9
Runtime network connection parameters.
Definition NetworkConfig.hpp:14
std::string host
Server hostname or IP address.
Definition NetworkConfig.hpp:15
uint16_t port
Server TCP port.
Definition NetworkConfig.hpp:16