Core Function Ping

From Sputnik Wiki
(Difference between revisions)
Jump to: navigation, search
UberFoX (Talk | contribs)
(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...")
Newer edit →

Revision as of 14:51, 1 December 2011

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 0 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