# ping [v2.0]

Author: Drugwash Last Modified: 20100429

Sends a test ping signal to a host through the ip protocol. It checks if the destination is reachable.

ping(addr, data="AHK ping test", timeout="500")
ping_(adr, data, timeout)
ping_DW2IP(adr)
ping_GetError(code, func="[ukn]")
ping_Host2IP(name)

For more details of the functions's parameters and return value, please see it's source code.

#### Remarks

Not sure if usage at demo file is correct.
The author wrote about the license:
"This script is of course free to change and republish for everyone, as per the AHK license."
"License, as mentioned before, is same as AutoHotkey's."
At this time of writing, it is GPL v2. Answer: http://www.autohotkey.com/forum/viewtopic.php?p=342625#342625

For update's details and remarks related to the functions, please see the AutoHotkey Forum: http://www.autohotkey.com/forum/viewtopic.php?t=44677

#### License

The functions is an open source item under the GNU GPL license. For details, please see gpl-2.0.txt

#### Example

    ; #Include ping.ahk
    #NoEnv
    SendMode Input
    SetWorkingDir %A_ScriptDir%

    hostlist := "127.0.0.1|192.168.2.1|http://www.google.com||http://www.wikipedia.com|99.99.99.99|"
    data := "AHK test"
    timeout := "500"

    Loop, Parse, hostlist, |
    {
        MsgBox,, %A_LoopField%, % ping(A_LoopField, data, timeout)
    }