tree: 5e1e2c99c22c49531272f43ebbc6ebf353e8f476 [path history] [tgz]
  1. meta/
  2. BUILD.gn
  3. client.cc
  4. client.h
  5. client_server_test.cc
  6. command_line_options.cc
  7. command_line_options.h
  8. common.h
  9. main.cc
  10. README.md
  11. server.cc
  12. server.h
  13. test_shared.cc
  14. test_shared.h
  15. wire_format.cc
  16. wire_format.h
  17. wire_format_test.cc
src/developer/shell/mirror/README.md

Mirror: keep files in sync between the host and the target.

Overview

It can be useful to copy files back and forth from the host machine to a Fuchsia target. The utility in this directory keeps files in sync between the two.

Host side

To use this on the host side, add

"//src/developer/shell/mirror:sh_mirror_host"

To your build. You can then invoke the server on your host:

host-tools/sh_mirror --path=<path-to-be-mirrored> --port=<port>

It will await connections on the port, and send the contents of path to the client.

Client side

To use this on the client side, include

"//src/developer/shell/mirror:client"

In the target from which you want to call the server.

You can then client.h in your C++ program. See the APIs in that directory for more information.