diff options
author | Jason McIntyre <jmc@cvs.openbsd.org> | 2005-01-07 10:07:36 +0000 |
---|---|---|
committer | Jason McIntyre <jmc@cvs.openbsd.org> | 2005-01-07 10:07:36 +0000 |
commit | bfd794262d47c0d5c23daedef62ea955b08c9ce2 (patch) | |
tree | 149aa01f1a0cecdc20a1db251bf8b1133ebaf794 /usr.bin | |
parent | a3b58969e978fb7f35043a686e4b799172ea22c9 (diff) |
- better documenting of `host' and `port[s]'
- note that -l ignores timeouts
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/nc/nc.1 | 29 |
1 files changed, 25 insertions, 4 deletions
diff --git a/usr.bin/nc/nc.1 b/usr.bin/nc/nc.1 index 02d536bddb2..8379cdcffd2 100644 --- a/usr.bin/nc/nc.1 +++ b/usr.bin/nc/nc.1 @@ -1,4 +1,4 @@ -.\" $OpenBSD: nc.1,v 1.34 2004/12/31 15:23:31 jmc Exp $ +.\" $OpenBSD: nc.1,v 1.35 2005/01/07 10:07:35 jmc Exp $ .\" .\" Copyright (c) 1996 David Sacerdote .\" All rights reserved. @@ -65,9 +65,6 @@ of sending them to standard output, as .Xr telnet 1 does with some. .Pp -Destination ports can be single integers or ranges. -Ranges are in the form nn-mm. -.Pp Common uses include: .Pp .Bl -bullet -offset indent -compact @@ -124,6 +121,9 @@ It is an error to use this option in conjunction with the or .Fl z options. +Additionally, the +.Fl w +option is ignored. .It Fl n Do not do any DNS or service lookups on any specified addresses, hostnames or ports. @@ -211,6 +211,27 @@ It is an error to use this option in conjunction with the .Fl l option. .El +.Pp +.Ar hostname +can be a numerical IP address or a symbolic hostname +(unless the +.Fl n +option is given). +In general, a hostname must be specified, +unless the +.Fl l +option is given +(in which case the local host is used). +.Pp +.Ar port Ns Op Ar s +can be single integers or ranges. +Ranges are in the form nn-mm. +In general, +a destination port must be specified, +unless the +.Fl U +option is given +(in which case a socket must be specified). .Sh CLIENT/SERVER MODEL It is quite simple to build a very basic client/server model using .Nm . |