KNX IoT
KNX IoT Point API stack implementation
|
CoAP message buffer implementation, e.g. More...
#include "port/oc_connectivity.h"
#include "util/oc_memb.h"
#include "util/oc_process.h"
#include <stdbool.h>
Go to the source code of this file.
Functions | |
oc_message_t * | oc_allocate_message (void) |
function to allocate a message More... | |
oc_message_t * | oc_allocate_message_from_pool (struct oc_memb *pool) |
allocate message from specific memory pool More... | |
int | oc_buffer_num_free_incoming () |
Get the number of incoming buffers. More... | |
int | oc_buffer_num_free_outgoing () |
Get the number of outgoing buffers. More... | |
void | oc_close_all_tls_sessions (void) |
close all tls sessions More... | |
void | oc_close_all_tls_sessions_for_device (size_t device) |
close all tls session for the specific device More... | |
oc_message_t * | oc_internal_allocate_outgoing_message (void) |
allocate message internal function More... | |
void | oc_message_add_ref (oc_message_t *message) |
add reference (for tracking in use) More... | |
void | oc_message_unref (oc_message_t *message) |
remove reference (for tracking in use) More... | |
OC_PROCESS_NAME (message_buffer_handler) | |
void | oc_recv_message (oc_message_t *message) |
receive (CoAP) message More... | |
void | oc_send_message (oc_message_t *message) |
send (CoAP) message More... | |
void | oc_set_buffers_avail_cb (oc_memb_buffers_avail_callback_t cb) |
set callback for memory availability More... | |
CoAP message buffer implementation, e.g.
for the payloads being transferred
Definition in file oc_buffer.h.
oc_message_t* oc_allocate_message | ( | void | ) |
function to allocate a message
oc_message_t* oc_allocate_message_from_pool | ( | struct oc_memb * | pool | ) |
allocate message from specific memory pool
pool | the memory pool to use for allocation |
int oc_buffer_num_free_incoming | ( | ) |
Get the number of incoming buffers.
If this reaches zero, the KNX-IoT stack will drop further received UDP messages
int oc_buffer_num_free_outgoing | ( | ) |
Get the number of outgoing buffers.
If this is zero and you attempt to send out a message, it will be silently dropped
void oc_close_all_tls_sessions | ( | void | ) |
close all tls sessions
void oc_close_all_tls_sessions_for_device | ( | size_t | device | ) |
close all tls session for the specific device
device | the device index |
oc_message_t* oc_internal_allocate_outgoing_message | ( | void | ) |
allocate message internal function
void oc_message_add_ref | ( | oc_message_t * | message | ) |
add reference (for tracking in use)
message | the message |
void oc_message_unref | ( | oc_message_t * | message | ) |
remove reference (for tracking in use)
message | the message |
void oc_recv_message | ( | oc_message_t * | message | ) |
receive (CoAP) message
message | the received message |
void oc_send_message | ( | oc_message_t * | message | ) |
send (CoAP) message
message | the CoAP message |
void oc_set_buffers_avail_cb | ( | oc_memb_buffers_avail_callback_t | cb | ) |
set callback for memory availability
cb | the callback |