Unit pingsend
Description
ICMP PING implementation.
Allows create PING and TRACEROUTE. Or you can diagnose your network.
This unit using IpHlpApi (on WinXP or higher) if available. Otherwise it trying to use RAW sockets.
Warning: For use of RAW sockets you must have some special rights on some systems. So, it working allways when you have administator/root rights. Otherwise you can have problems!
Note: This unit is NOT portable to .NET! Use native .NET classes for Ping instead.
uses
Overview
Classes, Interfaces, Objects and Records
Class TPINGSend |
Implementation of ICMP PING and ICMPv6 PING. |
Functions and Procedures
Types
Constants
Description
Functions and Procedures
function PingHost(const Host: string): Integer; |
A very useful function and example of its use would be found in the TPINGSend object. Use it to ping to any host. If successful, returns the ping time in milliseconds. Returns -1 if an error occurred.
function TraceRouteHost(const Host: string): string; |
A very useful function and example of its use would be found in the TPINGSend object. Use it to TraceRoute to any host.
Types
List of possible ICMP reply packet types.
-
IE_NoError:
-
IE_Other:
-
IE_TTLExceed:
-
IE_UnreachOther:
-
IE_UnreachRoute:
-
IE_UnreachAdmin:
-
IE_UnreachAddr:
-
IE_UnreachPort:
Constants
Generated by PasDoc 0.9.0 on 2007-12-20 22:45:44