17#ifndef COAP_PROXY_INTERNAL_H_
18#define COAP_PROXY_INTERNAL_H_
34typedef struct coap_proxy_cache_t {
44typedef struct coap_proxy_req_t {
45 struct coap_proxy_req_t *next;
51 coap_proxy_cache_t *proxy_cache;
53 unsigned doing_observe;
59 coap_proxy_req_t *proxy_req;
60 coap_proxy_cache_t *rsp_cache;
61 uint8_t *uri_host_keep;
63 int track_client_session;
74 COAP_PROXY_SUBS_TOKEN,
76} coap_proxy_subs_delete_t;
106int coap_proxy_remove_association(
coap_session_t *session,
int send_failure);
230struct coap_proxy_req_t *coap_proxy_map_outgoing_request(
coap_session_t *ongoing,
247 coap_proxy_req_t *proxy_req,
269 coap_mid_t mid, coap_proxy_subs_delete_t type);
273#define PROXY_CACHE_ADD(e, obj) \
274 HASH_ADD(hh, (e), cache_req, sizeof((obj)->cache_req), (obj))
276#define PROXY_CACHE_DELETE(e, obj) \
277 HASH_DELETE(hh, (e), (obj))
279#define PROXY_CACHE_ITER(e, el, rtmp) \
280 HASH_ITER(hh, (e), el, rtmp)
282#define PROXY_CACHE_ITER_SAFE(e, el, rtmp) \
283 for ((el) = (e); (el) && ((rtmp) = (el)->hh.next, 1); (el) = (rtmp))
285#define PROXY_CACHE_FIND(e, k, res) { \
286 HASH_FIND(hh, (e), (k), sizeof(*k), (res)); \
struct coap_cache_key_t coap_cache_key_t
struct coap_proxy_entry_t coap_proxy_entry_t
Proxy information.
struct coap_resource_t coap_resource_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 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...
Representation of parsed URI.