[BACK]Return to nc.1 CVS log [TXT][DIR] Up to [local] / src / usr.bin / nc

Diff for /src/usr.bin/nc/nc.1 between version 1.36 and 1.37

version 1.36, 2005/01/07 10:11:31 version 1.37, 2005/02/21 10:56:22
Line 351 
Line 351 
 220 host.example.com IMS SMTP Receiver Version 0.84 Ready  220 host.example.com IMS SMTP Receiver Version 0.84 Ready
 .Ed  .Ed
 .Sh EXAMPLES  .Sh EXAMPLES
 Open a TCP connection to port 42 of hostname, using port 31337 as  Open a TCP connection to port 42 of host.example.com, using port 31337 as
 the source port, with a timeout of 5 seconds:  the source port, with a timeout of 5 seconds:
 .Pp  .Pp
 .Dl $ nc -p 31337 -w 5 hostname 42  .Dl $ nc -p 31337 -w 5 host.example.com 42
 .Pp  .Pp
 Open a UDP connection to port 53 of hostname:  Open a UDP connection to port 53 of host.example.com:
 .Pp  .Pp
 .Dl $ nc -u hostname 53  .Dl $ nc -u host.example.com 53
 .Pp  .Pp
 Open a TCP connection to port 42 of example.host using 10.1.2.3 as the  Open a TCP connection to port 42 of host.example.com using 10.1.2.3 as the
 IP for the local end of the connection:  IP for the local end of the connection:
 .Pp  .Pp
 .Dl $ nc -s 10.1.2.3 example.host 42  .Dl $ nc -s 10.1.2.3 host.example.com 42
 .Pp  .Pp
 Send UDP packets to ports 20-30 of example.host, and report which ones  Send UDP packets to ports 20-30 of host.example.com, and report which ones
 responded with an ICMP packet after three seconds:  responded with an ICMP packet after three seconds:
 .Pp  .Pp
 .Dl $ nc -uvz -w 3 hostname 20-30  .Dl $ nc -uvz -w 3 host.example.com 20-30
 .Pp  .Pp
 Create and listen on a Unix Domain Socket:  Create and listen on a Unix Domain Socket:
 .Pp  .Pp
 .Dl $ nc -lU /var/tmp/dsocket  .Dl $ nc -lU /var/tmp/dsocket
 .Pp  .Pp
 Connect to port 42 of hostname via an HTTP proxy at 10.2.3.4, port 8080:  Connect to port 42 of host.example.com via an HTTP proxy at 10.2.3.4,
   port 8080:
 .Pp  .Pp
 .Dl $ nc -x10.2.3.4:8080 -Xconnect hostname 42  .Dl $ nc -x10.2.3.4:8080 -Xconnect host.example.com 42
 .Sh SEE ALSO  .Sh SEE ALSO
 .Xr cat 1  .Xr cat 1
 .Sh AUTHORS  .Sh AUTHORS

Legend:
Removed from v.1.36  
changed lines
  Added in v.1.37