Mercurial > hg > nginx-quic
comparison src/core/ngx_core.h @ 7674:4ae9ac69ab93 quic
HTTP/QUIC interface reworked.
- events handling moved into src/event/ngx_event_quic.c
- http invokes once ngx_quic_run() and passes stream callback
(diff to original http_request.c is now minimal)
- streams are stored in rbtree using ID as a key
- when a new stream is registered, appropriate callback is called
- ngx_quic_stream_t type represents STREAM and stored in c->qs
author | Vladimir Homutov <vl@nginx.com> |
---|---|
date | Thu, 12 Mar 2020 16:54:43 +0300 |
parents | 5d91389e0fd3 |
children | 69345a26ba69 |
comparison
equal
deleted
inserted
replaced
7673:cc8d211cb45c | 7674:4ae9ac69ab93 |
---|---|
26 typedef struct ngx_connection_s ngx_connection_t; | 26 typedef struct ngx_connection_s ngx_connection_t; |
27 typedef struct ngx_thread_task_s ngx_thread_task_t; | 27 typedef struct ngx_thread_task_s ngx_thread_task_t; |
28 typedef struct ngx_ssl_s ngx_ssl_t; | 28 typedef struct ngx_ssl_s ngx_ssl_t; |
29 typedef struct ngx_proxy_protocol_s ngx_proxy_protocol_t; | 29 typedef struct ngx_proxy_protocol_s ngx_proxy_protocol_t; |
30 typedef struct ngx_quic_connection_s ngx_quic_connection_t; | 30 typedef struct ngx_quic_connection_s ngx_quic_connection_t; |
31 typedef struct ngx_quic_stream_s ngx_quic_stream_t; | |
31 typedef struct ngx_ssl_connection_s ngx_ssl_connection_t; | 32 typedef struct ngx_ssl_connection_s ngx_ssl_connection_t; |
32 typedef struct ngx_udp_connection_s ngx_udp_connection_t; | 33 typedef struct ngx_udp_connection_s ngx_udp_connection_t; |
33 | 34 |
34 typedef void (*ngx_event_handler_pt)(ngx_event_t *ev); | 35 typedef void (*ngx_event_handler_pt)(ngx_event_t *ev); |
35 typedef void (*ngx_connection_handler_pt)(ngx_connection_t *c); | 36 typedef void (*ngx_connection_handler_pt)(ngx_connection_t *c); |