template <>
class WireServer
Defined at line 2520 of file fidling/gen/sdk/fidl/fuchsia.hardware.network/fuchsia.hardware.network/cpp/fidl/fuchsia.hardware.network/cpp/wire_messaging.h
Pure-virtual interface to be implemented by a server.
This interface uses typed channels (i.e. |::fidl::ClientEnd
<
::fuchsia_hardware_network::StatusWatcher>|
and |::fidl::ServerEnd
<
::fuchsia_hardware_network::StatusWatcher>|).
Public Methods
void WatchStatus (WatchStatusCompleter::Sync & completer)
`WatchStatus` blocks until the port's status has changed.
The first call to `WatchStatus` returns immediately with the current
port status, subsequent calls complete when the port status differs from
the last one that was returned through this `StatusWatcher`.
If `StatusWatcher` was created with a buffer value larger than 1,
`WatchStatus` may return a queued status change, depending on how many
status changed happened since the last call to `WatchStatus`.
- response `device_status` the most recent port status.
void WireServer ()
Defined at line 2523 of file fidling/gen/sdk/fidl/fuchsia.hardware.network/fuchsia.hardware.network/cpp/fidl/fuchsia.hardware.network/cpp/wire_messaging.h
Handler bind_handler (async_dispatcher_t * dispatcher)
|bind_handler| returns a handler that binds incoming connections to this
server implementation.
The returned handler borrows the server instance.
The server must outlive the provided |dispatcher|. Only after
the dispatcher is shutdown will it be safe to destroy the servers.
The server should not be moved.
void ~WireServer ()
Defined at line 2524 of file fidling/gen/sdk/fidl/fuchsia.hardware.network/fuchsia.hardware.network/cpp/fidl/fuchsia.hardware.network/cpp/wire_messaging.h