From c9aa98e59599812f9b9d33ed62bb9b34b1c61d01 Mon Sep 17 00:00:00 2001 From: Simon Beginn Date: Mon, 7 Dec 2020 14:11:10 +0100 Subject: [PATCH] Started to convert html to markdown --- docs/Usage.md | 157 ++++++-------------------------------------------- 1 file changed, 19 insertions(+), 138 deletions(-) diff --git a/docs/Usage.md b/docs/Usage.md index 6403dbd..7e27ba9 100644 --- a/docs/Usage.md +++ b/docs/Usage.md @@ -94,48 +94,14 @@ Mon, 12 Jun 2017 22:09:00 INFO HWID: 58C4F4E53AE14224 ``` You can also enable other suboptions of `-F` doing what is reported in the following table: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
commandpretty msglogging msglogfile
-F <logfile>
ONOFFON
-F STDOUT
OFFONOFF
-F FILESTDOUT <logfile>
OFFONON
-F STDOUTOFF <logfile>
OFFOFFON
-F FILEOFF
ONOFFOFF
+ +| command | pretty msg | logging msg | logfile | +| --- | --- | --- | --- | +| `-F ` | ON | OFF | ON | +| `-F STDOUT` | OFF | ON | OFF | +| `-F FILESTDOUT ` | OFF | ON | ON | +| `-F STDOUTOFF ` | OFF | OFF | ON | +| `-F FILEOFF` | ON | OFF | OFF | -S or --logsize > Use this flag to set a maximum size (in MB) to the output log file. Deactivated by default. @@ -158,102 +124,17 @@ If placed just after `connect` refers to the main address and all additive coupl If used it refers to all addresses (main and additional). Deactivated by default. examples (with fictitious addresses and ports): - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
commandaddress (main)backlog (main)reuse port (main)address (listen)backlog (listen)reuse port (listen)dualstack (main / listen)
python3 pykms_Server.py connect -b 12
('0.0.0.0', 1688)12True[][][]False
python3 pykms_Server.py :: connect -b 12 -u -d
('::', 1688)12False[][][]True
python3 pykms_Server.py connect -n 1.1.1.1,1699 -b 10
('0.0.0.0', 1688)5True[('1.1.1.1', 1699)][10][True]False
python3 pykms_Server.py :: 1655 connect -n 2001:db8:0:200::7,1699 -d -b 10 -n 2.2.2.2,1677 -u
('::', 1655)5True[('2001:db8:0:200::7', 1699), ('2.2.2.2', 1677)][10, 5][True, False]True
python3 pykms_Server.py connect -b 12 -u -n 1.1.1.1,1699 -b 10 -n 2.2.2.2,1677 -b 15
('0.0.0.0', 1688)12False[('1.1.1.1', 1699), ('2.2.2.2', 1677)][10, 15][False, False]False
python3 pykms_Server.py connect -b 12 -n 1.1.1.1,1699 -u -n 2.2.2.2,1677
('0.0.0.0', 1688)12True[('1.1.1.1', 1699), ('2.2.2.2', 1677)][12, 12][False, True]False
python3 pykms_Server.py connect -d -u -b 8 -n 1.1.1.1,1699 -n 2.2.2.2,1677 -b 12
('0.0.0.0', 1688)8False[('1.1.1.1', 1699), ('2.2.2.2', 1677)][8, 12][False, False]True
python3 pykms_Server.py connect -b 11 -u -n ::,1699 -n 2.2.2.2,1677
('0.0.0.0', 1688)11False[('::', 1699), ('2.2.2.2', 1677)][11, 11][False, False]False
+ +| command | address (main) | backlog (main) | reuse port (main) | address (listen) | backlog (listen) | reuse port (listen) | dualstack (main / listen) | +| --- | --- | --- | --- | --- | --- | --- | --- | +| `python3 pykms_Server.py connect -b 12` | ('0.0.0.0', 1688) | 12 | True | [] | [] | [] | False | +| `python3 pykms_Server.py :: connect -b 12 -u -d` | ('::', 1688) | 12 | False | [] | [] | [] | True | +| `python3 pykms_Server.py connect -n 1.1.1.1,1699 -b 10` | ('0.0.0.0', 1688) | 5 | True | [('1.1.1.1', 1699)] | [10] | [True] | False | +| `python3 pykms_Server.py :: 1655 connect -n 2001:db8:0:200::7,1699 -d -b 10 -n 2.2.2.2,1677 -u` | ('::', 1655) | 5 | True | [('2001:db8:0:200::7', 1699), ('2.2.2.2', 1677)] | [10, 5] | [True, False] | True | +| `python3 pykms_Server.py connect -b 12 -u -n 1.1.1.1,1699 -b 10 -n 2.2.2.2,1677 -b 15` | ('0.0.0.0', 1688) | 12 | False | [('1.1.1.1', 1699), ('2.2.2.2', 1677)] | [10, 15] | [False, False] | False | +| `python3 pykms_Server.py connect -b 12 -n 1.1.1.1,1699 -u -n 2.2.2.2,1677` | ('0.0.0.0', 1688) | 12 | True | [('1.1.1.1', 1699), ('2.2.2.2', 1677)] | [12, 12] | [False, True] | False | +| `python3 pykms_Server.py connect -d -u -b 8 -n 1.1.1.1,1699 -n 2.2.2.2,1677 -b 12` | ('0.0.0.0', 1688) | 8 | False | [('1.1.1.1', 1699), ('2.2.2.2', 1677)] | [8, 12] | [False, False] | True | +| `python3 pykms_Server.py connect -b 11 -u -n ::,1699 -n 2.2.2.2,1677` | ('0.0.0.0', 1688) | 11 | False | [('::', 1699), ('2.2.2.2', 1677)] | [11, 11] | [False, False] | False | ### pykms_Client.py If _py-kms_ server doesn't works correctly, you can test it with the KMS client `pykms_Client.py`, running on the same machine where you started `pykms_Server.py`.