IoTivity-Lite
oc_buffer_settings.h File Reference
#include <stddef.h>

Functions

long oc_get_block_size (void)
 retrieve the block size More...
 
long oc_get_max_app_data_size (void)
 retrieve the max application data size More...
 
long oc_get_min_app_data_size (void)
 retrieve the min application data size More...
 
long oc_get_mtu_size (void)
 retrieve the currently used MTU size More...
 
void oc_set_max_app_data_size (size_t size)
 set max application data size (e.g. More...
 
void oc_set_min_app_data_size (size_t size)
 set min application data size (e.g. More...
 
int oc_set_mtu_size (size_t mtu_size)
 sets the size of the MTU to be used More...
 

Function Documentation

◆ oc_get_block_size()

long oc_get_block_size ( void  )

retrieve the block size

Returns
long the block size in bytes

◆ oc_get_max_app_data_size()

long oc_get_max_app_data_size ( void  )

retrieve the max application data size

Returns
long size in bytes

◆ oc_get_min_app_data_size()

long oc_get_min_app_data_size ( void  )

retrieve the min application data size

Returns
long size in bytes

◆ oc_get_mtu_size()

long oc_get_mtu_size ( void  )

retrieve the currently used MTU size

Returns
long the MTU size in bytes

◆ oc_set_max_app_data_size()

void oc_set_max_app_data_size ( size_t  size)

set max application data size (e.g.

buffer size of the messages)

Parameters
sizesize in bytes

◆ oc_set_min_app_data_size()

void oc_set_min_app_data_size ( size_t  size)

set min application data size (e.g.

initialization buffer size of the messages)

Parameters
sizesize in bytes

◆ oc_set_mtu_size()

int oc_set_mtu_size ( size_t  mtu_size)

sets the size of the MTU to be used

Parameters
mtu_sizesize in bytes
Returns
int 0-success