Mercurial > hg > nginx
annotate src/event/quic/ngx_event_quic_socket.h @ 9017:c2f5d79cde64 quic
QUIC: separate UDP framework for QUIC.
Previously, QUIC used the existing UDP framework, which was created for UDP in
Stream. However the way QUIC connections are created and looked up is different
from the way UDP connections in Stream are created and looked up. Now these
two implementations are decoupled.
author | Roman Arutyunyan <arut@nginx.com> |
---|---|
date | Wed, 20 Apr 2022 16:01:17 +0400 |
parents | c389200e10a2 |
children |
rev | line source |
---|---|
8763 | 1 |
2 /* | |
3 * Copyright (C) Nginx, Inc. | |
4 */ | |
5 | |
6 | |
7 #ifndef _NGX_EVENT_QUIC_SOCKET_H_INCLUDED_ | |
8 #define _NGX_EVENT_QUIC_SOCKET_H_INCLUDED_ | |
9 | |
10 | |
11 #include <ngx_config.h> | |
12 #include <ngx_core.h> | |
13 | |
14 | |
15 ngx_int_t ngx_quic_open_sockets(ngx_connection_t *c, | |
16 ngx_quic_connection_t *qc, ngx_quic_header_t *pkt); | |
17 void ngx_quic_close_sockets(ngx_connection_t *c); | |
18 | |
8955
32daba3aabb2
QUIC: got rid of ngx_quic_create_temp_socket().
Vladimir Homutov <vl@nginx.com>
parents:
8911
diff
changeset
|
19 ngx_quic_socket_t *ngx_quic_create_socket(ngx_connection_t *c, |
8763 | 20 ngx_quic_connection_t *qc); |
21 ngx_int_t ngx_quic_listen(ngx_connection_t *c, ngx_quic_connection_t *qc, | |
22 ngx_quic_socket_t *qsock); | |
23 void ngx_quic_close_socket(ngx_connection_t *c, ngx_quic_socket_t *qsock); | |
24 | |
25 ngx_quic_socket_t *ngx_quic_find_socket(ngx_connection_t *c, uint64_t seqnum); | |
26 | |
27 | |
28 #endif /* _NGX_EVENT_QUIC_SOCKET_H_INCLUDED_ */ |