template <>
class Server
Defined at line 676 of file fidling/gen/sdk/fidl/fuchsia.net.routes/fuchsia.net.routes/cpp/fidl/fuchsia.net.routes/cpp/natural_messaging.h
Public Methods
void Resolve (ResolveRequest & 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 (Resolve2Request & 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 (GetRouteTableNameRequest & 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 Server ()
Defined at line 679 of file fidling/gen/sdk/fidl/fuchsia.net.routes/fuchsia.net.routes/cpp/fidl/fuchsia.net.routes/cpp/natural_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 ~Server ()
Defined at line 680 of file fidling/gen/sdk/fidl/fuchsia.net.routes/fuchsia.net.routes/cpp/fidl/fuchsia.net.routes/cpp/natural_messaging.h