tree: 4ff72f950ef138ed6f70a460131f706972f8444d [path history] [tgz]
  1. BUILD.gn
  2. client.cc
  3. client.h
  4. client_server_test.cc
  5. command_line_options.cc
  6. command_line_options.h
  7. common.h
  8. main.cc
  9. README.md
  10. server.cc
  11. server.h
  12. test_shared.cc
  13. test_shared.h
  14. wire_format.cc
  15. wire_format.h
  16. 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.