C# Class Bricklayer.Server.PingListener

Handles incoming ping requests for server data such as players online, motd, etc
Exibir arquivo Open project: Cyral/Bricklayer Class Usage Examples

Public Methods

Method Description
PingListener ( int port ) : System

Creates a new listener to listen for TCP messages from clients that want to check server status

Start ( ) : void

Starts listening on a new thread for ping requests

Private Methods

Method Description
Listen ( ) : void

Listens for ping requests, and sends back statistics

Method Details

PingListener() public method

Creates a new listener to listen for TCP messages from clients that want to check server status
public PingListener ( int port ) : System
port int TThe port to listen on
return System

Start() public method

Starts listening on a new thread for ping requests
public Start ( ) : void
return void