A type used to retain state spanning across a single or multiple message exchanges. More...
A type used to retain state spanning across a single or multiple message exchanges.
A memo is the central bucket or bundle carrying an endpoint, exchange, and messaging data. This struct is reused for multiple consecutive request-response pairs, such as those found in a Block-wise exchange.
#include <state.h>
Data Fields | ||
| struct { | ||
| unicoap_scheduled_event_t timeout | ||
| Timeout. More... | ||
| } | exchange | |
| Exchange state. | ||
| union { | ||
| void * state | ||
| Messaging state. More... | ||
| } | messaging | |
| Messaging state. | ||
| unicoap_endpoint_t | endpoint | |
| The remote CoAP endpoint unicoap maintains an exchange with (client/server) or stores messaging state for. | ||
| unicoap_endpoint_t unicoap_memo_t::endpoint |
| struct { ... } unicoap_memo_t::exchange |
Exchange state.
State tracked by the request-response layer, i.e., client requests, block-wise transfers, and deferred responses.
| union { ... } unicoap_memo_t::messaging |
Messaging state.