TNet 3  3.0.8
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Macros
TNet.TNLobbyClient Class Reference

Server Lobby Client is an abstract class designed to communicate with the Lobby Server. You should instantiate protocol-specific versions: TNTcpLobbyClient or TNUdpLobbyClient, and you should only have one of them active at a time, not both. More...

Inheritance diagram for TNet.TNLobbyClient:
TNet.TNTcpLobbyClient TNet.TNUdpLobbyClient

Public Member Functions

delegate void OnListChange ()
 

Public Attributes

string remoteAddress
 Public address for the lobby client server's location. More...
 
int remotePort = 5129
 Lobby server's port. More...
 

Static Public Attributes

static string errorString = ""
 Error string set if something goes wrong. More...
 
static ServerList knownServers = new ServerList()
 List of known servers. More...
 
static OnListChange onChange
 Callback that will be triggered every time the server list changes. More...
 
static bool isActive = false
 Whether some lobby client is currently active. More...
 

Protected Member Functions

virtual void OnDisable ()
 Clear the list of known servers when the component is disabled. More...
 

Detailed Description

Server Lobby Client is an abstract class designed to communicate with the Lobby Server. You should instantiate protocol-specific versions: TNTcpLobbyClient or TNUdpLobbyClient, and you should only have one of them active at a time, not both.

Member Function Documentation

virtual void TNet.TNLobbyClient.OnDisable ( )
protectedvirtual

Clear the list of known servers when the component is disabled.

Reimplemented in TNet.TNUdpLobbyClient, and TNet.TNTcpLobbyClient.

delegate void TNet.TNLobbyClient.OnListChange ( )

Member Data Documentation

string TNet.TNLobbyClient.errorString = ""
static

Error string set if something goes wrong.

bool TNet.TNLobbyClient.isActive = false
static

Whether some lobby client is currently active.

ServerList TNet.TNLobbyClient.knownServers = new ServerList()
static

List of known servers.

OnListChange TNet.TNLobbyClient.onChange
static

Callback that will be triggered every time the server list changes.

string TNet.TNLobbyClient.remoteAddress

Public address for the lobby client server's location.

int TNet.TNLobbyClient.remotePort = 5129

Lobby server's port.


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