<br />

Added: 8

## **PROTOCOLS**

## Monitor

*Defined in [fuchsia.net.reachability/reachability.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.net.reachability/reachability.fidl;l=15)*

Provides snapshots of reachability state.

On multi-network systems, [Snapshot](https://fuchsia.dev/reference/fidl/fuchsia.net.reachability#Snapshot) reflects the reachability and
validation state of the system's active default network, through which
ambient, unbound network traffic is routed. Applications requiring
visibility into specific or non-default networks should use
`fuchsia.net.policy.properties/Networks`.

<br />

### SetOptions

Controls verbosity of results returned from calls to [Watch](https://fuchsia.dev/reference/fidl/fuchsia.net.reachability#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](https://fuchsia.dev/reference/fidl/fuchsia.net.reachability#Watch) have already been
invoked will result in closing the channel. If this method is not
called before calling [Watch](https://fuchsia.dev/reference/fidl/fuchsia.net.reachability#Watch), [Snapshot](https://fuchsia.dev/reference/fidl/fuchsia.net.reachability#Snapshot) responses will not be
modified.

#### Request

| Name | Type |
|---|---|
| `payload` | `https://fuchsia.dev/reference/fidl/fuchsia.net.reachability#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` | `https://fuchsia.dev/reference/fidl/fuchsia.net.reachability#Snapshot` |

## **TABLES**

### MonitorOptions

*Defined in [fuchsia.net.reachability/reachability.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.net.reachability/reachability.fidl;l=27)*

| Ordinal | Field | Type | Description |
|---|---|---|---|

### Snapshot

*Defined in [fuchsia.net.reachability/reachability.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.net.reachability/reachability.fidl;l=50)*

Information about network configuration and apparent reachability status
of external networks.

<br />

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