Klaus Demo nginx / 0c189c5
rename ngx_peer_addr_t to ngx_addr_t Igor Sysoev 12 years ago
9 changed file(s) with 15 addition(s) and 15 deletion(s). Raw diff Collapse all Expand all
484484 saun->sun_family = AF_UNIX;
485485 (void) ngx_cpystrn((u_char *) saun->sun_path, path, len);
486486
487 u->addrs = ngx_pcalloc(pool, sizeof(ngx_peer_addr_t));
487 u->addrs = ngx_pcalloc(pool, sizeof(ngx_addr_t));
488488 if (u->addrs == NULL) {
489489 return NGX_ERROR;
490490 }
845845
846846 /* MP: ngx_shared_palloc() */
847847
848 u->addrs = ngx_pcalloc(pool, i * sizeof(ngx_peer_addr_t));
848 u->addrs = ngx_pcalloc(pool, i * sizeof(ngx_addr_t));
849849 if (u->addrs == NULL) {
850850 return NGX_ERROR;
851851 }
883883
884884 /* MP: ngx_shared_palloc() */
885885
886 u->addrs = ngx_pcalloc(pool, sizeof(ngx_peer_addr_t));
886 u->addrs = ngx_pcalloc(pool, sizeof(ngx_addr_t));
887887 if (u->addrs == NULL) {
888888 return NGX_ERROR;
889889 }
6969 struct sockaddr *sockaddr;
7070 socklen_t socklen;
7171 ngx_str_t name;
72 } ngx_peer_addr_t;
72 } ngx_addr_t;
7373
7474
7575 typedef struct {
9393 socklen_t socklen;
9494 u_char sockaddr[NGX_SOCKADDRLEN];
9595
96 ngx_peer_addr_t *addrs;
96 ngx_addr_t *addrs;
9797 ngx_uint_t naddrs;
9898
9999 char *err;
9191 /* STUB: ngx_peer_addr_t * */
9292
9393 ngx_resolver_t *
94 ngx_resolver_create(ngx_conf_t *cf, ngx_peer_addr_t *addr)
94 ngx_resolver_create(ngx_conf_t *cf, ngx_addr_t *addr)
9595 {
9696 ngx_resolver_t *r;
9797 ngx_pool_cleanup_t *cln;
134134 };
135135
136136
137 ngx_resolver_t *ngx_resolver_create(ngx_conf_t *cf, ngx_peer_addr_t *addr);
137 ngx_resolver_t *ngx_resolver_create(ngx_conf_t *cf, ngx_addr_t *addr);
138138 ngx_resolver_ctx_t *ngx_resolve_start(ngx_resolver_t *r,
139139 ngx_resolver_ctx_t *temp);
140140 ngx_int_t ngx_resolve_name(ngx_resolver_ctx_t *ctx);
7979
8080
8181 typedef struct {
82 ngx_peer_addr_t *addrs;
82 ngx_addr_t *addrs;
8383 ngx_uint_t naddrs;
8484 ngx_uint_t weight;
8585 ngx_uint_t max_fails;
393393
394394
395395 /* STUB */
396 void ngx_mail_proxy_init(ngx_mail_session_t *s, ngx_peer_addr_t *peer);
396 void ngx_mail_proxy_init(ngx_mail_session_t *s, ngx_addr_t *peer);
397397 void ngx_mail_auth_http_init(ngx_mail_session_t *s);
398398 /**/
399399
1111
1212
1313 typedef struct {
14 ngx_peer_addr_t *peer;
14 ngx_addr_t *peer;
1515
1616 ngx_msec_t timeout;
1717
456456 time_t timer;
457457 size_t len, size;
458458 ngx_int_t rc, port, n;
459 ngx_peer_addr_t *peer;
459 ngx_addr_t *peer;
460460 struct sockaddr_in *sin;
461461
462462 ngx_log_debug0(NGX_LOG_DEBUG_MAIL, s->connection->log, 0,
763763 return;
764764 }
765765
766 peer = ngx_pcalloc(s->connection->pool, sizeof(ngx_peer_addr_t));
766 peer = ngx_pcalloc(s->connection->pool, sizeof(ngx_addr_t));
767767 if (peer == NULL) {
768768 ngx_destroy_pool(ctx->pool);
769769 ngx_mail_session_internal_server_error(s);
107107
108108
109109 void
110 ngx_mail_proxy_init(ngx_mail_session_t *s, ngx_peer_addr_t *peer)
110 ngx_mail_proxy_init(ngx_mail_session_t *s, ngx_addr_t *peer)
111111 {
112112 int keepalive;
113113 ngx_int_t rc;
99
1010
1111 typedef struct {
12 ngx_peer_addr_t *peers;
13 ngx_uint_t npeers;
12 ngx_addr_t *peers;
13 ngx_uint_t npeers;
1414 } ngx_http_mysql_test_conf_t;
1515
1616