GNU libmicrohttpd 1.0.10
Loading...
Searching...
No Matches
MHD_OptMatrixProfile Struct Reference

#include </builddir/build/BUILD/libmicrohttpd-1.0.10-build/libmicrohttpd-1.0.10/src/microhttpd/mhd_opt_matrix.h>

Data Fields

const char * name
size_t mem_limit
int discipline_lvl
int use_legacy_strict
enum MHD_OptMatrixThreading threading
enum MHD_OptMatrixPoll poll_backend
unsigned int thread_pool_size

Detailed Description

One point of the daemon option matrix.

A caller may copy the structure and modify the copy, e.g. with mhd_opt_matrix_raise_mem_limit(); the tables returned by mhd_opt_matrix_profile() must not be modified.

Definition at line 176 of file mhd_opt_matrix.h.

Field Documentation

◆ discipline_lvl

int MHD_OptMatrixProfile::discipline_lvl

The value for MHD_OPTION_CLIENT_DISCIPLINE_LVL or, when use_legacy_strict is set, for MHD_OPTION_STRICT_FOR_CLIENT. Zero means "keep the MHD default" and adds no option at all.

Definition at line 195 of file mhd_opt_matrix.h.

Referenced by mhd_opt_matrix_describe(), mhd_opt_matrix_effective_discipline(), and mhd_opt_matrix_fill_options().

◆ mem_limit

size_t MHD_OptMatrixProfile::mem_limit

The value for MHD_OPTION_CONNECTION_MEMORY_LIMIT. Zero means "keep the MHD default".

Definition at line 188 of file mhd_opt_matrix.h.

Referenced by mhd_opt_matrix_describe(), mhd_opt_matrix_fill_options(), and mhd_opt_matrix_raise_mem_limit().

◆ name

const char* MHD_OptMatrixProfile::name

Human readable name of the profile, used for logging and for MHD_OPT_MATRIX_PROFILE_ENV.

Definition at line 182 of file mhd_opt_matrix.h.

Referenced by env_error(), mhd_opt_matrix_describe(), mhd_opt_matrix_lookup(), and mhd_opt_matrix_print_notice().

◆ poll_backend

enum MHD_OptMatrixPoll MHD_OptMatrixProfile::poll_backend

The polling backend.

Definition at line 212 of file mhd_opt_matrix.h.

Referenced by mhd_opt_matrix_daemon_flags(), mhd_opt_matrix_describe(), and mhd_opt_matrix_profile_supported().

◆ thread_pool_size

unsigned int MHD_OptMatrixProfile::thread_pool_size

The number of worker threads, only used with MHD_OPT_MATRIX_THR_POOL.

Definition at line 218 of file mhd_opt_matrix.h.

Referenced by mhd_opt_matrix_describe(), and mhd_opt_matrix_fill_options().

◆ threading

◆ use_legacy_strict

int MHD_OptMatrixProfile::use_legacy_strict

If non-zero, the deprecated MHD_OPTION_STRICT_FOR_CLIENT option is used instead of MHD_OPTION_CLIENT_DISCIPLINE_LVL, so that the legacy option translation code is exercised as well.

Definition at line 202 of file mhd_opt_matrix.h.

Referenced by mhd_opt_matrix_describe(), mhd_opt_matrix_effective_discipline(), and mhd_opt_matrix_fill_options().


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