TorchCraftAI
A bot for machine learning research on StarCraft: Brood War
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
cpid::Cpid2kWorkerInfo Struct Reference

#include <cpid2kworker.h>

Public Member Functions

bool roleIs (std::string_view role)
 
template<typename Archive >
void serialize (Archive &ar)
 

Static Public Member Functions

static Cpid2kWorkerInfo withLocalIp ()
 
static Cpid2kWorkerInfo withLocalIpFromEnvVars ()
 

Public Attributes

std::string id
 Worker ID. More...
 
std::string host
 IP address of the machine this process is running on. More...
 
std::map< std::string, int > services
 Services offered by this worker (name to port number) More...
 

Member Function Documentation

bool cpid::Cpid2kWorkerInfo::roleIs ( std::string_view  role)
template<typename Archive >
void cpid::Cpid2kWorkerInfo::serialize ( Archive &  ar)
inline
Cpid2kWorkerInfo cpid::Cpid2kWorkerInfo::withLocalIp ( )
static
Cpid2kWorkerInfo cpid::Cpid2kWorkerInfo::withLocalIpFromEnvVars ( )
static

Member Data Documentation

std::string cpid::Cpid2kWorkerInfo::host

IP address of the machine this process is running on.

std::string cpid::Cpid2kWorkerInfo::id

Worker ID.

std::map<std::string, int> cpid::Cpid2kWorkerInfo::services

Services offered by this worker (name to port number)


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