template <>
class WireServer
Defined at line 3736 of file fidling/gen/sdk/fidl/fuchsia.net.tun/fuchsia.net.tun/cpp/fidl/fuchsia.net.tun/cpp/wire_messaging.h
Pure-virtual interface to be implemented by a server.
This interface uses typed channels (i.e. |::fidl::ClientEnd
<
::fuchsia_net_tun::Control>|
and |::fidl::ServerEnd
<
::fuchsia_net_tun::Control>|).
Public Methods
void CreateDevice (::fuchsia_net_tun::wire::ControlCreateDeviceRequest * request, CreateDeviceCompleter::Sync & completer)
Creates a `Device` with given `config`.
+ request `config` new device configuration.
+ request `device` grants control over the device. Closed with an
epitaph if `config` is not valid.
void CreatePair (::fuchsia_net_tun::wire::ControlCreatePairRequest * request, CreatePairCompleter::Sync & completer)
Creates a `DevicePair` with given `config`.
If `config` is not valid or the device could not be created,
`device_pair` is closed with an error epitaph.
+ request `config` new device pair configuration.
+ request `device_pair` grants control over the device pair. Closed with
an epitaph if `config` is not valid.
void WireServer ()
Defined at line 3739 of file fidling/gen/sdk/fidl/fuchsia.net.tun/fuchsia.net.tun/cpp/fidl/fuchsia.net.tun/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 3740 of file fidling/gen/sdk/fidl/fuchsia.net.tun/fuchsia.net.tun/cpp/fidl/fuchsia.net.tun/cpp/wire_messaging.h