17#ifndef COAP_THREADSAFE_INTERNAL_H_
18#define COAP_THREADSAFE_INTERNAL_H_
23#ifndef COAP_THREAD_IGNORE_LOCKED_MAPPING
25#define coap_add_data_large_request(a,b,c,d,e,f) coap_add_data_large_request_locked(a,b,c,d,e,f)
26#define coap_add_data_large_response(a,b,c,d,e,f,g,h,i,j,k,l) coap_add_data_large_response_locked(a,b,c,d,e,f,g,h,i,j,k,l)
27#define coap_add_resource(c,r) coap_add_resource_locked(c,r)
28#define coap_async_trigger(a) coap_async_trigger_locked(a)
29#define coap_async_set_delay(a,d) coap_async_set_delay_locked(a,d)
30#define coap_cache_get_by_key(s,c) coap_cache_get_by_key_locked(s,c)
31#define coap_cache_get_by_pdu(s,r,b) coap_cache_get_by_pdu_locked(s,r,b)
32#define coap_cache_ignore_options(c,o,n) coap_cache_ignore_options_locked(c,o,n)
33#define coap_can_exit(c) coap_can_exit_locked(c)
34#define coap_cancel_observe(s,t,v) coap_cancel_observe_locked(s,t,v)
35#define coap_check_notify(s) coap_check_notify_locked(s)
36#define coap_context_oscore_server(c,o) coap_context_oscore_server_locked(c,o)
37#define coap_context_set_block_mode(c,b) coap_context_set_block_mode_locked(c,b)
38#define coap_context_set_max_block_size(c,m) coap_context_set_max_block_size_locked(c,m)
39#define coap_context_set_pki(c,s) coap_context_set_pki_locked(c,s)
40#define coap_context_set_pki_root_cas(c,f,d) coap_context_set_pki_root_cas_locked(c,f,d)
41#define coap_context_set_psk(c,h,k,l) coap_context_set_psk_locked(c,h,k,l)
42#define coap_context_set_psk2(c,s) coap_context_set_psk2_locked(c,s)
43#define coap_find_async(s,t) coap_find_async_locked(s,t)
44#define coap_delete_oscore_recipient(s,r) coap_delete_oscore_recipient_locked(s,r)
45#define coap_delete_resource(c,r) coap_delete_resource_locked(c,r)
46#define coap_free_context(c) coap_free_context_locked(c)
47#define coap_free_endpoint(e) coap_free_endpoint_locked(e)
48#define coap_get_resource_from_uri_path(c,u) coap_get_resource_from_uri_path_locked(c,u)
49#define coap_io_do_epoll(c,e,n) coap_io_do_epoll_locked(c,e,n)
50#define coap_io_do_io(c,n) coap_io_do_io_locked(c,n)
51#define coap_io_pending(c) coap_io_pending_locked(c)
52#define coap_io_prepare_epoll(c,n) coap_io_prepare_epoll_locked(c,n)
53#define coap_io_prepare_io(c,s,m,n,t) coap_io_prepare_io_locked(c,s,m,n,t)
54#define coap_io_process(s,t) coap_io_process_locked(s,t)
55#ifdef HAVE_SYS_SELECT_H
56#define coap_io_process_with_fds(s,t,n,r,w,e) coap_io_process_with_fds_locked(s,t,n,r,w,e)
58#define coap_join_mcast_group_intf(c,g,i) coap_join_mcast_group_intf_locked(c,g,i)
59#define coap_new_cache_entry(s,p,r,b,i) coap_new_cache_entry_locked(s,p,r,b,i)
60#define coap_new_client_session(c,l,s,p) coap_new_client_session_locked(c,l,s,p)
61#define coap_new_client_session_oscore(c,l,s,p,o) coap_new_client_session_oscore_locked(c,l,s,p,o)
62#define coap_new_client_session_oscore_pki(c,l,s,p,d,o) coap_new_client_session_oscore_pki_locked(c,l,s,p,d,o)
63#define coap_new_client_session_oscore_psk(c,l,s,p,d,o) coap_new_client_session_oscore_psk_locked(c,l,s,p,d,o)
64#define coap_new_client_session_pki(c,l,s,p,d) coap_new_client_session_pki_locked(c,l,s,p,d)
65#define coap_new_client_session_psk(c,l,s,p,i,k,m) coap_new_client_session_psk_locked(c,l,s,p,i,k,m)
66#define coap_new_client_session_psk2(c,l,s,p,d) coap_new_client_session_psk2_locked(c,l,s,p,d)
67#define coap_new_endpoint(c,l,t) coap_new_endpoint_locked(c,l,t)
68#define coap_new_message_id(s) coap_new_message_id_locked(s)
69#define coap_new_oscore_recipient(c,r) coap_new_oscore_recipient_locked(c,r)
70#define coap_new_pdu(t,c,s) coap_new_pdu_locked(t,c,s)
71#define coap_persist_observe_add(c,p,l,a,r,o) coap_persist_observe_add_locked(c,p,l,a,r,o)
72#define coap_persist_startup(c,d,o,m,s) coap_persist_startup_locked(c,d,o,m,s)
73#define coap_persist_stop(c) coap_persist_stop_locked(c)
74#define coap_pdu_duplicate(o,s,l,t,d) coap_pdu_duplicate_locked(o,s,l,t,d)
75#define coap_register_async(s,r,d) coap_register_async_locked(s,r,d)
76#define coap_register_option(c,t) coap_register_option_locked(c,t)
77#define coap_resource_notify_observers(r,q) coap_resource_notify_observers_locked(r,q)
78#define coap_resource_set_dirty(r,q) coap_resource_set_dirty_locked(r,q)
79#define coap_send(s,p) coap_send_locked(s,p)
80#define coap_send_ack(s,r) coap_send_ack_locked(s,r)
81#define coap_send_error(s,r,c,o) coap_send_error_locked(s,r,c,o)
82#define coap_send_message_type(s,r,t) coap_send_message_type_locked(s,r,t)
83#define coap_send_rst(s,r) coap_send_rst_locked(s,r)
84#define coap_session_max_pdu_size(s) coap_session_max_pdu_size_locked(s)
85#define coap_session_reference(s) coap_session_reference_locked(s)
86#define coap_session_release(s) coap_session_release_locked(s)
87#define coap_session_disconnected(s,r) coap_session_disconnected_locked(s,r)
88#define coap_session_send_ping(s) coap_session_send_ping_locked(s)
121 const uint16_t *options,
130 uint32_t block_mode);
131int coap_context_set_max_block_size_locked(
coap_context_t *context,
132 size_t max_block_size);
136 const char *ca_file,
const char *ca_dir);
137int coap_context_set_psk_locked(
coap_context_t *ctx,
const char *hint,
138 const uint8_t *key,
size_t key_len);
149void coap_io_do_epoll_locked(
coap_context_t *ctx,
struct epoll_event *events,
156 unsigned int max_sockets,
157 unsigned int *num_sockets,
159int coap_join_mcast_group_intf_locked(
coap_context_t *ctx,
const char *group_name,
168 const char *dyn_resource_save_file,
169 const char *observe_save_file,
170 const char *obs_cnt_save_file,
173int coap_io_process_locked(
coap_context_t *ctx, uint32_t timeout_ms);
174#ifdef HAVE_SYS_SELECT_H
175int coap_io_process_with_fds_locked(
coap_context_t *ctx, uint32_t timeout_ms,
176 int nfds, fd_set *readfds, fd_set *writefds,
181size_t coap_session_max_pdu_size_locked(
const coap_session_t *session);
185 unsigned int idle_timeout);
216 const uint8_t *key,
unsigned key_len);
233 const uint8_t *token,
235void coap_register_option_locked(
coap_context_t *ctx, uint16_t type);
struct coap_async_t coap_async_t
Async Entry information.
void(* coap_release_large_data_t)(coap_session_t *session, void *app_ptr)
Callback handler for de-allocating the data based on app_ptr provided to coap_add_data_large_*() func...
coap_cache_session_based_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_proto_t
CoAP protocol types.
coap_pdu_code_t
Set of codes available for a PDU.
coap_pdu_type_t
CoAP PDU message type definitions.
Multi-purpose address abstraction.
CoAP binary data definition with const data.
CoAP binary data definition.
The CoAP stack's global state is stored in a coap_context_t object.
The structure used for defining the Client PSK setup data to be used.
The structure used for defining the PKI setup data to be used.
The structure used for defining the Server PSK setup data to be used.
Abstraction of virtual endpoint that can be attached to coap_context_t.
The structure used to hold the OSCORE configuration information.
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...
CoAP string data definition with const data.
CoAP string data definition.
Number of notifications that may be sent non-confirmable before a confirmable message is sent to dete...