SC2API
An API for AI for StarCraft II
Public Member Functions | Public Attributes | List of all members
sc2::Server Class Reference

Public Member Functions

bool Listen (const char *listeningPorts, const char *requestTimeoutMs, const char *websocketTimeoutMs, const char *numThreads)
 
void QueueRequest (struct mg_connection *conn, SC2APIProtocol::Request *&request)
 
void QueueResponse (struct mg_connection *conn, SC2APIProtocol::Response *&response)
 
void SendRequest (struct mg_connection *conn=nullptr)
 
void SendResponse (struct mg_connection *conn=nullptr)
 
bool HasRequest ()
 
bool HasResponse ()
 
const RequestData & PeekRequest ()
 
const ResponseData & PeekResponse ()
 

Public Attributes

std::vector< const mg_connection * > connections_
 

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