PROTOCOLS
Monitor
Defined in fuchsia.net.reachability/reachability.fidl
Provides snapshots of reachability state.
SetOptions
Controls verbosity of results returned from calls to Watch. If options are set via this method, it must be in the first call made over the channel.
Calling this method after either it or Watch have already been invoked will result in closing the channel. If this method is not called before calling Watch, Snapshot responses will not be modified.
Request
Name | Type |
---|---|
payload |
MonitorOptions
|
Watch
Hanging-get API for changes in network reachability state.
Watch
returns a snapshot of the system's most recent reachability
state information. The first call returns a current snapshot.
Subsequent calls to Watch
block until the previously-observed state
changes.
While this API guarantees that any state returned was a valid network state at some point, it does not guarantee observation of every intermediate state.
It is not valid to call Watch
concurrently. Calling Watch
while
another call over the same server end is in flight will result in the
closing the channel.
- response a snapshot of current system reachability state.
Request
<EMPTY>
Response
Name | Type |
---|---|
payload |
Snapshot
|
TABLES
MonitorOptions
Defined in fuchsia.net.reachability/reachability.fidl
Ordinal | Field | Type | Description |
---|
Snapshot
Defined in fuchsia.net.reachability/reachability.fidl
Information about network configuration and apparent reachability status of external networks.
Ordinal | Field | Type | Description |
---|---|---|---|
1 |
internet_available |
bool
|
Signifies whether internet reachability is available. |
2 |
gateway_reachable |
bool
|
Indicates whether any default gateway is reachable at least via link layer. Added: 11
|
3 |
dns_active |
bool
|
Indicates whether DNS services are functional via any configured network. Added: 11
|
4 |
http_active |
bool
|
Indicates whether HTTP fetching is functional via any configured network. Added: HEAD
|