Loading...
Searching...
No Matches

A type used to retain state spanning across a single or multiple message exchanges. More...

Detailed Description

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.

Definition at line 199 of file state.h.

#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.
 

Field Documentation

◆ endpoint

unicoap_endpoint_t unicoap_memo_t::endpoint

The remote CoAP endpoint unicoap maintains an exchange with (client/server) or stores messaging state for.

Definition at line 234 of file state.h.

◆ [struct]

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]

union { ... } unicoap_memo_t::messaging

Messaging state.

Note
There's no union for the underlying pointer type as drivers are allowed to keep their data structures private. This design avoids the need to expose every driver data structure.

◆ state

void* unicoap_memo_t::state

Messaging state.

Definition at line 226 of file state.h.

◆ timeout

unicoap_scheduled_event_t unicoap_memo_t::timeout

Timeout.

Definition at line 210 of file state.h.


The documentation for this struct was generated from the following file: