Sends an ICMP (Ping) to another Ethernet connected device
Ping( IP1, IP2, IP3, IP4 )
Ping( IP4 )
Send a 32 byte packet to other device and return the roundtrip time in milliseconds
IP1 | First IPv4 octet |
IP2 | Second IPv4 octet |
IP3 | Third IPv4 octet |
IP4 | Fourth IPv4 octet |
If only one octet is given, it's assumed to be the last octet, and the rest of the address is the same as the ezeio.
Returns the roundtrip time in milliseconds, or 0 if there is an error.
new ms; ms = Ping(8, 8, 4, 4); PDebug("Ping took %d ms", ms);