Android.Net.ConnectivityManager.RequestRouteToHost Method
Ensure that a network route exists to deliver traffic to the specified host via the specified network interface.

Syntax

[Android.Runtime.Register("requestRouteToHost", "(II)Z", "GetRequestRouteToHost_IIHandler")]
[System.Obsolete("deprecated")]
public virtual bool RequestRouteToHost ([Android.Runtime.GeneratedEnum] ConnectivityType networkType, int hostAddress)

Parameters

networkType
the type of the network over which traffic to the specified host is to be routed
hostAddress
the IP address of the host to which the route is desired

Returns

Documentation for this section has not yet been entered.

Remarks

Ensure that a network route exists to deliver traffic to the specified host via the specified network interface. An attempt to add a route that already exists is ignored, but treated as successful.

This method requires the caller to hold the permission NoType:android/Manifest$permission;Href=../../../reference/android/Manifest.permission.html#CHANGE_NETWORK_STATE.

[Android Documentation]

Requirements

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