summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjmc <>2005-01-07 10:07:35 +0000
committerjmc <>2005-01-07 10:07:35 +0000
commitecfb1dd83289a255825e920ccec323a045c2e644 (patch)
tree98c7d4434f48c1fc2e849d502ad3880387b4fceb
parent9d1791545b9c598f3b47144dc3b143b06121c6aa (diff)
downloadopenbsd-ecfb1dd83289a255825e920ccec323a045c2e644.tar.gz
openbsd-ecfb1dd83289a255825e920ccec323a045c2e644.tar.bz2
openbsd-ecfb1dd83289a255825e920ccec323a045c2e644.zip
- better documenting of `host' and `port[s]'
- note that -l ignores timeouts
-rw-r--r--src/usr.bin/nc/nc.129
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
66does with some. 66does with some.
67.Pp 67.Pp
68Destination ports can be single integers or ranges.
69Ranges are in the form nn-mm.
70.Pp
71Common uses include: 68Common 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
124or 121or
125.Fl z 122.Fl z
126options. 123options.
124Additionally, the
125.Fl w
126option is ignored.
127.It Fl n 127.It Fl n
128Do not do any DNS or service lookups on any specified addresses, 128Do not do any DNS or service lookups on any specified addresses,
129hostnames or ports. 129hostnames or ports.
@@ -211,6 +211,27 @@ It is an error to use this option in conjunction with the
211.Fl l 211.Fl l
212option. 212option.
213.El 213.El
214.Pp
215.Ar hostname
216can be a numerical IP address or a symbolic hostname
217(unless the
218.Fl n
219option is given).
220In general, a hostname must be specified,
221unless the
222.Fl l
223option is given
224(in which case the local host is used).
225.Pp
226.Ar port Ns Op Ar s
227can be single integers or ranges.
228Ranges are in the form nn-mm.
229In general,
230a destination port must be specified,
231unless the
232.Fl U
233option is given
234(in which case a socket must be specified).
214.Sh CLIENT/SERVER MODEL 235.Sh CLIENT/SERVER MODEL
215It is quite simple to build a very basic client/server model using 236It is quite simple to build a very basic client/server model using
216.Nm . 237.Nm .