Core Function Ping
From Sputnik Wiki
(Difference between revisions)
(→Return Value) |
m (1 revision) |
(One intermediate revision by one user not shown) |
Latest revision as of 12:38, 14 June 2015
Ping( <ip address/host name> )
Contents |
Description
Pings a host and returns the roundtrip-time.
Parameters
<ip address/host name>
A host name to ping such as "uberfox.no-ip.org" or "google.com" or an IP address
Return Value
Success: Returns the roundtrip-time in milliseconds ( greater than 0 ).
Failure: Returns -1 if host is not pingable or other network errors occured.
Remarks
None.
Example
println( Ping("uberfox.no-ip.org") ); println( Ping("google.com") );