Mercurial > hg > nginx-vendor-0-6
annotate src/core/ngx_inet.h @ 384:09b703ae3ba5 NGINX_0_6_36
nginx 0.6.36
*) Change: now the "Invalid argument" error returned by
setsockopt(TCP_NODELAY) on Solaris, is ignored.
*) Change: now POSTs without "Content-Length" header line are allowed.
*) Feature: the "try_files" directive.
*) Feature: the --with-pcre option in the configure.
*) Feature: the "if_modified_since" directive.
*) Feature: the "$cookie_..." variables.
*) Feature: the "$arg_..." variables.
*) Bugfix: compatibility with Tru64 UNIX.
Thanks to Dustin Marquess.
*) Bugfix: a "ssl_engine" directive did not use a SSL-accelerator for
asymmetric ciphers.
Thanks to Marcin Gozdalik.
*) Bugfix: in a redirect rewrite directive original arguments were
concatenated with new arguments by a "?" rather than an "&";
the bug had appeared in 0.1.18.
Thanks to Maxim Dounin.
*) Bugfix: nginx could not be built on AIX.
*) Bugfix: a double response might be returned if the epoll or rtsig
methods are used and a redirect was returned to a request with
body.
Thanks to Eden Li.
*) Bugfix: a segmentation fault might occur in worker process if
"resolver" directive was used in SMTP proxy.
*) Bugfix: fastcgi_store stored files not always.
*) Bugfix: nginx did not process a FastCGI server response, if the
server send too many messages to stderr before response.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Thu, 02 Apr 2009 00:00:00 +0400 |
parents | 583decdb82a4 |
children |
rev | line source |
---|---|
0 | 1 |
2 /* | |
3 * Copyright (C) Igor Sysoev | |
4 */ | |
5 | |
6 | |
7 #ifndef _NGX_INET_H_INCLUDED_ | |
8 #define _NGX_INET_H_INCLUDED_ | |
9 | |
10 | |
28 | 11 #include <ngx_config.h> |
12 #include <ngx_core.h> | |
13 | |
14 | |
0 | 15 typedef struct { |
260 | 16 in_addr_t addr; |
17 in_addr_t mask; | |
0 | 18 } ngx_inet_cidr_t; |
19 | |
20 | |
252 | 21 typedef union { |
260 | 22 in_addr_t in_addr; |
252 | 23 } ngx_url_addr_t; |
200 | 24 |
25 | |
26 typedef struct { | |
260 | 27 struct sockaddr *sockaddr; |
28 socklen_t socklen; | |
29 ngx_str_t name; | |
30 } ngx_peer_addr_t; | |
252 | 31 |
28 | 32 |
260 | 33 typedef struct { |
34 ngx_int_t type; | |
35 | |
36 ngx_str_t url; | |
37 ngx_str_t host; | |
354 | 38 ngx_str_t port_text; |
260 | 39 ngx_str_t uri; |
28 | 40 |
266 | 41 in_port_t port; |
42 in_port_t default_port; | |
252 | 43 |
260 | 44 unsigned listen:1; |
45 unsigned uri_part:1; | |
46 unsigned no_resolve:1; | |
47 unsigned one_addr:1; | |
28 | 48 |
260 | 49 unsigned wildcard:1; |
50 unsigned no_port:1; | |
266 | 51 unsigned unix_socket:1; |
260 | 52 |
53 ngx_url_addr_t addr; | |
28 | 54 |
260 | 55 ngx_peer_addr_t *addrs; |
56 ngx_uint_t naddrs; | |
252 | 57 |
260 | 58 char *err; |
252 | 59 } ngx_url_t; |
28 | 60 |
61 | |
348 | 62 in_addr_t ngx_inet_addr(u_char *text, size_t len); |
252 | 63 size_t ngx_sock_ntop(int family, struct sockaddr *sa, u_char *text, size_t len); |
0 | 64 size_t ngx_inet_ntop(int family, void *addr, u_char *text, size_t len); |
65 ngx_int_t ngx_ptocidr(ngx_str_t *text, void *cidr); | |
340 | 66 ngx_int_t ngx_parse_url(ngx_pool_t *pool, ngx_url_t *u); |
67 ngx_int_t ngx_inet_resolve_host(ngx_pool_t *pool, ngx_url_t *u); | |
260 | 68 |
28 | 69 |
0 | 70 |
71 #endif /* _NGX_INET_H_INCLUDED_ */ |