IServerListener

C++
struct IServerListener {
};
File

INetworkService.h

IServerListener::~IServerListener Destructor
C++
virtual ~IServerListener();
IServerListener::NewServer Method
C++
virtual void NewServer(const int id, const SBasicServerInfo*) = 0;
Description

new server reported during update and basic values received

IServerListener::OnError Method
C++
virtual void OnError(const EServerBrowserError) = 0;
Description

called on any error

IServerListener::RemoveServer Method
C++
virtual void RemoveServer(const int id) = 0;
Description

remove server from UI server list

IServerListener::ServerDirectConnect Method
C++
virtual void ServerDirectConnect(bool needsnat, uint32 ip, uint16 port) = 0;
IServerListener::ServerUpdateComplete Method
C++
virtual void ServerUpdateComplete(const int id) = 0;
IServerListener::ServerUpdateFailed Method
C++
virtual void ServerUpdateFailed(const int id) = 0;
Description

cannot update/ping server

IServerListener::UpdateComplete Method
C++
virtual void UpdateComplete(bool cancelled) = 0;
Description

all servers in the list processed

IServerListener::UpdatePing Method
C++
virtual void UpdatePing(const int id, const int ping) = 0;
Description

server successfully pinged (servers behind NAT cannot be pinged)

IServerListener::UpdatePlayerValue Method
C++
virtual void UpdatePlayerValue(const int id, const int playerNum, const char* name, const char* value) = 0;
IServerListener::UpdateServer Method
C++
virtual void UpdateServer(const int id, const SBasicServerInfo*) = 0;
IServerListener::UpdateTeamValue Method
C++
virtual void UpdateTeamValue(const int id, const int teamNum, const char * name, const char* value) = 0;
IServerListener::UpdateValue Method
C++
virtual void UpdateValue(const int id, const char* name, const char* value) = 0;
Description

extended data - can be dependent on game type etc, retrieved only by request via IServerBrowser::UpdateServerInfo