Merge pull request #518 from mrdeep1/server_port

coap-server: Clarify -p port usage
This commit is contained in:
obgm authored and GitHub committed 2020-11-12 10:08:05 +01:00
commit 6f5256f3cf
2 files changed
+10 -7

No files matched your search

+3 -1
View File
@@ -1998,7 +1998,9 @@ usage( const char *program, const char *version) {
"\t-l loss%%\tRandomly fail to send datagrams with the specified\n"
"\t \t\tprobability - 100%% all datagrams, 0%% no datagrams\n"
"\t \t\t(for debugging only)\n"
"\t-p port\t\tListen on specified port\n"
"\t-p port\t\tListen on specified port for UDP and TCP. If (D)TLS is\n"
"\t \t\tenabled, then the coap-server will also listen on\n"
"\t \t\t 'port'+1 for DTLS and TLS. The default port is 5683\n"
"\t-v num \t\tVerbosity level (default 3, maximum is 9). Above 7,\n"
"\t \t\tthere is increased verbosity in GnuTLS and OpenSSL logging\n"
"\t-A address\tInterface address to bind to\n"
+7 -6
View File
@@ -171,21 +171,22 @@ EXAMPLES
----
coap-server -A ::1
----
Let the server listen on localhost (port '5683').
Let the server listen on localhost (port '5683') for UDP/TCP.
* Example
----
coap-server -A ::1 -k mysecretKey -h myhint
----
Let the server listen on localhost (port '5683' and '5684') with the server
set up for PSK authentication.
Let the server listen on localhost (port '5683' for UDP/TCP and port '5684' for
DTLS/TLS) with the server set up for PSK authentication if the client uses
coaps:// or coaps+tcp://.
* Example
----
coap-server -A ::1 -p 13011
coap-server -A ::1 -k mysecretKey -h myhint -p 13011
----
The same, except the listening port is '13011' (and not the default port
'5683').
The same, except the UDP/TCP listening port is '13011' and the DTLS/TLS
listening port is '13012' (and not the default ports '5683' and '5684').
* Example
----