From 0d17c6a7f6bb982804d629d297cde2df23ff111b Mon Sep 17 00:00:00 2001 From: jmc <> Date: Fri, 5 Sep 2003 16:54:07 +0000 Subject: document -w timeout; from cedric@ ok deraadt@ --- src/usr.bin/nc/nc.1 | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/src/usr.bin/nc/nc.1 b/src/usr.bin/nc/nc.1 index f9a75e1506..29f506945c 100644 --- a/src/usr.bin/nc/nc.1 +++ b/src/usr.bin/nc/nc.1 @@ -1,4 +1,4 @@ -.\" $OpenBSD: nc.1,v 1.25 2003/08/08 10:13:33 jmc Exp $ +.\" $OpenBSD: nc.1,v 1.26 2003/09/05 16:54:07 jmc Exp $ .\" .\" Copyright (c) 1996 David Sacerdote .\" All rights reserved. @@ -129,6 +129,20 @@ Use UDP instead of the default option of TCP. Have .Nm give more verbose output. +.It Fl w Ar timeout +If a connection and stdin are idle for more than +.Ar timeout +seconds, then the connection is silently closed. +The +.Fl w +flag has no effect on the +.Fl l +option, i.e.\& +.Nm +will listen forever for a connection, with or without the +.Fl w +flag. +The default is no timeout. .It Fl x Ar proxy address Op :port Requests that .Nm -- cgit v1.2.3-55-g6feb