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

Abstract class for a lobby server. More...

Inheritance diagram for TNet.LobbyServer:
TNet.FileServer TNet.TcpLobbyServer TNet.UdpLobbyServer

Public Member Functions

abstract bool Start (int listenPort)
 Start listening for incoming server list requests. More...
 
abstract void Stop ()
 Stop listening for incoming packets. More...
 
abstract void AddServer (string name, int playerCount, IPEndPoint internalAddress, IPEndPoint externalAddress)
 Add a new server to the list. More...
 
abstract void RemoveServer (IPEndPoint internalAddress, IPEndPoint externalAddress)
 Remove an existing server from the list. More...
 
- Public Member Functions inherited from TNet.FileServer
bool SaveFile (string fileName, byte[] data)
 Save the specified file. More...
 
byte[] LoadFile (string fileName)
 Load the specified file. More...
 
bool DeleteFile (string fileName)
 Delete the specified file. More...
 

Properties

abstract int port [get]
 Port used to listen for incoming packets. More...
 
abstract bool isActive [get]
 Whether the server is active. More...
 

Detailed Description

Abstract class for a lobby server.

Member Function Documentation

abstract void TNet.LobbyServer.AddServer ( string  name,
int  playerCount,
IPEndPoint  internalAddress,
IPEndPoint  externalAddress 
)
pure virtual

Add a new server to the list.

Implemented in TNet.TcpLobbyServer, and TNet.UdpLobbyServer.

abstract void TNet.LobbyServer.RemoveServer ( IPEndPoint  internalAddress,
IPEndPoint  externalAddress 
)
pure virtual

Remove an existing server from the list.

Implemented in TNet.TcpLobbyServer, and TNet.UdpLobbyServer.

abstract bool TNet.LobbyServer.Start ( int  listenPort)
pure virtual

Start listening for incoming server list requests.

Implemented in TNet.TcpLobbyServer, and TNet.UdpLobbyServer.

abstract void TNet.LobbyServer.Stop ( )
pure virtual

Stop listening for incoming packets.

Implemented in TNet.TcpLobbyServer, and TNet.UdpLobbyServer.

Property Documentation

abstract bool TNet.LobbyServer.isActive
get

Whether the server is active.

abstract int TNet.LobbyServer.port
get

Port used to listen for incoming packets.


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