FirstModulAR 0.1.0
Loading...
Searching...
No Matches
PingServer Class Reference

Listens for pings from clients and sends pongs. More...

Public Member Functions

 PingServer (int port, string serverName, string serverStatus)
 Constructor for the PingServer class.
 
void OnDestroy ()
 
void StartListening ()
 
void StopListening ()
 
string GetServerIpAddress ()
 Get the IP address the server is running on.
 

Public Attributes

Action OnReceivedPing
 

Detailed Description

Listens for pings from clients and sends pongs.

Constructor & Destructor Documentation

◆ PingServer()

PingServer.PingServer ( int port,
string serverName,
string serverStatus )
inline

Constructor for the PingServer class.

Parameters
portThe port to listen on.
serverNameThe name of the server.
serverStatusThe status of the server.

Member Function Documentation

◆ GetServerIpAddress()

string PingServer.GetServerIpAddress ( )
inline

Get the IP address the server is running on.

Returns
The IP address of the server.

◆ OnDestroy()

void PingServer.OnDestroy ( )
inline

◆ StartListening()

void PingServer.StartListening ( )
inline

◆ StopListening()

void PingServer.StopListening ( )
inline

Member Data Documentation

◆ OnReceivedPing

Action PingServer.OnReceivedPing

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