com.onlineobject.objectnet Namespace

NetworkDiagnostics..::..PingAddressAsync Method

Asynchronously pings the specified address and invokes the onFinish action with the result and response time.

Namespace:  com.onlineobject.objectnet
Assembly:  ObjectNetAPI (in ObjectNetAPI.dll)

Syntax


public static IEnumerator PingAddressAsync(

	string addr,

	float timeout,

	Action<bool, ushort> onFinish

)

Parameters

addr
Type: String
The address to ping.
timeout
Type: Single
The maximum time to wait for a response in seconds.
onFinish
Type: Action<(Of <(<'Boolean, UInt16>)>)>
The action to be invoked with the ping result (true for success, false for failure) and the response time in milliseconds.

Return Value

An IEnumerator for asynchronous execution.