Mercurial > hg > nginx
comparison src/stream/ngx_stream.h @ 8482:893b3313f53c quic
QUIC: added "quic" listen parameter in Stream.
Also, introduced ngx_stream_quic_module.
author | Roman Arutyunyan <arut@nginx.com> |
---|---|
date | Tue, 21 Jul 2020 23:08:39 +0300 |
parents | 9606d93aa586 |
children | d514f88053e5 |
comparison
equal
deleted
inserted
replaced
8481:0d2b2664b41c | 8482:893b3313f53c |
---|---|
12 #include <ngx_config.h> | 12 #include <ngx_config.h> |
13 #include <ngx_core.h> | 13 #include <ngx_core.h> |
14 | 14 |
15 #if (NGX_STREAM_SSL) | 15 #if (NGX_STREAM_SSL) |
16 #include <ngx_stream_ssl_module.h> | 16 #include <ngx_stream_ssl_module.h> |
17 #endif | |
18 | |
19 #if (NGX_STREAM_QUIC) | |
20 #include <ngx_stream_quic_module.h> | |
17 #endif | 21 #endif |
18 | 22 |
19 | 23 |
20 typedef struct ngx_stream_session_s ngx_stream_session_t; | 24 typedef struct ngx_stream_session_s ngx_stream_session_t; |
21 | 25 |
49 ngx_stream_conf_ctx_t *ctx; | 53 ngx_stream_conf_ctx_t *ctx; |
50 | 54 |
51 unsigned bind:1; | 55 unsigned bind:1; |
52 unsigned wildcard:1; | 56 unsigned wildcard:1; |
53 unsigned ssl:1; | 57 unsigned ssl:1; |
58 unsigned quic:1; | |
54 #if (NGX_HAVE_INET6) | 59 #if (NGX_HAVE_INET6) |
55 unsigned ipv6only:1; | 60 unsigned ipv6only:1; |
56 #endif | 61 #endif |
57 unsigned reuseport:1; | 62 unsigned reuseport:1; |
58 unsigned so_keepalive:2; | 63 unsigned so_keepalive:2; |
71 | 76 |
72 typedef struct { | 77 typedef struct { |
73 ngx_stream_conf_ctx_t *ctx; | 78 ngx_stream_conf_ctx_t *ctx; |
74 ngx_str_t addr_text; | 79 ngx_str_t addr_text; |
75 unsigned ssl:1; | 80 unsigned ssl:1; |
81 unsigned quic:1; | |
76 unsigned proxy_protocol:1; | 82 unsigned proxy_protocol:1; |
77 } ngx_stream_addr_conf_t; | 83 } ngx_stream_addr_conf_t; |
78 | 84 |
79 typedef struct { | 85 typedef struct { |
80 in_addr_t addr; | 86 in_addr_t addr; |