tree: a4e4a7081c183e203830d88b611638bc2a6eac46 [path history] [tgz]
  1. meta/
  2. src/
  3. BUILD.gn
  4. OWNERS
  5. README.md
garnet/examples/tcp/tcp_file_sender/README.md

TCP file sender

This TCP file sender accepts inbound TCP connections and sends a single file to them before closing.

Build

$ fx set x64 --monolith garnet/packages/examples/tcp
$ fx full-build

Usage

To run the server on the fuchsia device, from fx shell:

run fuchsia-pkg://fuchsia.com/tcp_file_sender#meta/tcp_file_sender.cmx <FILE>

To retrieve the byte stream:

  • nc $(fx netaddr --fuchsia) 80 > out