diff options
| author | Igor Sysoev <igor@sysoev.ru> | 2009-10-21 16:47:44 +0000 |
|---|---|---|
| committer | Igor Sysoev <igor@sysoev.ru> | 2009-10-21 16:47:44 +0000 |
| commit | f2694cb9250a7fd13f8f681756f103529a1f5772 (patch) | |
| tree | be4e7a6007b277ed936ef4c82732e9e2ac68c887 /src/http/ngx_http_core_module.h | |
| parent | 2a634f53421af2fb09dcd9f3b0641723eb0370a6 (diff) | |
| download | nginx-f2694cb9250a7fd13f8f681756f103529a1f5772.tar.gz nginx-f2694cb9250a7fd13f8f681756f103529a1f5772.tar.bz2 | |
*) move sockaddr to the listen options
*) rename ngx_http_listen_t to ngx_http_listen_opt_t
Diffstat (limited to 'src/http/ngx_http_core_module.h')
| -rw-r--r-- | src/http/ngx_http_core_module.h | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/src/http/ngx_http_core_module.h b/src/http/ngx_http_core_module.h index ef93a34aa..303bc9cef 100644 --- a/src/http/ngx_http_core_module.h +++ b/src/http/ngx_http_core_module.h @@ -43,6 +43,9 @@ typedef struct ngx_http_core_loc_conf_s ngx_http_core_loc_conf_t; typedef struct { + u_char sockaddr[NGX_SOCKADDRLEN]; + socklen_t socklen; + unsigned default_server:1; unsigned bind:1; unsigned wildcard:1; @@ -68,14 +71,6 @@ typedef struct { } ngx_http_listen_opt_t; -typedef struct { - u_char sockaddr[NGX_SOCKADDRLEN]; - socklen_t socklen; - - ngx_http_listen_opt_t opt; -} ngx_http_listen_t; - - typedef enum { NGX_HTTP_POST_READ_PHASE = 0, @@ -223,8 +218,7 @@ typedef struct { typedef struct { - u_char sockaddr[NGX_SOCKADDRLEN]; - socklen_t socklen; + ngx_http_listen_opt_t opt; ngx_hash_t hash; ngx_hash_wildcard_t *wc_head; @@ -238,8 +232,6 @@ typedef struct { /* the default server configuration for this address:port */ ngx_http_core_srv_conf_t *core_srv_conf; ngx_array_t servers; /* array of ngx_http_core_srv_conf_t */ - - ngx_http_listen_opt_t opt; } ngx_http_conf_addr_t; |
