libcoap 4.3.3
|
CoAP session internal information. More...
Go to the source code of this file.
Data Structures | |
struct | coap_addr_hash_t |
Only used for servers for hashing incoming packets. More... | |
struct | coap_session_t |
Abstraction of virtual session that can be attached to coap_context_t (client) or coap_endpoint_t (server). More... | |
struct | coap_endpoint_t |
Abstraction of virtual endpoint that can be attached to coap_context_t. More... | |
Macros | |
#define | COAP_DEFAULT_SESSION_TIMEOUT 300 |
#define | COAP_PARTIAL_SESSION_TIMEOUT_TICKS (30 * COAP_TICKS_PER_SECOND) |
#define | COAP_DEFAULT_MAX_HANDSHAKE_SESSIONS 100 |
#define | COAP_SESSION_REF(s) ((s)->ref |
#define | COAP_ACK_TIMEOUT(s) ((s)->ack_timeout) |
#define | COAP_ACK_RANDOM_FACTOR(s) ((s)->ack_random_factor) |
#define | COAP_MAX_RETRANSMIT(s) ((s)->max_retransmit) |
#define | COAP_NSTART(s) ((s)->nstart) |
#define | COAP_DEFAULT_LEISURE(s) ((s)->default_leisure) |
#define | COAP_PROBING_RATE(s) ((s)->probing_rate) |
#define | COAP_MAX_PAYLOADS(s) ((s)->max_payloads) |
#define | COAP_NON_MAX_RETRANSMIT(s) ((s)->non_max_retransmit) |
#define | COAP_NON_TIMEOUT(s) ((s)->non_timeout) |
#define | COAP_NON_TIMEOUT_TICKS(s) |
#define | COAP_NON_RECEIVE_TIMEOUT(s) ((s)->non_receive_timeout) |
#define | COAP_NON_PROBING_WAIT_BASE(s) ((s)->non_probing_wait_base) |
#define | COAP_NON_PARTIAL_TIMEOUT(s) ((s)->non_partial_timeout) |
#define | COAP_DEFAULT_LEISURE_TICKS(s) |
The DEFAULT_LEISURE definition for the session (s). More... | |
#define | COAP_MAX_TRANSMIT_SPAN(s) |
The MAX_TRANSMIT_SPAN definition for the session (s). More... | |
#define | COAP_MAX_TRANSMIT_WAIT(s) |
The MAX_TRANSMIT_WAIT definition for the session (s). More... | |
#define | COAP_MAX_TRANSMIT_WAIT_TICKS(s) (COAP_MAX_TRANSMIT_WAIT(s) * COAP_TICKS_PER_SECOND) |
#define | COAP_PROCESSING_DELAY(s) |
The PROCESSING_DELAY definition for the session (s). More... | |
#define | COAP_MAX_RTT(s) ((2 * COAP_DEFAULT_MAX_LATENCY) + COAP_PROCESSING_DELAY(s)) |
The MAX_RTT definition for the session (s). More... | |
#define | COAP_EXCHANGE_LIFETIME(s) |
The EXCHANGE_LIFETIME definition for the session (s). More... | |
#define | COAP_NON_LIFETIME(s) (COAP_MAX_TRANSMIT_SPAN(s) + COAP_DEFAULT_MAX_LATENCY) |
The NON_LIFETIME definition for the session (s). More... | |
#define | COAP_NON_RECEIVE_TIMEOUT_TICKS(s) |
The NON_RECEIVE_TIMEOUT definition for the session (s). More... | |
#define | COAP_NON_PROBING_WAIT(s) |
The NON_PROBING_WAIT definition for the session (s). More... | |
#define | COAP_NON_PROBING_WAIT_TICKS(s) |
#define | COAP_NON_PARTIAL_TIMEOUT_TICKS(s) |
The NON_PARTIAL_TIMEOUT definition for the session (s). More... | |
#define | COAP_NON_TIMEOUT_RANDOM(s) coap_get_non_timeout_random(s) |
The NON_TIMEOUT_RANDOM definition for the session (s). More... | |
#define | SESSIONS_ADD(e, obj) HASH_ADD(hh, (e), addr_hash, sizeof((obj)->addr_hash), (obj)) |
#define | SESSIONS_DELETE(e, obj) HASH_DELETE(hh, (e), (obj)) |
#define | SESSIONS_ITER(e, el, rtmp) HASH_ITER(hh, (e), el, rtmp) |
#define | SESSIONS_ITER_SAFE(e, el, rtmp) for ((el) = (e); (el) && ((rtmp) = (el)->hh.next, 1); (el) = (rtmp)) |
#define | SESSIONS_FIND(e, k, res) |
Typedefs | |
typedef enum coap_ext_token_check_t | coap_ext_token_check_t |
coap_ext_token_check_t values More... | |
Enumerations | |
enum | COAP_OSCORE_B_2_STEP { COAP_OSCORE_B_2_NONE = 0 , COAP_OSCORE_B_2_STEP_1 , COAP_OSCORE_B_2_STEP_2 , COAP_OSCORE_B_2_STEP_3 , COAP_OSCORE_B_2_STEP_4 , COAP_OSCORE_B_2_STEP_5 } |
enum | coap_ext_token_check_t { COAP_EXT_T_NOT_CHECKED = 0 , COAP_EXT_T_CHECKED , COAP_EXT_T_CHECKING } |
coap_ext_token_check_t values More... | |
CoAP session internal information.
Definition in file coap_session_internal.h.
#define COAP_DEFAULT_MAX_HANDSHAKE_SESSIONS 100 |
Definition at line 27 of file coap_session_internal.h.
#define COAP_DEFAULT_SESSION_TIMEOUT 300 |
Definition at line 25 of file coap_session_internal.h.
#define COAP_PARTIAL_SESSION_TIMEOUT_TICKS (30 * COAP_TICKS_PER_SECOND) |
Definition at line 26 of file coap_session_internal.h.
#define SESSIONS_ADD | ( | e, | |
obj | |||
) | HASH_ADD(hh, (e), addr_hash, sizeof((obj)->addr_hash), (obj)) |
Definition at line 529 of file coap_session_internal.h.
#define SESSIONS_DELETE | ( | e, | |
obj | |||
) | HASH_DELETE(hh, (e), (obj)) |
Definition at line 532 of file coap_session_internal.h.
#define SESSIONS_FIND | ( | e, | |
k, | |||
res | |||
) |
Definition at line 541 of file coap_session_internal.h.
#define SESSIONS_ITER | ( | e, | |
el, | |||
rtmp | |||
) | HASH_ITER(hh, (e), el, rtmp) |
Definition at line 535 of file coap_session_internal.h.
#define SESSIONS_ITER_SAFE | ( | e, | |
el, | |||
rtmp | |||
) | for ((el) = (e); (el) && ((rtmp) = (el)->hh.next, 1); (el) = (rtmp)) |
Definition at line 538 of file coap_session_internal.h.