25 #include "util/oc_memb.h"
26 #include "util/oc_process.h"
void oc_close_all_tls_sessions(void)
close all tls sessions
oc_message_t * oc_allocate_message_from_pool(struct oc_memb *pool)
allocate message from specific memory pool
int oc_buffer_num_free_outgoing()
Get the number of outgoing buffers.
void oc_message_unref(oc_message_t *message)
remove reference (for tracking in use)
oc_message_t * oc_allocate_message(void)
function to allocate a message
int oc_buffer_num_free_incoming()
Get the number of incoming buffers.
void oc_recv_message(oc_message_t *message)
receive (CoAP) message
void oc_message_add_ref(oc_message_t *message)
add reference (for tracking in use)
void oc_set_buffers_avail_cb(oc_memb_buffers_avail_callback_t cb)
set callback for memory availability
void oc_send_message(oc_message_t *message)
send (CoAP) message
void oc_close_all_tls_sessions_for_device(size_t device)
close all tls session for the specific device
oc_message_t * oc_internal_allocate_outgoing_message(void)
allocate message internal function
platform abstraction of networking
OC_PROCESS_NAME(oc_network_events)
process network events