Difference between revisions of "Ping.Ping"

From Overbyte
Jump to navigation Jump to search
(Created page with '== Definition == '''method''' Ping: '''integer'''; == Description == '''Ping''' is used to send a ICMP datapacket to a host. Purpose is to check whether the host is onlin…')
(No difference)

Revision as of 18:31, 17 June 2010

Definition

method Ping: integer;

Description

Ping is used to send a ICMP datapacket to a host. Purpose is to check whether the host is online (answers the packet) or is not available/reachable (no icmp answer within a given time).

In the simplest form the ping method returns 0 for failure and anything else if the host could be reached.

Example

Best practices

Do not set the Size property to high values because older Windows hosts have a bug which can lead to a crash on the host side (called "ping of death"). Fixes are available but not everybody might have installed them.

How to