template <>

class Server

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

Public Methods

void AuthenticateForRouteTable (AuthenticateForRouteTableRequest & request, AuthenticateForRouteTableCompleter::Sync & completer)

Authenticates for a route table that will be used in an action.

void RemoveRule (RemoveRuleRequest & request, RemoveRuleCompleter::Sync & completer)

Removes a rule from this rule set.

If the client tries to remove from an index that does not have a rule,

the error `RULE_DOES_NOT_EXIST` will be returned.

+ request `index` the index of the rule.

void Close (CloseCompleter::Sync & completer)

Removes all rules in the rule set and the underlying channel will be

closed after the rules are removed.

This method provides a way for synchronous closure.

void AddRule (AddRuleRequest & request, AddRuleCompleter::Sync & completer)

Adds a rule to this rule set.

If there is already a rule at the provided `index`, `RULE_ALREADY_EXISTS`

is returned.

+ request `index` where to insert the rule.

+ request `matcher` the matcher of the rule.

+ request `action` action of the rule.

void Server ()

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