is_destination_reachable


Description:

[ Version ( since = "3.8" ) ]
public bool is_destination_reachable (Cancellable? cancellable = null) throws Error

Checks whether the this<!-- -->'s destination server, as returned by get_destination_address, is reachable.

If the get_destination_address returns false, this function returns true, meaning the destination is always reachable. This uses NetworkMonitor<!-- -->'s can_reach for reachability tests.

Parameters:

this

an Backend instance

cancellable

a Cancellable instance, or null

Returns:

true, when destination server address is reachable or the backend doesn't provide destination address; false if the backend destination server cannot be reached currently.