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

Syntax

[Android.Runtime.Register("isReachable", "(I)Z", "GetIsReachable_IHandler")]
public virtual bool IsReachable (int timeout)

Parameters

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 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