class PortWatcher
Defined at line 19 of file ../../src/connectivity/network/drivers/network-device/device/port_watcher.h
Public Members
static const size_t kMaximumQueuedEvents
Public Methods
zx_status_t Bind (async_dispatcher_t * dispatcher, cpp20::span<const netdev::wire::PortId> existing_ports, fidl::ServerEnd<netdev::PortWatcher> channel, ClosedCallback closed_callback)
Binds the watcher to |dispatcher| serving on |channel|.
|existing_ports| contains the port identifiers to be included in the watcher's existing ports
list.
|closed_callback| is called when the watcher is closed by the peer or by a call to |Unbind|.
Defined at line 13 of file ../../src/connectivity/network/drivers/network-device/device/port_watcher.cc
void Unbind ()
Unbinds the port watcher if currently bound.
Defined at line 56 of file ../../src/connectivity/network/drivers/network-device/device/port_watcher.cc
void PortAdded (netdev::wire::PortId port_id)
Notifies peer of port addition.
Defined at line 97 of file ../../src/connectivity/network/drivers/network-device/device/port_watcher.cc
void PortRemoved (netdev::wire::PortId port_id)
Notifies peer of port removal.
Defined at line 104 of file ../../src/connectivity/network/drivers/network-device/device/port_watcher.cc
void Watch (WatchCompleter::Sync & completer)
FIDL protocol implementation.
Defined at line 63 of file ../../src/connectivity/network/drivers/network-device/device/port_watcher.cc