group2 0.1.0
CSE 125 Group 2
Loading...
Searching...
No Matches
GlobalDiscoveryClient Class Reference

#include <GlobalDiscoveryClient.hpp>

Public Member Functions

bool fetchServers (const GlobalDiscoveryConfig &cfg, std::vector< net::discovery::ServerInfo > &outServers, std::string &outError, int timeoutMs=1200)
bool requestHolePunch (const GlobalDiscoveryConfig &cfg, std::uint32_t serverId, net::discovery::ServerInfo &outServer, std::string &outError, int timeoutMs)
bool requestHolePunch (const GlobalDiscoveryConfig &cfg, std::uint32_t serverId, std::uint32_t clientNonce, net::discovery::ServerInfo &outServer, std::string &outError, int timeoutMs, net::RelayToken *outRelayToken=nullptr)

Member Function Documentation

◆ fetchServers()

bool GlobalDiscoveryClient::fetchServers ( const GlobalDiscoveryConfig & cfg,
std::vector< net::discovery::ServerInfo > & outServers,
std::string & outError,
int timeoutMs = 1200 )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ requestHolePunch() [1/2]

bool GlobalDiscoveryClient::requestHolePunch ( const GlobalDiscoveryConfig & cfg,
std::uint32_t serverId,
net::discovery::ServerInfo & outServer,
std::string & outError,
int timeoutMs )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ requestHolePunch() [2/2]

bool GlobalDiscoveryClient::requestHolePunch ( const GlobalDiscoveryConfig & cfg,
std::uint32_t serverId,
std::uint32_t clientNonce,
net::discovery::ServerInfo & outServer,
std::string & outError,
int timeoutMs,
net::RelayToken * outRelayToken = nullptr )
Here is the call graph for this function:

The documentation for this class was generated from the following files: