Mercurial > hg > nginx
comparison src/event/quic/ngx_event_quic_connection.h @ 8750:41807e581de9 quic
QUIC: separate files for stream related processing.
author | Vladimir Homutov <vl@nginx.com> |
---|---|
date | Tue, 13 Apr 2021 14:40:00 +0300 |
parents | 660c4a2f95f3 |
children | bc910a5ec737 |
comparison
equal
deleted
inserted
replaced
8749:660c4a2f95f3 | 8750:41807e581de9 |
---|---|
17 typedef struct ngx_quic_connection_s ngx_quic_connection_t; | 17 typedef struct ngx_quic_connection_s ngx_quic_connection_t; |
18 | 18 |
19 #include <ngx_event_quic_frames.h> | 19 #include <ngx_event_quic_frames.h> |
20 #include <ngx_event_quic_migration.h> | 20 #include <ngx_event_quic_migration.h> |
21 #include <ngx_event_quic_connid.h> | 21 #include <ngx_event_quic_connid.h> |
22 #include <ngx_event_quic_streams.h> | |
22 | 23 |
23 | 24 |
24 #define NGX_QUIC_MAX_SHORT_HEADER 25 /* 1 flags + 20 dcid + 4 pn */ | 25 #define NGX_QUIC_MAX_SHORT_HEADER 25 /* 1 flags + 20 dcid + 4 pn */ |
25 #define NGX_QUIC_MAX_LONG_HEADER 56 | 26 #define NGX_QUIC_MAX_LONG_HEADER 56 |
26 /* 1 flags + 4 version + 2 x (1 + 20) s/dcid + 4 pn + 4 len + token len */ | 27 /* 1 flags + 4 version + 2 x (1 + 20) s/dcid + 4 pn + 4 len + token len */ |
223 ngx_msec_t ngx_quic_pto(ngx_connection_t *c, ngx_quic_send_ctx_t *ctx); | 224 ngx_msec_t ngx_quic_pto(ngx_connection_t *c, ngx_quic_send_ctx_t *ctx); |
224 | 225 |
225 ngx_int_t ngx_quic_new_sr_token(ngx_connection_t *c, ngx_str_t *cid, | 226 ngx_int_t ngx_quic_new_sr_token(ngx_connection_t *c, ngx_str_t *cid, |
226 u_char *secret, u_char *token); | 227 u_char *secret, u_char *token); |
227 | 228 |
229 ngx_int_t ngx_quic_output(ngx_connection_t *c); | |
230 void ngx_quic_shutdown_quic(ngx_connection_t *c); | |
231 | |
228 /********************************* DEBUG *************************************/ | 232 /********************************* DEBUG *************************************/ |
229 | 233 |
230 /* #define NGX_QUIC_DEBUG_PACKETS */ /* dump packet contents */ | 234 /* #define NGX_QUIC_DEBUG_PACKETS */ /* dump packet contents */ |
231 /* #define NGX_QUIC_DEBUG_FRAMES */ /* dump frames contents */ | 235 /* #define NGX_QUIC_DEBUG_FRAMES */ /* dump frames contents */ |
232 /* #define NGX_QUIC_DEBUG_ALLOC */ /* log frames and bufs alloc */ | 236 /* #define NGX_QUIC_DEBUG_ALLOC */ /* log frames and bufs alloc */ |