mirror of
https://github.com/obgm/libcoap.git
synced 2026-11-12 19:40:39 +03:00
New demo client app. Update some of the memory sizes. New coap_lwip_dump_memory_pools() to dump LwIP memory pool usage. Add in logic to handle new client sessions. New coap_io_process() to handle LwIP which can invoke a callback handler to wait / timeout for the next input handler. New coap_lwip_set_input_wait_handler() to define this handler. Update coap_io_prepare_io() to handle LwIP. Support re-use of pbuf for PDU re-transmissions. Make sure that NSTART is correctly obeyed. Build the client with client only libcoap code. Build the server with server only libcoap code. Update LwIP source to latest stable release. Reserve memory for a response PDU. New coap_lwip(3) man page. Update directory structures for config files. Update files contained in "make dist" and check lwip rebuilds in the github workflows.
25 lines
608 B
C
25 lines
608 B
C
/*
|
|
* server-coap.h -- LwIP example
|
|
*
|
|
* Copyright (C) 2013-2016 Christian Amsüss <chrysn@fsfe.org>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*
|
|
* This file is part of the CoAP library libcoap. Please see README for terms
|
|
* of use.
|
|
*/
|
|
|
|
#include "coap_config.h"
|
|
#include <coap3/coap.h>
|
|
|
|
/* Start up the CoAP Server */
|
|
void server_coap_init(coap_lwip_input_wait_handler_t input_wait, void *input_arg,
|
|
coap_log_t log_level);
|
|
|
|
/* Close down CoAP activity */
|
|
|
|
void server_coap_finished(void);
|
|
|
|
/* call this when you think that resources could be dirty */
|
|
void server_coap_poll(void);
|