template <>

class WireServer

Defined at line 1708 of file fidling/gen/sdk/fidl/fuchsia.net.routes/fuchsia.net.routes/cpp/fidl/fuchsia.net.routes/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::State>|

and |::fidl::ServerEnd

<

::fuchsia_net_routes::State>|).

Public Methods

void Resolve (::fuchsia_net_routes::wire::StateResolveRequest * request, ResolveCompleter::Sync & completer)

Resolves the route to a destination.

+ request `destination` the IP address to resolve a route to. If the

unspecified address (all zeroes) is provided, the default route will

be returned. The variant of `destination` determines variant of

[`fuchsia.net/IpAddress`] fields in the resolved route.

- response `result` contains the resolved route to `destination`.

* error `ZX_ERR_ADDRESS_UNREACHABLE` if `destination` can't be resolved.

void Resolve2 (::fuchsia_net_routes::wire::StateResolve2Request * request, Resolve2Completer::Sync & completer)

Resolves the route to a destination.

+ request `destination` the IP address to resolve a route to. If the

unspecified address (all zeroes) is provided, the default route will

be returned. The variant of `destination` determines variant of

[`fuchsia.net/IpAddress`] fields in the resolved route.

+ request `options` contains optional information used for the route resolution.

- response `result` contains the resolved route to `destination`.

* error `ADDRESS_UNREACHABLE` if `destination` can't be resolved.

void GetRouteTableName (::fuchsia_net_routes::wire::StateGetRouteTableNameRequest * request, GetRouteTableNameCompleter::Sync & completer)

Gets the route table name by its ID.

+ request `table_id` the ID of the route table in question.

- response `table_name` the name of the route table, if the route table

does not have a name, an empty string is returned.

* error `NO_TABLE` if the route table does not exist.

void WireServer ()

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