add the listen1 command.
authorRonald G. Minnich <rminnich@google.com>
Tue, 17 Jun 2014 22:22:21 +0000 (15:22 -0700)
committerRonald G. Minnich <rminnich@google.com>
Tue, 17 Jun 2014 22:22:21 +0000 (15:22 -0700)
commit86425c1607d1f6d8956cc5d3b0007cb88776d4b1
treee8c219adabd6ab26e3e4a4893e53d16bb874e914
parentf4581996b3b67642d9120b4ffe2b8386430fb6f6
add the listen1 command.

To use this command, e.g.
listen1 tcp!*!23 /bin/ash

Listens on port 23. The best thing we've found to talk to
it is netcat.

To make it available to localhost at 5555
qemu ... \
-net user,hostfwd=tcp::5555-:23 \

to talk to it:
netcat localhost 5555

Signed-off-by: Ronald G. Minnich <rminnich@google.com>
Signed-off-by: Ronald G. Minnich <rminnich@google.com>
scripts/plan9user/FIX
tests/listen1.c [new file with mode: 0644]