libcoap 4.3.4-develop-9f1418e
LwIP specific API

API for LwIP interface. More...

+ Collaboration diagram for LwIP specific API:

Typedefs

typedef int(* coap_lwip_input_wait_handler_t) (void *arg, uint32_t milli_secs)
 LwIP callback handler that can be used to wait / timeout for the next input packet. More...
 

Functions

void coap_lwip_dump_memory_pools (coap_log_t log_level)
 Dump the current state of the LwIP memory pools. More...
 
void coap_lwip_set_input_wait_handler (coap_context_t *context, coap_lwip_input_wait_handler_t handler, void *input_arg)
 Set up a wait / timeout callback handler for use when the application calls coap_io_process(). More...
 

Detailed Description

API for LwIP interface.

Typedef Documentation

◆ coap_lwip_input_wait_handler_t

typedef int(* coap_lwip_input_wait_handler_t) (void *arg, uint32_t milli_secs)

LwIP callback handler that can be used to wait / timeout for the next input packet.

Parameters
argThe argument passed to the coap_lwip_set_input_wait_handler() function.
milli_secsSuggested number of milli secs to wait before returning if no input.
Returns
1 if packet received, 0 for timeout, else -1 on error.

Definition at line 809 of file coap_net.h.

Function Documentation

◆ coap_lwip_dump_memory_pools()

void coap_lwip_dump_memory_pools ( coap_log_t  log_level)

Dump the current state of the LwIP memory pools.

Requires both MEMP_STATS and LWIP_STATS_DISPLAY to be defined as 1 in lwipopts.h

Parameters
log_levelThe logging level to use.

◆ coap_lwip_set_input_wait_handler()

void coap_lwip_set_input_wait_handler ( coap_context_t context,
coap_lwip_input_wait_handler_t  handler,
void *  input_arg 
)

Set up a wait / timeout callback handler for use when the application calls coap_io_process().

Parameters
contextThe coap context to associate this handler with.
handlerThe handler to call while waiting for input.
input_argThe argument to pass into handler().