commit | 270ead44443ce43058a890864e59642075feb686 | [log] [tgz] |
---|---|---|
author | Todd Wang <toddw@google.com> | Thu Feb 25 11:40:39 2016 -0800 |
committer | Todd Wang <toddw@google.com> | Thu Feb 25 11:40:39 2016 -0800 |
tree | a230540c7ea980cbd09befd909e1c3b8b622c037 | |
parent | 0a98d54564a25d7cb03e83a9f3ec386164c9f79b [diff] |
mojo.v23proxy: Replace RawBytesTarget hacks with vdl.Targeter The previous RawBytesTarget{Func,Hack} hacks were meant to support making and filling a vdl.Target from vom.RawBytes directly. This CL makes this mechanism more general-purpose and slightly less hacky. We introduce a new vdl.Targeter interface with {Make,Fill}VDLTarget methods, which make and fill a vdl.Target respectively. These methods are implemented by vom.RawBytes, and in the future will be implemented by user-defined types via vdl code generation. The HackGetRv() method hasn't been removed yet; that will be removed in a subsequent change. MultiPart: 2/2 Change-Id: I03294499f67268a05d4a178b4849d6d4e9145279
This repository implements the proposal outlined here that enables communication between Mojo applications on different devices.
You must have the jiri
tool installed with the base
and mojo
v23-profiles.
To update v23proxy to the latest version of mojo, you will need to also have the mojo-dev
profile.
You must always make build
first. (The Makefile is not very good currently.)
make build
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.
Prefix all commands with USE_MOJO_DEV_PROFILE=1
in order to run with the mojo-dev
profile instead of mojo
.