From 29266f4987fe104c245d4d4b2afd44430ee15d56 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Mon, 3 Dec 2007 18:53:00 -0600 Subject: Add first pass at netcat. Base applet, -f, and -w implemented. --- toys/Config.in | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) (limited to 'toys/Config.in') diff --git a/toys/Config.in b/toys/Config.in index 7c75d255..a53c11f1 100644 --- a/toys/Config.in +++ b/toys/Config.in @@ -226,7 +226,27 @@ config MKFIFO Makes a named pipe at name. -m mode The mode of the pipe(s) created by mkfifo. It defaults to 0644. - The format is in octal, optionally preceded by a leading zero. + The format is in octal, optionally preceded by a leading zero. + +config NETCAT + bool "netcat" + default y + help + usage: netcat [-iwlp] {IPADDR PORTNUM|-f FILENAME} [-e COMMAND] + + -e exec the rest of the command line + -i SECONDS delay after each line sent + -w SECONDS timeout for connection + -f filename use file (ala /dev/ttyS0) instead of network + -l listen for incoming connection (twice for persistent connection) + -p local port number + -s local source address + -q SECONDS quit this many seconds after EOF on stdin. + + Use -l twice with -e for a quick-and-dirty server. + + Use "stty 115200 -F /dev/ttyS0 && stty raw -echo -ctlecho" with + netcat -f to connect to a serial port. config ONEIT bool "oneit" -- cgit v1.2.3