Espressif ESP32-S2 Programming Manual page 598

Table of Contents

Advertisement

Chapter 2. API Reference
Public Members
unsigned task_priority
Priority of FreeRTOS task which runs the server
size_t stack_size
The maximum stack size allowed for the server task
BaseType_t core_id
The core the HTTP server task will run on
uint16_t server_port
TCP Port number for receiving and transmitting HTTP traffic
uint16_t ctrl_port
UDP Port number for asynchronously exchanging control signals between various components of the
server
uint16_t max_open_sockets
Max number of sockets/clients connected at any time
uint16_t max_uri_handlers
Maximum allowed uri handlers
uint16_t max_resp_headers
Maximum allowed additional headers in HTTP response
uint16_t backlog_conn
Number of backlog connections
bool lru_purge_enable
Purge "Least Recently Used"connection
uint16_t recv_wait_timeout
Timeout for recv function (in seconds)
uint16_t send_wait_timeout
Timeout for send function (in seconds)
void *global_user_ctx
Global user context.
This field can be used to store arbitrary user data within the server context. The value can be retrieved
using the server handle, available e.g. in the httpd_req_t struct.
When shutting down, the server frees up the user context by calling free() on the global_user_ctx field.
If you wish to use a custom function for freeing the global user context, please specify that here.
httpd_free_ctx_fn_t
Free function for global user context
void *global_transport_ctx
Global transport context.
Similar to global_user_ctx, but used for session encoding or encryption (e.g. to hold the SSL context). It
will be freed using free(), unless global_transport_ctx_free_fn is specified.
httpd_free_ctx_fn_t
Free function for global transport context
httpd_open_func_t
open_fn
Custom session opening callback.
Called on a new session socket just after accept(), but before reading any data.
This is an opportunity to set up e.g. SSL encryption using global_transport_ctx and the send/recv/pending
session overrides.
Espressif Systems
global_user_ctx_free_fn
global_transport_ctx_free_fn
Submit Document Feedback
587
Release v4.4

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the ESP32-S2 and is the answer not in the manual?

Subscribe to Our Youtube Channel

Table of Contents

Save PDF