17#ifndef COAP_PROXY_INTERNAL_H_
18#define COAP_PROXY_INTERNAL_H_
32typedef struct coap_proxy_cache_t {
42typedef struct coap_proxy_req_t {
43 struct coap_proxy_req_t *next;
49 coap_proxy_cache_t *proxy_cache;
51 unsigned doing_observe;
57 coap_proxy_req_t *proxy_req;
58 coap_proxy_cache_t *rsp_cache;
60 uint8_t *uri_host_keep;
69 COAP_PROXY_SUBS_TOKEN,
71} coap_proxy_subs_delete_t;
101int coap_proxy_remove_association(
coap_session_t *session,
int send_failure);
198struct coap_proxy_req_t *coap_proxy_map_outgoing_request(
coap_session_t *ongoing,
215 coap_proxy_req_t *proxy_req,
225void coap_proxy_del_req(
coap_proxy_list_t *proxy_entry, coap_proxy_req_t *proxy_req);
237 coap_mid_t mid, coap_proxy_subs_delete_t type);
241#define PROXY_CACHE_ADD(e, obj) \
242 HASH_ADD(hh, (e), cache_req, sizeof((obj)->cache_req), (obj))
244#define PROXY_CACHE_DELETE(e, obj) \
245 HASH_DELETE(hh, (e), (obj))
247#define PROXY_CACHE_ITER(e, el, rtmp) \
248 HASH_ITER(hh, (e), el, rtmp)
250#define PROXY_CACHE_ITER_SAFE(e, el, rtmp) \
251 for ((el) = (e); (el) && ((rtmp) = (el)->hh.next, 1); (el) = (rtmp))
253#define PROXY_CACHE_FIND(e, k, res) { \
254 HASH_FIND(hh, (e), (k), sizeof(*k), (res)); \
struct coap_proxy_list_t coap_proxy_list_t
Proxy information.
Pulls together all the internal only header files.
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 binary data definition with const data.
The CoAP stack's global state is stored in a coap_context_t object.
Abstraction of resource that can be attached to coap_context_t.
Abstraction of virtual session that can be attached to coap_context_t (client) or coap_endpoint_t (se...
Representation of parsed URI.