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

Ping/Pong methods to test if a server is reachable. More...

Public Member Functions

void SendPing (string serverIP, int serverPort, int timeout, Action< PingServerInfo > onSuccessCallback, Action onFailureCallback)
 Send a ping to a server and listen for a pong.
 

Detailed Description

Ping/Pong methods to test if a server is reachable.

Member Function Documentation

◆ 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
serverIPThe IP address of the server.
serverPortThe port of the server.
timeoutThe timeout in milliseconds.
onSuccessCallbackThe callback to invoke when the ping is successful.
onFailureCallbackThe callback to invoke when the ping is unsuccessful.

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