cwist
Modern C web framework with libttak runtime
Loading...
Searching...
No Matches
cwist_lwip_config Struct Reference

Listener settings; start from cwist_lwip_config_init(). More...

#include <lwip.h>

Public Attributes

uint16_t port
 
uint16_t max_conns
 
size_t max_header_bytes
 
size_t max_body_bytes
 
uint32_t idle_timeout_ms
 
bool keep_alive
 
struct cwist_lwip_tls * tls
 

Detailed Description

Listener settings; start from cwist_lwip_config_init().

Definition at line 67 of file lwip.h.

Member Data Documentation

◆ idle_timeout_ms

uint32_t cwist_lwip_config::idle_timeout_ms

Close a connection with no traffic for this long; 0 = never (default 30000).

Definition at line 72 of file lwip.h.

Referenced by cwist_lwip_config_init().

◆ keep_alive

bool cwist_lwip_config::keep_alive

Allow persistent connections (default true).

Definition at line 73 of file lwip.h.

Referenced by cwist_lwip_config_init().

◆ max_body_bytes

size_t cwist_lwip_config::max_body_bytes

Content-Length cap; 413 above (default 16384).

Definition at line 71 of file lwip.h.

Referenced by cwist_lwip_config_init().

◆ max_conns

uint16_t cwist_lwip_config::max_conns

Concurrent connections; extra accepts are aborted (default 4).

Definition at line 69 of file lwip.h.

Referenced by cwist_lwip_config_init().

◆ max_header_bytes

size_t cwist_lwip_config::max_header_bytes

Request line + headers + CRLFCRLF cap; 431 above (default 4096).

Definition at line 70 of file lwip.h.

Referenced by cwist_lwip_config_init().

◆ port

uint16_t cwist_lwip_config::port

TCP port to listen on (default 80).

Definition at line 68 of file lwip.h.

Referenced by cwist_lwip_config_init().

◆ tls

struct cwist_lwip_tls* cwist_lwip_config::tls

Serve HTTPS with this context; NULL = plaintext (default). Not owned.

Definition at line 74 of file lwip.h.

Referenced by cwist_lwip_config_init().


The documentation for this struct was generated from the following file: