From ecfcd37f0cd93208585ce495753f797081588206 Mon Sep 17 00:00:00 2001 From: Jean-Claude Michelou Date: Mon, 6 Aug 2018 22:45:34 +0700 Subject: [PATCH] client: Sort options alphabetically, ping is TCP only. --- examples/client.c | 4 ++-- man/coap-client.txt.in | 10 +++++++--- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/examples/client.c b/examples/client.c index 6ce1fd56..9f842660 100644 --- a/examples/client.c +++ b/examples/client.c @@ -514,7 +514,7 @@ usage( const char *program, const char *version) { "Usage: %s [-a addr] [-b [num,]size] [-c certfile] [-C cafile] [-e text]\n" "\t\t[-f file] [-k key] [-l loss] [-m method] [-o file]\n" "\t\t[-p port] [-r] [-s duration] [-t type] [-u user]\n" - "\t\t[-v num] [-A type] [-B seconds] [-N] [-O num,text] [-K interval]\n" + "\t\t[-v num] [-A type] [-B seconds] [-K interval] [-N] [-O num,text]\n" "\t\t[-P addr[:port]] [-R root_cafile] [-T token] [-U] URI\n\n" "\tURI can be an absolute URI or a URI prefixed with scheme and host\n\n" "\t-a addr\t\tThe local interface address to use\n" @@ -553,7 +553,7 @@ usage( const char *program, const char *version) { "\t \t\tcommand line the same filename for both the certfile and\n" "\t \t\tcafile (as in '-c certfile -C certfile') to trigger\n" "\t \t\tvalidation\n" - "\t-K interval\tsend a ping after interval seconds of inactivity\n" + "\t-K interval\tsend a ping after interval seconds of inactivity (TCP only)\n" "\t-N \t\tSend NON-confirmable message\n" "\t-O num,text\tAdd option num with contents text to request\n" "\t-P addr[:port]\tUse proxy (automatically adds Proxy-Uri option to\n" diff --git a/man/coap-client.txt.in b/man/coap-client.txt.in index 32bf0725..4f14315f 100644 --- a/man/coap-client.txt.in +++ b/man/coap-client.txt.in @@ -17,9 +17,9 @@ SYNOPSIS *coap-client* [*-a* addr] [*-b* [num,]size] [*-c* certfile] [*-e* text] [*-f* file] [*-k* key] [*-l* loss] [*-m* method] [*-o* file] [*-p* port] [*-r*] [*-s* duration] [*-t* type] [*-u* user] - [*-v* num] [*-A* type] [*-B* seconds] [*-C* cafile] [*-N*] - [*-O* num,text] [*-P* addr[:port]] [*-R* root_cafile] - [*-T* token] [*-U*] URI + [*-v* num] [*-A* type] [*-B* seconds] [*-C* cafile] + [*-K* interval] [*-N*] [*-O* num,text] [*-P* addr[:port]] + [*-R* root_cafile] [*-T* token] [*-U*] URI DESCRIPTION ----------- @@ -127,6 +127,10 @@ OPTIONS have on the command line the same filename for both the certfile and cafile (as in *-c certfile -C certfile*) to trigger validation. +*-K* interval:: + Send a ping after interval seconds of inactivity (TCP only). + If not specified, keep-alive is disabled (default). + *-N* :: Send NON-confirmable message. If option *-N* is not specified, a confirmable message will be sent.