Skip to main content
Version: v4 (Stable)

AddPing

AddPing(sIpAddress AS String[, nTimeout As Integer[, nMaxTries As Integer]]) AS Boolean

Adds <sIpAddress> to the list of addresses to ping.

The optional parameter <nTimeout> defines the maximum waited time in milliseconds for the ping response (5000 ms by default).

The optional parameter <nMaxTries> defines the maximum number of ping attempts (3 by default) before declaring address as not reachable.

Returns 0 if the IP address is invalid.