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

MembersDescription
nConnectionsNumber of simultaneous HTTP connections allowed.
nTlsConnectionsNot used in the current implementation; number of simultaneous HTTPS connections allowed.
dataLenSize of the data buffer for reading cookie and GET?POST arguments (bytes).
sktTxBuffSizeSize of TX buffer for the associated socket; leave 0 for default.
sktRxBuffSizeSize of RX buffer for the associated socket; leave 0 for default.
tlsSktTxBuffSizeNot used in the current implementation; Size of TLS TX buffer for the associated socket; leave 0 for default (min 512 bytes).
tlsSktRxBuffSizeNot used in the current implementation; Size of TLS RX buffer for the associated socket; leave 0 for default (min 512 bytes).
configFlagsA 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_dirWeb 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.