libcoap  4.0.3
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator 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 of known resources
struct coap_async_state_tasync_state
 list of asynchronous transactions
coap_queue_tsendqueue
coap_queue_trecvqueue
int sockfd
 send/receive socket
unsigned short message_id
 The last message id that was used is stored in this field.
unsigned int observe
 The next value to be used for Observe.
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 90 of file net.h.

Field Documentation

struct coap_async_state_t* coap_context_t::async_state

list of asynchronous transactions

Definition at line 97 of file net.h.

coap_opt_filter_t coap_context_t::known_options

Definition at line 91 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 115 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 121 of file net.h.

coap_queue_t * coap_context_t::recvqueue

Definition at line 99 of file net.h.

struct coap_resource_t* coap_context_t::resources

hash table of known resources

Definition at line 93 of file net.h.

coap_response_handler_t coap_context_t::response_handler

Definition at line 123 of file net.h.

coap_queue_t* coap_context_t::sendqueue

Definition at line 99 of file net.h.

int coap_context_t::sockfd

send/receive socket

Definition at line 101 of file net.h.


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