v23proxy: fix struct offset allocation

The previous implementation worked fine in one direction, but did
not properly account for value order in the other.

This adds a shared method that computes the mapping between vdl
and mojo struct field position.

Change-Id: Icc83b5115dddb535203002092950a44d57e23927
9 files changed
tree: ef38cd2e6c6171c7e0bad0a9528f8d721507016a
  1. dart-examples/
  2. go/
  3. lib/
  4. mojom/
  5. .gitignore
  6. AUTHORS
  7. CONTRIBUTING.md
  8. CONTRIBUTORS
  9. LICENSE
  10. Makefile
  11. PATENTS
  12. pubspec.yaml
  13. README.md
  14. VERSION
README.md

Mojo + v23 RPCs

This repository implements the proposal outlined here that enables communication between Mojo applications on different devices.

Quick start

  • For desktop: make build
  • For android: ANDROID=1 make build

The commands above build the .mojo shared library that can be run by mojo shells. For example:

  • make start-v23proxy
  • HOME=/tmp make ARGS="{see Makefile}" start-echo-client

You can also run these with Android devices. Use an ANDROID={N} prefix to run on the Nth Android device connected to your machine. N must be a positive integer.

Note: To run these examples, the devices used must run mojo_shell on the same local network.