comparison src/event/quic/ngx_event_quic_streams.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
children b3f6ad181df4
comparison
equal deleted inserted replaced
8749:660c4a2f95f3 8750:41807e581de9
1
2 /*
3 * Copyright (C) Nginx, Inc.
4 */
5
6
7 #ifndef _NGX_EVENT_QUIC_STREAMS_H_INCLUDED_
8 #define _NGX_EVENT_QUIC_STREAMS_H_INCLUDED_
9
10
11 #include <ngx_config.h>
12 #include <ngx_core.h>
13
14
15 ngx_int_t ngx_quic_handle_stream_frame(ngx_connection_t *c,
16 ngx_quic_header_t *pkt, ngx_quic_frame_t *frame);
17 ngx_int_t ngx_quic_stream_input(ngx_connection_t *c,
18 ngx_quic_frame_t *frame, void *data);
19 void ngx_quic_handle_stream_ack(ngx_connection_t *c,
20 ngx_quic_frame_t *f);
21 ngx_int_t ngx_quic_handle_max_data_frame(ngx_connection_t *c,
22 ngx_quic_max_data_frame_t *f);
23 ngx_int_t ngx_quic_handle_streams_blocked_frame(ngx_connection_t *c,
24 ngx_quic_header_t *pkt, ngx_quic_streams_blocked_frame_t *f);
25 ngx_int_t ngx_quic_handle_stream_data_blocked_frame(ngx_connection_t *c,
26 ngx_quic_header_t *pkt, ngx_quic_stream_data_blocked_frame_t *f);
27 ngx_int_t ngx_quic_handle_max_stream_data_frame(ngx_connection_t *c,
28 ngx_quic_header_t *pkt, ngx_quic_max_stream_data_frame_t *f);
29 ngx_int_t ngx_quic_handle_reset_stream_frame(ngx_connection_t *c,
30 ngx_quic_header_t *pkt, ngx_quic_reset_stream_frame_t *f);
31 ngx_int_t ngx_quic_handle_stop_sending_frame(ngx_connection_t *c,
32 ngx_quic_header_t *pkt, ngx_quic_stop_sending_frame_t *f);
33 ngx_int_t ngx_quic_handle_max_streams_frame(ngx_connection_t *c,
34 ngx_quic_header_t *pkt, ngx_quic_max_streams_frame_t *f);
35
36 void ngx_quic_rbtree_insert_stream(ngx_rbtree_node_t *temp,
37 ngx_rbtree_node_t *node, ngx_rbtree_node_t *sentinel);
38 ngx_quic_stream_t *ngx_quic_find_stream(ngx_rbtree_t *rbtree,
39 uint64_t id);
40 ngx_int_t ngx_quic_close_streams(ngx_connection_t *c,
41 ngx_quic_connection_t *qc);
42
43 #endif /* _NGX_EVENT_QUIC_STREAMS_H_INCLUDED_ */