mirror of
https://github.com/obgm/libcoap.git
synced 2026-12-03 03:01:05 +03:00
block: Handle separate responses that then are followed with Block2
Set up lg_crcv if separate ACK response received for a coap_send() CON request to be able to handle Block2 responses. Handle Block1 request getting back a Block2 request that has an initial separate response once the Block1 has completed by adjusting the stateless token counter. Separate response is typical for proxy support (OSCORE previously handled)..
This commit is contained in:
1 parent
ea3d1ac17e
commit
0fbe59fc55
3 files changed
+78
-13
No files matched your search
@@ -30,6 +30,10 @@
|
||||
* @{
|
||||
*/
|
||||
|
||||
#define STATE_TOKEN_BASE(t) ((t) & 0xffffffffffffULL)
|
||||
#define STATE_TOKEN_RETRY(t) ((uint64_t)(t) >> 48)
|
||||
#define STATE_TOKEN_FULL(t,r) (STATE_TOKEN_BASE(t) + ((uint64_t)(r) << 48))
|
||||
|
||||
#if COAP_Q_BLOCK_SUPPORT
|
||||
#define COAP_BLOCK_SET_MASK (COAP_BLOCK_USE_LIBCOAP | \
|
||||
COAP_BLOCK_SINGLE_BODY | \
|
||||
|
||||
Reference in new issue
Block a user