Utilities/nc: Add support to -I/--length option like SO_RCVBUF

This commit is contained in:
dayarthvader 2022-02-18 06:34:31 +02:00 committed by Andreas Kling
commit 5a94402b60
Notes: sideshowbarker 2024-07-19 17:08:34 +09:00
2 changed files with 26 additions and 3 deletions

View file

@ -5,7 +5,7 @@ nc
## Synopsis
```sh
$ nc [--listen] [--verbose] [--udp] [-N] <target> <port>
$ nc [--listen] [--verbose] [--udp] [-N] [--length ] <target> <port>
```
## Description
@ -20,6 +20,7 @@ Network cat: Connect to network sockets as if it were a file.
* `-v`, `--verbose`: Log everything that's happening
* `-u`, `--udp`: UDP mode
* `-N`: Close connection after reading stdin to the end
* `-I`, `--length`: Set maximum tcp receive buffer size
## Arguments: