mirror of
https://github.com/obgm/libcoap.git
synced 2026-11-19 14:09:05 +03:00
Update Keepalive support to include unreliable sessions
Add in support for both reliable and unreliable sessions when calling coap_context_set_keepalive(). include/coap2/coap_session.h: Track the last ping mid in coap_session_t. src/coap_io.c: src/coap_session.c: Support both reliable and unreliable sending of pings in coap_write(). src/net.c: Determine whether RST packet response is associated with a CoAP Empty Ping that was sent and handle accordingly. configure.ac: examples/client.c: include/coap2/net.h: man/Makefile.am: man/coap-client.txt.in: man/coap.txt.in: man/coap_handler.txt.in: man/coap_keepalive.txt.in: (New) man/coap_observe.txt.in: Add in a new man page (coap_keepalive). Update documentation to remove references to TCP and reliable only.
This commit is contained in:
1 parent
cfe83f19dc
commit
55aeaa6cc1
13 files changed
+136
-20
No files matched your search
@@ -646,7 +646,6 @@ usage( const char *program, const char *version) {
|
||||
"\t-B seconds\tBreak operation after waiting given seconds\n"
|
||||
"\t \t\t(default is %d)\n"
|
||||
"\t-K interval\tsend a ping after interval seconds of inactivity\n"
|
||||
"\t \t\t(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"
|
||||
|
||||
Reference in new issue
Block a user