TCPIP_HTTP_MODULE_CONFIG Structure
C
typedef struct {
uint16_t nConnections;
uint16_t nTlsConnections;
uint16_t dataLen;
uint16_t sktTxBuffSize;
uint16_t sktRxBuffSize;
uint16_t tlsSktTxBuffSize;
uint16_t tlsSktRxBuffSize;
uint16_t configFlags;
void* (* http_malloc_fnc)(size_t bytes);
void (* http_free_fnc)(void* ptr);
const char* web_dir;
} TCPIP_HTTP_MODULE_CONFIG;
Description
HTTP module dynamic configuration data.
Members
Members | Description |
---|---|
nConnections | Number of simultaneous HTTP connections allowed. |
nTlsConnections | Not used in the current implementation; number of simultaneous HTTPS connections allowed. |
dataLen | Size of the data buffer for reading cookie and GET?POST arguments (bytes). |
sktTxBuffSize | Size of TX buffer for the associated socket; leave 0 for default. |
sktRxBuffSize | Size of RX buffer for the associated socket; leave 0 for default. |
tlsSktTxBuffSize | Not used in the current implementation; Size of TLS TX buffer for the associated socket; leave 0 for default (min 512 bytes). |
tlsSktRxBuffSize | Not used in the current implementation; Size of TLS RX buffer for the associated socket; leave 0 for default (min 512 bytes). |
configFlags | A HTTP_MODULE_FLAGS value. HTTP specific allocation functions. These functions are used only for file upload buffer allocation. |
(* http_malloc_fnc)(size_t bytes) | Malloc style allocation function for HTTP module. |
(* http_free_fnc)(void* ptr) | Free style allocation function. |
web_dir | Web pages directory. The HTTP server will serve pages located under this top directory. No access is possible above this directory. As a good practice to follow, use something like "/mnt_point/webpages/" to limit an external user access to this only directory in the file system when using the web server. |