libcoap  4.1.1
 All Data Structures Files Functions Variables Typedefs Macros Groups Pages
Data Fields
coap_context_t Struct Reference

The CoAP stack's global state is stored in a coap_context_t object. More...

#include <net.h>

Data Fields

coap_opt_filter_t known_options
 
struct coap_resource_tresources
 hash table or list of known resources More...
 
struct coap_async_state_tasync_state
 list of asynchronous transactions More...
 
coap_tick_t sendqueue_basetime
 The time stamp in the first element of the sendqeue is relative to sendqueue_basetime. More...
 
coap_queue_tsendqueue
 
coap_queue_trecvqueue
 
unsigned short message_id
 The last message id that was used is stored in this field. More...
 
unsigned int observe
 The next value to be used for Observe. More...
 
coap_response_handler_t response_handler
 

Detailed Description

The CoAP stack's global state is stored in a coap_context_t object.

Definition at line 97 of file net.h.

Field Documentation

struct coap_async_state_t* coap_context_t::async_state

list of asynchronous transactions

Definition at line 104 of file net.h.

coap_opt_filter_t coap_context_t::known_options

Definition at line 98 of file net.h.

unsigned short coap_context_t::message_id

The last message id that was used is stored in this field.

The initial value is set by coap_new_context() and is usually a random value. A new message id can be created with coap_new_message_id().

Definition at line 135 of file net.h.

unsigned int coap_context_t::observe

The next value to be used for Observe.

This field is global for all resources and will be updated when notifications are created.

Definition at line 141 of file net.h.

coap_queue_t * coap_context_t::recvqueue

Definition at line 110 of file net.h.

struct coap_resource_t* coap_context_t::resources

hash table or list of known resources

Definition at line 100 of file net.h.

coap_response_handler_t coap_context_t::response_handler

Definition at line 143 of file net.h.

coap_queue_t* coap_context_t::sendqueue

Definition at line 110 of file net.h.

coap_tick_t coap_context_t::sendqueue_basetime

The time stamp in the first element of the sendqeue is relative to sendqueue_basetime.

Definition at line 109 of file net.h.


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