Ping.Ping

From Overbyte
Revision as of 15:51, 27 January 2019 by Markus.humm (talk | contribs) (→‎Best practices)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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 (like 65535 or similar) because older Windows hosts have a bug which will lead to a crash on the host side (called "ping of death"). Fixes are available and should have been installed by everybody now as this affects Windows versions older that Windows 7 from 2009.

How to

If you want to test whether a connection also supports bigger data packets change the default package size.