diff options
author | Rob Landley <rob@landley.net> | 2007-12-03 18:53:00 -0600 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2007-12-03 18:53:00 -0600 |
commit | 29266f4987fe104c245d4d4b2afd44430ee15d56 (patch) | |
tree | a6f7473317f56a5bea482a5e11b5a4b1ed319847 /toys/Config.in | |
parent | 7abb976bac52e95820a629b2569e2c30aa8dd8d4 (diff) | |
download | toybox-29266f4987fe104c245d4d4b2afd44430ee15d56.tar.gz |
Add first pass at netcat. Base applet, -f, and -w implemented.
Diffstat (limited to 'toys/Config.in')
-rw-r--r-- | toys/Config.in | 22 |
1 files changed, 21 insertions, 1 deletions
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" |