template <>

class WireServer

Defined at line 6507 of file fidling/gen/sdk/fidl/fuchsia.net.routes.admin/fuchsia.net.routes.admin/cpp/fidl/fuchsia.net.routes.admin/cpp/wire_messaging.h

Pure-virtual interface to be implemented by a server.

This interface uses typed channels (i.e. |::fidl::ClientEnd

<

::fuchsia_net_routes_admin::RouteTableV6>|

and |::fidl::ServerEnd

<

::fuchsia_net_routes_admin::RouteTableV6>|).

Public Methods

void GetTableId (GetTableIdCompleter::Sync & completer)

Gets the table ID for this table.

void Detach (DetachCompleter::Sync & completer)

Detaches the lifetime of the route table from the lifetime of the

client end of the channel.

After this method is called, the route table will not be removed

if the client end is closed. It's a no-op if called on the main table.

void Remove (RemoveCompleter::Sync & completer)

Removes the route table explicitly.

This method cannot be called on the main table or an interface-local

table, an error will be returned if called. The server will close the

channel after this method successfully returns.

void GetAuthorizationForRouteTable (GetAuthorizationForRouteTableCompleter::Sync & completer)

Gets an authentication credential for this table.

The credential contains a [`zx::handle::EVENT`], whose duplicate is

held by the server. This credential can be passed into

`fuchsia.net.routes.admin` API calls to prove ownership of this route

table. The `EVENT` is stable throughout the lifetime of the route table.

Clients may duplicate this `EVENT` to make multiple API calls, or

transfer the `EVENT` to other clients.

- response `credential` the authorization credential for this table.

void NewRouteSet (::fuchsia_net_routes_admin::wire::RouteTableV6NewRouteSetRequest * request, NewRouteSetCompleter::Sync & completer)

Creates an empty route set.

+ request `route_set` grants access to the [`RouteSetV6`] protocol.

void WireServer ()

Defined at line 6510 of file fidling/gen/sdk/fidl/fuchsia.net.routes.admin/fuchsia.net.routes.admin/cpp/fidl/fuchsia.net.routes.admin/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 6511 of file fidling/gen/sdk/fidl/fuchsia.net.routes.admin/fuchsia.net.routes.admin/cpp/fidl/fuchsia.net.routes.admin/cpp/wire_messaging.h