char *(*merge_loc_conf)(ngx_conf_t *cf, void *prev, void *conf); } ngx_http_module_t;(见src/http/ngx_http_config.h) typedef struct { ngx_mail_protocol_t *protocol; void *(*create_main_conf)(ngx_conf_t *cf); char *(*init_main_conf)(ngx_conf_t *cf, void *conf); void...
nginx中关于整型的数据结构位于src/core/ngx_config.h中 结构比较简单,就是一个typedef的操作,具体如下: 1typedef intptr_t ngx_int_t;2typedef uintptr_t ngx_uint_t;3typedef intptr_t ngx_flag_t; 里面的intptr_t和uintptr_t的定义位于/usr/include/stdint.h中 1/*Types for `void *' pointers.*...
*/#include<ngx_config.h>#include<ngx_core.h>#include<ngx_http.h>staticchar*ngx_http_set_status(ngx_conf_t*cf,ngx_command_t*cmd,void*conf);staticngx_command_tngx_http_status_commands[] = { {ngx_string("stub_status"), NGX_HTTP_SRV_CONF|NGX_HTTP_LOC_CONF|NGX_CONF_FLAG, ngx_http...
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. mysql> SET PASSWORD = PASSWORD('123456'); Query OK, 0 rows affected, 1 warning (0.00 sec) mysql> flush privileges; Query OK, 0 rows affected (0.00 sec) 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. ...
#include <ngx_config.h> #include <ngx_core.h> #include <ngx_http.h>#define NGX_HTTP_LIMIT_REQ_PASSED 1 #define NGX_HTTP_LIMIT_REQ_DELAYED 2 #define NGX_HTTP_LIMIT_REQ_REJECTED 3 #define NGX_HTTP_LIMIT_REQ_DELAYED_DRY_RUN 4
#include <ngx_config.h> #include <ngx_core.h>static ngx_msec_t ngx_monotonic_time(time_t sec, ngx_uint_t msec);/* * The time may be updated by signal handler or by several threads. * The time update operations are rare and require to hold the ngx_time_lock....
*/ #include <ngx_config.h> #include <ngx_core.h> #include <ngx_event.h> #include <nginx.h> #include "ngx_rtmp.h" static ngx_int_t ngx_rtmp_core_preconfiguration(ngx_conf_t *cf); static void *ngx_rtmp_core_create_main_conf(ngx_conf_t *cf); ...
#include <ngx_config.h> #include <ngx_core.h> #include "ngx_rtmp_live_module.h" #include "ngx_rtmp_amf.h" static void ngx_rtmp_recv(ngx_event_t *rev); static void ngx_rtmp_send(ngx_event_t *rev); static void ngx_rtmp_ping(ngx_event_t *rev); ngx_uint_t ngx_rtmp...
ngx_palloc.h 和 ngx_palloc.c主要用于nginx管理内存池 #include <ngx_config.h> #include <ngx_core.h> /* * NGX_MAX_ALLOC_FROM_POOL should be (ngx_pagesize - 1), i.e. 4095 on x86. * On Windows NT it decreases a number of locked pages in a kernel. ...
*/ #include <ngx_config.h> #include <ngx_core.h> #include <ngx_http.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_...