ngx_conf_set_flag_slot:将“on”或者“off”转换成1或0; ngx_conf_set_str_slot:将字符串保存为ngx_str_t; ngx_conf_set_num_slot:解析一个数字并保存为ngx_int_t; ngx_conf_set_size_slot:解析一个数据大小(如:“8k”,“1m”),并保存为size_t; ngx_conf_set_enum_slot:根据枚举定义将字符串翻...
ngx_conf_set_flag_slot,0,offsetof(ngx_event_conf_t, multi_accept),NULL},/* 确定是否使用 accept_mutex 负载均衡锁,默认为开启 */{ngx_string("accept_mutex"), NGX_EVENT_CONF|NGX_CONF_FLAG, ngx_conf_set_flag_slot,0,offsetof(ngx_event_conf_t, accept_mutex),NULL},/* 启用 accept_mutex ...
NGX_RTMP_REC_CONF|NGX_CONF_TAKE1, ngx_conf_set_flag_slot, NGX_RTMP_APP_CONF_OFFSET, offsetof(ngx_rtmp_record_app_conf_t, unique), NULL }, { ngx_string("record_append"), NGX_RTMP_MAIN_CONF|NGX_RTMP_SRV_CONF|NGX_RTMP_APP_CONF| ...
static char* ngx_http_hello_world(ngx_conf_t* cf, ngx_command_t* cmd, void* conf) { ngx_http_core_loc_conf_t* clcf; clcf = ngx_http_conf_get_module_loc_conf(cf, ngx_http_core_module); clcf->handler = ngx_http_hello_world_handler; ngx_conf_set_str_slot(cf, cmd, conf);...
offsetof(ngx_http_autoindex_loc_conf_t, localtime), NULL },{ ngx_string("autoindex_exact_size"), NGX_HTTP_MAIN_CONF|NGX_HTTP_SRV_CONF|NGX_HTTP_LOC_CONF|NGX_CONF_FLAG, ngx_conf_set_flag_slot, NGX_HTTP_LOC_CONF_OFFSET, offsetof(ngx_http_autoindex_loc_conf_t, exact_size), ...
ngx_conf_set_flag_slot, NGX_HTTP_LOC_CONF_OFFSET, offsetof(ngx_http_slice_loc_conf_t, footer_last), NULL}, ngx_null_command }; staticngx_http_module_tngx_http_slice_module_ctx = { NULL,/*preconfiguration*/ NULL,/*postconfiguration*/ ...
static char *ngx_http_set_status(ngx_conf_t *cf, ngx_command_t *cmd, void *conf); static ngx_command_t ngx_http_status_commands[] = { { ngx_string("stub_status"), NGX_HTTP_SRV_CONF|NGX_HTTP_LOC_CONF|NGX_CONF_FLAG, ngx_http_set_status, ...
NGX_RTMP_APP_CONF|NGX_CONF_TAKE1, ngx_conf_set_flag_slot, NGX_RTMP_APP_CONF_OFFSET, offsetof(ngx_rtmp_gop_cache_app_conf_t, gop_cache), NULL }, { ngx_string("gop_max_frame_count"), NGX_RTMP_APP_CONF|NGX_CONF_TAKE1, ...
staticvoidngx_pass_open_channel(ngx_cycle_t*cycle,ngx_channel_t*ch){ngx_int_ti;for(i =0; i < ngx_last_process; i++) {if(i == ngx_process_slot || ngx_processes[i].pid ==-1|| ngx_processes[i].channel[0] ==-1) {continue; ...
h> static char *ngx_http_set_status(ngx_conf_t *cf, ngx_command_t *cmd, void *conf); static ngx_command_t ngx_http_status_commands[] = { { ngx_string("stub_status"), NGX_HTTP_SRV_CONF|NGX_HTTP_LOC_CONF|NGX_CONF_FLAG, ngx_http_set_status, 0, 0, NULL }, ngx_null_command...