class ReachabilityWatcher
Defined at line 25 of file ../../src/connectivity/network/lib/net_interfaces/cpp/reachability.h
Reads events from |watcher| and calls |callback| with a boolean network-reachability value iff it
has changed since the previously-reported value (the first value reported will be based on the
first interface existing or added event).
Upon encountering a non-recoverable error, e.g. the watcher FIDL
channel closing or receiving an invalid event from the server, |callback| will be called with
the error, and will never be called again.
Public Methods
void ReachabilityWatcher (fuchsia::net::interfaces::WatcherPtr watcher, ::fit::function<void (fpromise::result<bool, ErrorVariant>)> callback)
Defined at line 33 of file ../../src/connectivity/network/lib/net_interfaces/cpp/reachability.cc
std::string error_get_string (ErrorVariant variant)
static
Defined at line 17 of file ../../src/connectivity/network/lib/net_interfaces/cpp/reachability.cc
Enumerations
enum Error
| Name | Value |
|---|---|
| kChannelClosed | 0 |
Defined at line 27 of file ../../src/connectivity/network/lib/net_interfaces/cpp/reachability.h