From ecfb1dd83289a255825e920ccec323a045c2e644 Mon Sep 17 00:00:00 2001 From: jmc <> Date: Fri, 7 Jan 2005 10:07:35 +0000 Subject: - better documenting of `host' and `port[s]' - note that -l ignores timeouts --- src/usr.bin/nc/nc.1 | 29 +++++++++++++++++++++++++---- 1 file 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 @@ -.\" $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 . -- cgit v1.2.3-55-g6feb