Cradle
0.3.3
Simple library for creating Web-based applications
|
ICMP protocol wrapper. More...
Static Public Member Functions | |
static | ping ($host, $params=null) |
Static Public Attributes | |
static | $command = 'ping -q -n -c 1 -i 1 -W [TIMEOUT] [HOST]' |
ICMP protocol wrapper.
A simple class to send ICMP protocol requests to check is target host reachable.
This class just use Linux ping command.
|
static |
ICMP ping command wrapper
string | $host | Hostname (IP address) |
array | $params | An array of params: [ 'fast' => true, // stop send the ping on first success result 'tryCount' => 3, // count of retries if no response 'timeout' => 1, // first timeout in seconds 'timeoutIncrease' => true // increase every next retry timeout on 1 second ] |
|
static |
External ping command string