Mercurial > hg > nginx-quic
comparison src/event/ngx_event_quic_transport.h @ 7697:78540e2160d0 quic
Added parsing of RESET_STREAM and STOP_SENDING frames
author | Vladimir Homutov <vl@nginx.com> |
---|---|
date | Wed, 18 Mar 2020 16:35:11 +0300 |
parents | ae35ccba7aa6 |
children | d3b26c3bea22 |
comparison
equal
deleted
inserted
replaced
7696:31f7c697b6d9 | 7697:78540e2160d0 |
---|---|
114 uint64_t frame_type; | 114 uint64_t frame_type; |
115 ngx_str_t reason; | 115 ngx_str_t reason; |
116 } ngx_quic_close_frame_t; | 116 } ngx_quic_close_frame_t; |
117 | 117 |
118 | 118 |
119 typedef struct { | |
120 uint64_t id; | |
121 uint64_t error_code; | |
122 uint64_t final_size; | |
123 } ngx_quic_reset_stream_frame_t; | |
124 | |
125 | |
126 typedef struct { | |
127 uint64_t id; | |
128 uint64_t error_code; | |
129 } ngx_quic_stop_sending_frame_t; | |
130 | |
131 | |
119 typedef struct ngx_quic_frame_s ngx_quic_frame_t; | 132 typedef struct ngx_quic_frame_s ngx_quic_frame_t; |
120 | 133 |
121 struct ngx_quic_frame_s { | 134 struct ngx_quic_frame_s { |
122 ngx_uint_t type; | 135 ngx_uint_t type; |
123 enum ssl_encryption_level_t level; | 136 enum ssl_encryption_level_t level; |
126 ngx_quic_ack_frame_t ack; | 139 ngx_quic_ack_frame_t ack; |
127 ngx_quic_crypto_frame_t crypto; | 140 ngx_quic_crypto_frame_t crypto; |
128 ngx_quic_new_conn_id_frame_t ncid; | 141 ngx_quic_new_conn_id_frame_t ncid; |
129 ngx_quic_stream_frame_t stream; | 142 ngx_quic_stream_frame_t stream; |
130 ngx_quic_close_frame_t close; | 143 ngx_quic_close_frame_t close; |
144 ngx_quic_reset_stream_frame_t reset_stream; | |
145 ngx_quic_stop_sending_frame_t stop_sending; | |
131 } u; | 146 } u; |
132 u_char info[128]; // for debug | 147 u_char info[128]; // for debug |
133 }; | 148 }; |
134 | 149 |
135 | 150 |