17#ifndef COAP_PROXY_INTERNAL_H_
18#define COAP_PROXY_INTERNAL_H_
34typedef struct coap_proxy_cache_t {
43typedef struct coap_proxy_req_t {
44 struct coap_proxy_req_t *next;
50 coap_proxy_cache_t *proxy_cache;
52 unsigned doing_observe;
58 coap_proxy_req_t *proxy_req;
59 coap_proxy_cache_t *rsp_cache;
60 uint8_t *uri_host_keep;
62 int track_client_session;
76 COAP_PROXY_SUBS_TOKEN,
78} coap_proxy_subs_delete_t;
233struct coap_proxy_req_t *coap_proxy_map_outgoing_request(
coap_session_t *ongoing,
250 coap_proxy_req_t *proxy_req,
272 coap_mid_t mid, coap_proxy_subs_delete_t type);
286#define PROXY_CACHE_ADD(e, obj) \
287 HASH_ADD(hh, (e), cache_req, sizeof((obj)->cache_req), (obj))
289#define PROXY_CACHE_DELETE(e, obj) \
290 HASH_DELETE(hh, (e), (obj))
292#define PROXY_CACHE_ITER(e, el, rtmp) \
293 HASH_ITER(hh, (e), el, rtmp)
295#define PROXY_CACHE_ITER_SAFE(e, el, rtmp) \
296 for ((el) = (e); (el) && ((rtmp) = (el)->hh.next, 1); (el) = (rtmp))
298#define PROXY_CACHE_FIND(e, k, res) { \
299 HASH_FIND(hh, (e), (k), sizeof(*k), (res)); \
struct coap_cache_key_t coap_cache_key_t
struct coap_pdu_t coap_pdu_t
PDU information.
struct coap_proxy_entry_t coap_proxy_entry_t
Proxy information.
struct coap_resource_t coap_resource_t
struct coap_session_t coap_session_t
uint64_t coap_tick_t
This data type represents internal timer ticks with COAP_TICKS_PER_SECOND resolution.
int coap_mid_t
coap_mid_t is used to store the CoAP Message ID of a CoAP PDU.
coap_pdu_code_t
Set of codes available for a PDU.
struct coap_bin_const_t coap_bin_const_t
CoAP binary data definition with const data.
CoAP binary data definition with const data.
The CoAP stack's global state is stored in a coap_context_t object.
Abstraction of virtual session that can be attached to coap_context_t (client) or coap_endpoint_t (se...