… | |
… | |
212 | |
212 | |
213 | $pinger->add_hosts ([$host...], $interval, $interleave) |
213 | $pinger->add_hosts ([$host...], $interval, $interleave) |
214 | Similar to "add_range", but uses a list of single addresses instead. |
214 | Similar to "add_range", but uses a list of single addresses instead. |
215 | The list is specified as an array reference as first argument. Each |
215 | The list is specified as an array reference as first argument. Each |
216 | entry in the array should be a binary host address, either IPv4 or |
216 | entry in the array should be a binary host address, either IPv4 or |
217 | IPv6. Currently, all entries in the list must be either IPv4 OR |
217 | IPv6. If all addresses are IPv4 addresses, then a compact IPv4-only |
218 | IPv6, so you have to create two host ranges if you have mixed |
218 | format will be used to store the list internally. |
219 | addresses. |
|
|
220 | |
219 | |
221 | Minimum $interval is the same as for "add_range" and can be left |
220 | Minimum $interval is the same as for "add_range" and can be left |
222 | out. |
221 | out. |
223 | |
222 | |
224 | $interlave specifies an increment between addresses: often address |
223 | $interlave specifies an increment between addresses: often address |