template <>
class WireServer
Defined at line 3342 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::DevicePair>|
and |::fidl::ServerEnd
<
::fuchsia_net_tun::DevicePair>|).
Public Methods
void AddPort (::fuchsia_net_tun::wire::DevicePairAddPortRequest * request, AddPortCompleter::Sync & completer)
Adds a logical port to this device pair.
+ request `config` port configuration.
* error `ZX_ERR_INVALID_ARGS` if `config` is invalid.
* error `ZX_ERR_ALREADY_EXISTS` if the provided port identifier is
already in use.
void RemovePort (::fuchsia_net_tun::wire::DevicePairRemovePortRequest * request, RemovePortCompleter::Sync & completer)
Removes a logical port created by
[`fuchsia.net.tun/DevicePair.AddPort`].
+ request `id` identifier of the port to remove.
* error `ZX_ERR_NOT_FOUND` if `id` does not map to an existing port.
void GetLeft (::fuchsia_net_tun::wire::DevicePairGetLeftRequest * request, GetLeftCompleter::Sync & completer)
Connects to the underlying left device endpoint.
+ request `device` handle serve the left device endpoint on.
void GetRight (::fuchsia_net_tun::wire::DevicePairGetRightRequest * request, GetRightCompleter::Sync & completer)
Connects to the underlying right device endpoint.
+ request `device` handle serve the right device endpoint on.
void GetLeftPort (::fuchsia_net_tun::wire::DevicePairGetLeftPortRequest * request, GetLeftPortCompleter::Sync & completer)
Connects to an underlying left port.
+ request `id` requested port identifier.
+ request `port` grants access to the requested port on the left device.
void GetRightPort (::fuchsia_net_tun::wire::DevicePairGetRightPortRequest * request, GetRightPortCompleter::Sync & completer)
Connects to an underlying right port.
+ request `id` requested port identifier.
+ request `port` grants access to the requested port on the right device.
void WireServer ()
Defined at line 3345 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 3346 of file fidling/gen/sdk/fidl/fuchsia.net.tun/fuchsia.net.tun/cpp/fidl/fuchsia.net.tun/cpp/wire_messaging.h