Mercurial > hg > nginx
comparison src/mail/ngx_mail.h @ 6559:adf25b8d0431
Introduced the ngx_sockaddr_t type.
It's properly aligned and can hold any supported sockaddr.
author | Ruslan Ermilov <ru@nginx.com> |
---|---|
date | Mon, 23 May 2016 16:37:20 +0300 |
parents | 6f8254ae61b8 |
children | c90cf79d0e1d |
comparison
equal
deleted
inserted
replaced
6558:68854ce64ec7 | 6559:adf25b8d0431 |
---|---|
25 void **srv_conf; | 25 void **srv_conf; |
26 } ngx_mail_conf_ctx_t; | 26 } ngx_mail_conf_ctx_t; |
27 | 27 |
28 | 28 |
29 typedef struct { | 29 typedef struct { |
30 union { | 30 ngx_sockaddr_t u; |
31 struct sockaddr sockaddr; | |
32 struct sockaddr_in sockaddr_in; | |
33 #if (NGX_HAVE_INET6) | |
34 struct sockaddr_in6 sockaddr_in6; | |
35 #endif | |
36 #if (NGX_HAVE_UNIX_DOMAIN) | |
37 struct sockaddr_un sockaddr_un; | |
38 #endif | |
39 } u; | |
40 | |
41 socklen_t socklen; | 31 socklen_t socklen; |
42 | 32 |
43 /* server ctx */ | 33 /* server ctx */ |
44 ngx_mail_conf_ctx_t *ctx; | 34 ngx_mail_conf_ctx_t *ctx; |
45 | 35 |