# TCP bench

This unit plays with [com/tcp].

## Example setup for a HP Mini

needs drv/nic/rtl8169 bench/tcp
rtl8169pci$
rtl8169 makeactive
$c0a8002a to selfaddr \ 192.168.0.42
net$
tcpecho \ press any key to stop

## API

tcpecho ( -- )
  Launch a [lib/coop] app listening to IP4TCPRECV [com/tcp], opening a new
  connection on any port, printing when it does so.

  Then, whenever one of the TCP connections it opens receives data, it echoes
  back the same data to the same connection as well as echoing it to the
  console.

  On any key press, it quits.

