53#ifndef __CWIST_SYS_PORT_LWIP_H__
54#define __CWIST_SYS_PORT_LWIP_H__
128 const unsigned char *key,
size_t key_len);
void cwist_lwip_tls_destroy(cwist_lwip_tls *tls)
Free a TLS context. Close every server using it first.
struct cwist_lwip_server cwist_lwip_server
Opaque listener handle returned by cwist_lwip_listen().
void cwist_lwip_close(cwist_lwip_server *srv)
Stop listening and abort every open connection, then free srv.
cwist_lwip_server * cwist_lwip_listen(cwist_app *app, const cwist_lwip_config *cfg)
Bind a listening tcp_pcb on cfg->port (any address) and serve app on it.
struct cwist_lwip_tls cwist_lwip_tls
Opaque TLS server context: certificate chain, key, DRBG and mbedTLS config.
cwist_lwip_tls * cwist_lwip_tls_create(const unsigned char *cert, size_t cert_len, const unsigned char *key, size_t key_len)
Create a TLS server context from a certificate chain and private key.
void cwist_lwip_config_init(cwist_lwip_config *cfg)
Fill cfg with the defaults documented on cwist_lwip_config.
size_t cwist_lwip_active_connections(const cwist_lwip_server *srv)
Number of connections the server currently holds open.
Main Application Context.
Listener settings; start from cwist_lwip_config_init().
struct cwist_lwip_tls * tls
Core Application Structure and Lifecycle Management.