tree: 8d0ee9841d8fde317df97221210692958a88f1bc [path history] [tgz]
  1. echo_client/
  2. echo_server/
  3. meta/
  4. BUILD.gn
  5. README.md
examples/components/routing_failed/README.md

Failed routing Example

This directory contains an example of failed capability routing in Component Framework (Components v2).

Building

If these components are not present in your build, they can be added by appending --with //examples to your fx set command. For example:

$ fx set core.x64 --with //examples
$ fx build

(Disclaimer: if these build rules become out-of-date, please check the Build documentation and update this README!)

Running

Use ffx component create to create the component instances inside a restricted realm for development purposes:

$ ffx component create /core/ffx-laboratory:echo_realm fuchsia-pkg://fuchsia.com/components-routing-failed-example#meta/echo_realm.cm

Start the client component instance by passing its moniker to ffx component bind:

$ ffx component bind /core/ffx-laboratory:echo_realm/echo_client

To see component manager's log of the failed capability routing, run:

$ fx log