tree: 5eca8f87a874ee4fefd40d40a109c2babf1b1825 [path history] [tgz]
  1. BUILD.gn
  2. OWNERS
  3. README.md
  4. meta/
  5. src/
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 core.x64 --with //garnet/examples/tcp/tcp_file_sender
$ fx 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