comparison src/event/quic/ngx_event_quic.h @ 8414:915c2f7092ed quic

QUIC: ngx_quic_frames_stream_t made opaque.
author Sergey Kandaurov <pluknet@nginx.com>
date Tue, 13 Apr 2021 11:49:52 +0300
parents c8bda5e1e662
children b4e6b7049984
comparison
equal deleted inserted replaced
8413:46161c610919 8414:915c2f7092ed
68 u_char av_token_key[NGX_QUIC_AV_KEY_LEN]; 68 u_char av_token_key[NGX_QUIC_AV_KEY_LEN];
69 u_char sr_token_key[NGX_QUIC_SR_KEY_LEN]; 69 u_char sr_token_key[NGX_QUIC_SR_KEY_LEN];
70 } ngx_quic_conf_t; 70 } ngx_quic_conf_t;
71 71
72 72
73 typedef struct { 73 typedef struct ngx_quic_frames_stream_s ngx_quic_frames_stream_t;
74 uint64_t sent;
75 uint64_t received;
76 ngx_queue_t frames; /* reorder queue */
77 size_t total; /* size of buffered data */
78 } ngx_quic_frames_stream_t;
79
80 74
81 struct ngx_quic_stream_s { 75 struct ngx_quic_stream_s {
82 ngx_rbtree_node_t node; 76 ngx_rbtree_node_t node;
83 ngx_connection_t *parent; 77 ngx_connection_t *parent;
84 ngx_connection_t *c; 78 ngx_connection_t *c;
85 uint64_t id; 79 uint64_t id;
86 uint64_t acked; 80 uint64_t acked;
87 uint64_t send_max_data; 81 uint64_t send_max_data;
88 ngx_buf_t *b; 82 ngx_buf_t *b;
89 ngx_quic_frames_stream_t fs; 83 ngx_quic_frames_stream_t *fs;
90 ngx_uint_t cancelable; /* unsigned cancelable:1; */ 84 ngx_uint_t cancelable; /* unsigned cancelable:1; */
91 }; 85 };
92 86
93 87
94 typedef struct ngx_quic_keys_s ngx_quic_keys_t; 88 typedef struct ngx_quic_keys_s ngx_quic_keys_t;