diff options
author | ericj <> | 2002-02-17 03:03:06 +0000 |
---|---|---|
committer | ericj <> | 2002-02-17 03:03:06 +0000 |
commit | 8826d7883ec6326a3a6b98ef8edf16a2ff71670d (patch) | |
tree | b6564616b7785e681830ec49eaeaaaf8fa48f686 /src/usr.bin/nc/nc.1 | |
parent | 131f4764acf303e6e9d5eec5ddf32eb4009cc255 (diff) | |
download | openbsd-8826d7883ec6326a3a6b98ef8edf16a2ff71670d.tar.gz openbsd-8826d7883ec6326a3a6b98ef8edf16a2ff71670d.tar.bz2 openbsd-8826d7883ec6326a3a6b98ef8edf16a2ff71670d.zip |
add support for connecting too and listening on AF_UNIX sockets.
connect support from dave@arbor.net.. rest by me
Diffstat (limited to 'src/usr.bin/nc/nc.1')
-rw-r--r-- | src/usr.bin/nc/nc.1 | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/usr.bin/nc/nc.1 b/src/usr.bin/nc/nc.1 index 3025e99c4b..721a2c4896 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.19 2001/09/02 18:45:41 jakob Exp $ | 1 | .\" $OpenBSD: nc.1,v 1.20 2002/02/17 03:03:06 ericj Exp $ |
2 | .\" | 2 | .\" |
3 | .\" Copyright (c) 1996 David Sacerdote | 3 | .\" Copyright (c) 1996 David Sacerdote |
4 | .\" All rights reserved. | 4 | .\" All rights reserved. |
@@ -33,7 +33,7 @@ | |||
33 | .Nd "arbitrary TCP and UDP connections and listens" | 33 | .Nd "arbitrary TCP and UDP connections and listens" |
34 | .Sh SYNOPSIS | 34 | .Sh SYNOPSIS |
35 | .Nm nc | 35 | .Nm nc |
36 | .Op Fl 46hklnrtuvz | 36 | .Op Fl 46hklnrtuvzU |
37 | .Op Fl i Ar interval | 37 | .Op Fl i Ar interval |
38 | .Op Fl p Ar source port | 38 | .Op Fl p Ar source port |
39 | .Op Fl s Ar source ip address | 39 | .Op Fl s Ar source ip address |
@@ -139,6 +139,8 @@ If port is not specified, port 1080 is used. | |||
139 | Specifies that | 139 | Specifies that |
140 | .Nm | 140 | .Nm |
141 | should just scan for listening daemons, without sending any data to them. | 141 | should just scan for listening daemons, without sending any data to them. |
142 | .It Fl U | ||
143 | Specifies to use Unix Domain Sockets. | ||
142 | .El | 144 | .El |
143 | .Sh EXAMPLES | 145 | .Sh EXAMPLES |
144 | .Bl -tag -width x | 146 | .Bl -tag -width x |
@@ -176,6 +178,10 @@ the remote host, and send data from the remote host to stdout. | |||
176 | Connect to port 1000 of hostname, send the string "foobar" | 178 | Connect to port 1000 of hostname, send the string "foobar" |
177 | followed by a newline, and move data from port 1000 of hostname to | 179 | followed by a newline, and move data from port 1000 of hostname to |
178 | stdout until hostname closes the connection. | 180 | stdout until hostname closes the connection. |
181 | .It Li "nc -U /var/tmp/dsocket" | ||
182 | Connect to a Unix Domain Socket. | ||
183 | .It Li "nc -lU /var/tmp/dsocket" | ||
184 | Create and listen on a Unix Domain Socket. | ||
179 | .El | 185 | .El |
180 | .Sh SEE ALSO | 186 | .Sh SEE ALSO |
181 | .Xr cat 1 , | 187 | .Xr cat 1 , |