template <>
class WireServer
Defined at line 5117 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::Device>|
and |::fidl::ServerEnd
<
::fuchsia_hardware_network::Device>|).
Public Methods
void GetInfo (GetInfoCompleter::Sync & completer)
Obtain information about device
- response `info` device information.
void OpenSession (::fuchsia_hardware_network::wire::DeviceOpenSessionRequest * request, OpenSessionCompleter::Sync & completer)
Opens a new session with the network device.
+ request `session_name` is used as a debugging label attached to this
session.
+ request `session_info` contains the necessary information to setup the
session's data exchange.
- response `session` a handle to control the session.
- response `fifos` data-plane FIFOs attached to the session.
* error `ZX_ERR_NOT_SUPPORTED` if `session_info` contains not supported
frame types or descriptors set up.
* error `ZX_ERR_INVALID_ARGS` if `session_info` is missing fields or
contains invalid information.
* error `ZX_ERR_INTERNAL` if the data VMO is rejected by the underlying
device.
void GetPort (::fuchsia_hardware_network::wire::DeviceGetPortRequest * request, GetPortCompleter::Sync & completer)
Connects to a port the given `id`.
+ request `id` port to connect to.
+ request `port` server end of port channel.
`port` is closed with a `ZX_ERR_NOT_FOUND` epitaph if no port with `id`
exists.
void GetPortWatcher (::fuchsia_hardware_network::wire::DeviceGetPortWatcherRequest * request, GetPortWatcherCompleter::Sync & completer)
Connects a [`PortWatcher`] to this device.
+ request `watcher` server end of watcher channel.
void Clone (::fuchsia_hardware_network::wire::DeviceCloneRequest * request, CloneCompleter::Sync & completer)
Establishes a new connection to this device.
+ request `device` the server end for the new connection.
void WireServer ()
Defined at line 5120 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 5121 of file fidling/gen/sdk/fidl/fuchsia.hardware.network/fuchsia.hardware.network/cpp/fidl/fuchsia.hardware.network/cpp/wire_messaging.h