diff options
| author | jmc <> | 2005-01-07 10:07:35 +0000 |
|---|---|---|
| committer | jmc <> | 2005-01-07 10:07:35 +0000 |
| commit | ecfb1dd83289a255825e920ccec323a045c2e644 (patch) | |
| tree | 98c7d4434f48c1fc2e849d502ad3880387b4fceb /src | |
| parent | 9d1791545b9c598f3b47144dc3b143b06121c6aa (diff) | |
| download | openbsd-ecfb1dd83289a255825e920ccec323a045c2e644.tar.gz openbsd-ecfb1dd83289a255825e920ccec323a045c2e644.tar.bz2 openbsd-ecfb1dd83289a255825e920ccec323a045c2e644.zip | |
- better documenting of `host' and `port[s]'
- note that -l ignores timeouts
Diffstat (limited to 'src')
| -rw-r--r-- | src/usr.bin/nc/nc.1 | 29 |
1 files changed, 25 insertions, 4 deletions
diff --git a/src/usr.bin/nc/nc.1 b/src/usr.bin/nc/nc.1 index 02d536bddb..8379cdcffd 100644 --- a/src/usr.bin/nc/nc.1 +++ b/src/usr.bin/nc/nc.1 | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | .\" $OpenBSD: nc.1,v 1.34 2004/12/31 15:23:31 jmc Exp $ | 1 | .\" $OpenBSD: nc.1,v 1.35 2005/01/07 10:07:35 jmc Exp $ |
| 2 | .\" | 2 | .\" |
| 3 | .\" Copyright (c) 1996 David Sacerdote | 3 | .\" Copyright (c) 1996 David Sacerdote |
| 4 | .\" All rights reserved. | 4 | .\" All rights reserved. |
| @@ -65,9 +65,6 @@ of sending them to standard output, as | |||
| 65 | .Xr telnet 1 | 65 | .Xr telnet 1 |
| 66 | does with some. | 66 | does with some. |
| 67 | .Pp | 67 | .Pp |
| 68 | Destination ports can be single integers or ranges. | ||
| 69 | Ranges are in the form nn-mm. | ||
| 70 | .Pp | ||
| 71 | Common uses include: | 68 | Common uses include: |
| 72 | .Pp | 69 | .Pp |
| 73 | .Bl -bullet -offset indent -compact | 70 | .Bl -bullet -offset indent -compact |
| @@ -124,6 +121,9 @@ It is an error to use this option in conjunction with the | |||
| 124 | or | 121 | or |
| 125 | .Fl z | 122 | .Fl z |
| 126 | options. | 123 | options. |
| 124 | Additionally, the | ||
| 125 | .Fl w | ||
| 126 | option is ignored. | ||
| 127 | .It Fl n | 127 | .It Fl n |
| 128 | Do not do any DNS or service lookups on any specified addresses, | 128 | Do not do any DNS or service lookups on any specified addresses, |
| 129 | hostnames or ports. | 129 | hostnames or ports. |
| @@ -211,6 +211,27 @@ It is an error to use this option in conjunction with the | |||
| 211 | .Fl l | 211 | .Fl l |
| 212 | option. | 212 | option. |
| 213 | .El | 213 | .El |
| 214 | .Pp | ||
| 215 | .Ar hostname | ||
| 216 | can be a numerical IP address or a symbolic hostname | ||
| 217 | (unless the | ||
| 218 | .Fl n | ||
| 219 | option is given). | ||
| 220 | In general, a hostname must be specified, | ||
| 221 | unless the | ||
| 222 | .Fl l | ||
| 223 | option is given | ||
| 224 | (in which case the local host is used). | ||
| 225 | .Pp | ||
| 226 | .Ar port Ns Op Ar s | ||
| 227 | can be single integers or ranges. | ||
| 228 | Ranges are in the form nn-mm. | ||
| 229 | In general, | ||
| 230 | a destination port must be specified, | ||
| 231 | unless the | ||
| 232 | .Fl U | ||
| 233 | option is given | ||
| 234 | (in which case a socket must be specified). | ||
| 214 | .Sh CLIENT/SERVER MODEL | 235 | .Sh CLIENT/SERVER MODEL |
| 215 | It is quite simple to build a very basic client/server model using | 236 | It is quite simple to build a very basic client/server model using |
| 216 | .Nm . | 237 | .Nm . |
