Java.Net.InetAddress.IsReachable Method
Tries to reach this InetAddress.

Syntax

[Android.Runtime.Register("isReachable", "(Ljava/net/NetworkInterface;II)Z", "GetIsReachable_Ljava_net_NetworkInterface_IIHandler")]
public virtual bool IsReachable (NetworkInterface netif, int ttl, int timeout)

Parameters

networkInterface
the network interface on which to connection should be established.
ttl
the maximum count of hops (time-to-live).
timeout
timeout in milliseconds before the test fails if no connection could be established.

Returns

Documentation for this section has not yet been entered.

Exceptions

TypeReason
Java.IO.IOExceptionif an error occurs during an I/O operation.
Java.Lang.IllegalArgumentExceptionif ttl or timeout is less than zero.

Remarks

Tries to reach this InetAddress. This method first tries to use ICMP (ICMP ECHO REQUEST), falling back to a TCP connection on port 7 (Echo) of the remote host.

[Android Documentation]

Requirements

Namespace: Java.Net
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1