group2 0.1.0
CSE 125 Group 2
Loading...
Searching...
No Matches
GlobalDiscoveryConfig Struct Reference

Global server browser / directory-service settings. More...

#include <NetworkConfig.hpp>

Public Attributes

bool enabled = true
 Client browser and server publishing toggle.
bool advertiseServer = true
 Server auto-publishes itself to the directory.
std::string directoryHost = "cse125.ucsd.edu"
 Central directory host.
uint16_t directoryTcpPort = 10080
 Legacy directory TCP API port.
uint16_t directoryUdpPort = 10081
 UDP directory/relay port.
std::string serverName = "Group 2 Server"
 Name advertised by local servers.
uint8_t maxPlayers = 8
 Display-only capacity advertised by servers.
int refreshSeconds = 5
 Client browser refresh cadence.
int connectPunchTimeoutMs = 900
 UDP punch-assist window before a direct join attempt.
int relayFallbackDelayMs = 450
 Start relay if direct route has not validated within this window.

Detailed Description

Global server browser / directory-service settings.

Member Data Documentation

◆ advertiseServer

bool GlobalDiscoveryConfig::advertiseServer = true

Server auto-publishes itself to the directory.

◆ connectPunchTimeoutMs

int GlobalDiscoveryConfig::connectPunchTimeoutMs = 900

UDP punch-assist window before a direct join attempt.

◆ directoryHost

std::string GlobalDiscoveryConfig::directoryHost = "cse125.ucsd.edu"

Central directory host.

◆ directoryTcpPort

uint16_t GlobalDiscoveryConfig::directoryTcpPort = 10080

Legacy directory TCP API port.

◆ directoryUdpPort

uint16_t GlobalDiscoveryConfig::directoryUdpPort = 10081

UDP directory/relay port.

◆ enabled

bool GlobalDiscoveryConfig::enabled = true

Client browser and server publishing toggle.

◆ maxPlayers

uint8_t GlobalDiscoveryConfig::maxPlayers = 8

Display-only capacity advertised by servers.

◆ refreshSeconds

int GlobalDiscoveryConfig::refreshSeconds = 5

Client browser refresh cadence.

◆ relayFallbackDelayMs

int GlobalDiscoveryConfig::relayFallbackDelayMs = 450

Start relay if direct route has not validated within this window.

◆ serverName

std::string GlobalDiscoveryConfig::serverName = "Group 2 Server"

Name advertised by local servers.


The documentation for this struct was generated from the following file: