IGameQueryListener

This interface should be implemented by the game to receive asynchronous game query results.

C++
struct IGameQueryListener {
};
File

INetwork.h

IGameQueryListener::~IGameQueryListener Destructor
C++
virtual ~IGameQueryListener();
IGameQueryListener::AddPong Method

Adds a received server pong.

C++
virtual void AddPong(string address, uint32 ping) = 0;
IGameQueryListener::AddServer Method

Adds a server to intern list if not already existing, else just update data.

C++
virtual void AddServer(const char* description, const char* target, const char* additionalText, uint32 ping) = 0;
IGameQueryListener::ConnectToServer Method

Connects a network game to the specified server.

C++
virtual void ConnectToServer(const char* server) = 0;
IGameQueryListener::GetCurrentServers Method
C++
virtual \ void GetCurrentServers(char*** pastrServers, int& o_amount) = 0;
IGameQueryListener::GetMemoryStatistics Method
C++
virtual void GetMemoryStatistics(ICrySizer* pSizer) = 0;
IGameQueryListener::GetServer Method

Returns a specific server by number (NULL if not available).

C++
virtual void GetServer(int number, char** server, char** data, int& ping) = 0;
IGameQueryListener::GetServerData Method

Returns the game server's data as a string and it's ping as an integer by reference.

C++
virtual const char* GetServerData(const char* server, int& o_ping) = 0;
IGameQueryListener::GetValuesFromData Method

Retrieves infos from the data string.

C++
virtual void GetValuesFromData(char * strData, SServerData * pServerData) = 0;
IGameQueryListener::OnReceiveGameState Method
C++
virtual void OnReceiveGameState(const char *, XmlNodeRef) = 0;
IGameQueryListener::RefreshPings Method

Refresh pings of all servers in the list.

C++
virtual void RefreshPings() = 0;
IGameQueryListener::Release Method
C++
virtual void Release() = 0;
IGameQueryListener::RemoveServer Method

Removes a server independently from last answer etc.

C++
virtual void RemoveServer(string address) = 0;
IGameQueryListener::Update Method
C++
virtual void Update() = 0;