Core Function Ping
From Sputnik Wiki
(Difference between revisions)
(Created page with "<pre> Ping( <ip address/host name> ) </pre> === Description === Pings a host and returns the roundtrip-time. === Parameters=== ==== <ip address/host name> ==== A host name t...") |
(→Return Value) |
||
Line 17: | Line 17: | ||
Success: Returns the roundtrip-time in milliseconds ( greater than 0 ). | Success: Returns the roundtrip-time in milliseconds ( greater than 0 ). | ||
− | Failure: Returns | + | Failure: Returns -1 if host is not pingable or other network errors occured. |
=== Remarks === | === Remarks === |
Revision as of 03:23, 22 August 2013
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") );