Core Function Ping

From Sputnik Wiki
(Difference between revisions)
Jump to: navigation, search
(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...")
 
m (1 revision)
 
(2 intermediate revisions by one user not shown)
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 0 if host is not pingable or other network errors occured.
+
Failure: Returns -1 if host is not pingable or other network errors occured.
  
 
=== Remarks ===
 
=== Remarks ===

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") );
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox