PingHost function

function PingHost(Const Host: string): Integer;

Unit
PINGsend

Description
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.