comparison src/event/quic/ngx_event_quic_output.h @ 8411:bc910a5ec737 quic

QUIC: separate files for output and ack related processing.
author Vladimir Homutov <vl@nginx.com>
date Tue, 13 Apr 2021 14:41:20 +0300
parents
children 4117aa7fa38e
comparison
equal deleted inserted replaced
8410:41807e581de9 8411:bc910a5ec737
1
2 /*
3 * Copyright (C) Nginx, Inc.
4 */
5
6
7 #ifndef _NGX_EVENT_QUIC_OUTPUT_H_INCLUDED_
8 #define _NGX_EVENT_QUIC_OUTPUT_H_INCLUDED_
9
10
11 #include <ngx_config.h>
12 #include <ngx_core.h>
13
14
15 size_t ngx_quic_max_udp_payload(ngx_connection_t *c);
16
17 ngx_int_t ngx_quic_output(ngx_connection_t *c);
18
19 ngx_int_t ngx_quic_negotiate_version(ngx_connection_t *c,
20 ngx_quic_header_t *inpkt);
21
22 int ngx_quic_send_alert(ngx_ssl_conn_t *ssl_conn,
23 enum ssl_encryption_level_t level, uint8_t alert);
24
25 ngx_int_t ngx_quic_send_stateless_reset(ngx_connection_t *c,
26 ngx_quic_conf_t *conf, ngx_quic_header_t *pkt);
27 ngx_int_t ngx_quic_send_cc(ngx_connection_t *c);
28 ngx_int_t ngx_quic_send_early_cc(ngx_connection_t *c,
29 ngx_quic_header_t *inpkt, ngx_uint_t err, const char *reason);
30
31 ngx_int_t ngx_quic_send_retry(ngx_connection_t *c,
32 ngx_quic_conf_t *conf, ngx_quic_header_t *pkt);
33 ngx_int_t ngx_quic_send_new_token(ngx_connection_t *c);
34
35 ngx_int_t ngx_quic_send_ack(ngx_connection_t *c,
36 ngx_quic_send_ctx_t *ctx);
37 ngx_int_t ngx_quic_send_ack_range(ngx_connection_t *c,
38 ngx_quic_send_ctx_t *ctx, uint64_t smallest, uint64_t largest);
39
40 #endif /* _NGX_EVENT_QUIC_OUTPUT_H_INCLUDED_ */