template <>

class WireServer

Defined at line 5426 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::RuleSetV4>|

and |::fidl::ServerEnd

<

::fuchsia_net_routes_admin::RuleSetV4>|).

Public Methods

void AuthenticateForRouteTable (::fuchsia_net_routes_admin::wire::ProofOfRouteTableAuthorization * request, AuthenticateForRouteTableCompleter::Sync & completer)

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

void RemoveRule (::fuchsia_net_routes_admin::wire::BaseRuleSetRemoveRuleRequest * 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 (::fuchsia_net_routes_admin::wire::RuleSetV4AddRuleRequest * 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 WireServer ()

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