Ping/Pong methods to test if a server is reachable.
More...
|
| void | SendPing (string serverIP, int serverPort, int timeout, Action< PingServerInfo > onSuccessCallback, Action onFailureCallback) |
| | Send a ping to a server and listen for a pong.
|
| |
Ping/Pong methods to test if a server is reachable.
◆ SendPing()
| void PingClient.SendPing |
( |
string | serverIP, |
|
|
int | serverPort, |
|
|
int | timeout, |
|
|
Action< PingServerInfo > | onSuccessCallback, |
|
|
Action | onFailureCallback ) |
|
inline |
Send a ping to a server and listen for a pong.
- Parameters
-
| serverIP | The IP address of the server. |
| serverPort | The port of the server. |
| timeout | The timeout in milliseconds. |
| onSuccessCallback | The callback to invoke when the ping is successful. |
| onFailureCallback | The callback to invoke when the ping is unsuccessful. |
The documentation for this class was generated from the following file:
- /github/workspace/Packages/FMAR/Networking/Runtime/Scripts/PingClient.cs