// Structure for the HelloWorld module, the most important thingngx_module_tngx_http_hello_world_module = { NGX_MODULE_V1, &ngx_http_hello_world_module_ctx, ngx_http_hello_world_commands, NGX_HTTP_MODULE,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NGX_MODULE_V1_PADDING }; 1.1 NGX_MODULE_V1...
4.1 模块定义 ngx_http_stub_status_module ngx_module_t ngx_http_stub_status_module = { NGX_MODULE_V1, &ngx_http_stub_status_module_ctx, /* module context */ ngx_http_status_commands, /* module directives */ NGX_HTTP_MODULE, /* module type */ NULL, /* init master */ NULL, /* ...
/*module directives*/NGX_CORE_MODULE,/*module type*/NULL,/*init master*/NULL,/*init module*/NULL,/*init process*/NULL,/*init thread*/NULL,/*exit thread*/NULL,/*exit process*/NULL,/*exit master*/NGX_MODULE_V1_PADDING
NGX_MODULE_V1_PADDING }; static ngx_rtmp_module_t ngx_rtmp_auto_push_index_module_ctx = { NULL, /* preconfiguration */ NULL, /* postconfiguration */ NULL, /* create main configuration */ NULL, /* init main configuration */ ...
/* exit master */ NGX_MODULE_V1_PADDING }; static ngx_int_t ngx_http_status_handler(ngx_http_request_t *r) { size_t size; ngx_int_t rc; ngx_buf_t *b; ngx_chain_t out; ngx_atomic_int_t ap, hn, ac, rq, rd, wr; if (r->method != NGX_HTTP_GET && r->method != ...
NGX_MODULE_V1_PADDING };static ngx_int_t ngx_http_mirror_handler(ngx_http_request_t *r) { ngx_int_t rc; ngx_http_mirror_ctx_t *ctx; ngx_http_mirror_loc_conf_t *mlcf;if (r != r->main) { return NGX_DECLINED; }mlcf = ngx_http_get_module_loc_conf(r, ngx_http_mirror_mod...
_commands, /* module directives */ NGX_HTTP_MODULE, /* module type */ NULL, /* init master */ NULL, /* init module */ NULL, /* init process */ NULL, /* init thread */ NULL, /* exit thread */ NULL, /* exit process */ NULL, /* exit master */ NGX_MODULE_V1_PADDING }...
NGX_MODULE_V1_PADDING }; static ngx_int_t ngx_rtmp_core_preconfiguration(ngx_conf_t *cf) { return ngx_rtmp_variables_add_core_vars(cf); } static void * ngx_rtmp_core_create_main_conf(ngx_conf_t *cf) { ngx_rtmp_core_main_conf_t *cmcf; cm...
NGX_MODULE_V1_PADDING };static char * ngx_stream_block(ngx_conf_t *cf, ngx_command_t *cmd, void *conf) { char *rv; ngx_uint_t i, m, mi, s; ngx_conf_t pcf; ngx_array_t ports; ngx_stream_listen_t *listen; ngx_stream_module_t *module; ...
_commands, /* module directives */ NGX_CORE_MODULE, /* module type */ NULL, /* init master */ NULL, /* init module */ NULL, /* init process */ NULL, /* init thread */ NULL, /* exit thread */ NULL, /* exit process */ NULL, /* exit master */ NGX_MODULE_V1_PADDING }...