isAvailableByPing

open fun isAvailableByPing(): Boolean

Return whether network is available using ping.

Must hold {@code }

The default ping ip: 223.5.5.5

Return

{@code true}: yes{@code false}: no

open fun isAvailableByPing(ip: String): Boolean

Return whether network is available using ping.

Must hold {@code }

Return

{@code true}: yes{@code false}: no

Parameters

ip

The ip address.