Listens for pings from clients and sends pongs.
More...
Listens for pings from clients and sends pongs.
◆ PingServer()
| PingServer.PingServer |
( |
int | port, |
|
|
string | serverName, |
|
|
string | serverStatus ) |
|
inline |
Constructor for the PingServer class.
- Parameters
-
| port | The port to listen on. |
| serverName | The name of the server. |
| serverStatus | The status of the server. |
◆ 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 |
◆ OnReceivedPing
| Action PingServer.OnReceivedPing |
The documentation for this class was generated from the following file:
- /github/workspace/Packages/FMAR/Networking/Runtime/Scripts/PingServer.cs