Mercurial > hg > nginx-quic
comparison src/event/quic/ngx_event_quic_connection.h @ 8424:0bd1dd39a08b quic
QUIC: fixed build with NGX_QUIC_DEBUG_ALLOC enabled.
author | Vladimir Homutov <vl@nginx.com> |
---|---|
date | Wed, 28 Apr 2021 13:37:18 +0300 |
parents | 4117aa7fa38e |
children | b3f6ad181df4 |
comparison
equal
deleted
inserted
replaced
8423:4117aa7fa38e | 8424:0bd1dd39a08b |
---|---|
8 | 8 |
9 | 9 |
10 #include <ngx_config.h> | 10 #include <ngx_config.h> |
11 #include <ngx_core.h> | 11 #include <ngx_core.h> |
12 #include <ngx_event.h> | 12 #include <ngx_event.h> |
13 | |
14 | |
15 /* #define NGX_QUIC_DEBUG_PACKETS */ /* dump packet contents */ | |
16 /* #define NGX_QUIC_DEBUG_FRAMES */ /* dump frames contents */ | |
17 /* #define NGX_QUIC_DEBUG_ALLOC */ /* log frames and bufs alloc */ | |
18 /* #define NGX_QUIC_DEBUG_CRYPTO */ | |
13 | 19 |
14 typedef struct ngx_quic_connection_s ngx_quic_connection_t; | 20 typedef struct ngx_quic_connection_s ngx_quic_connection_t; |
15 typedef struct ngx_quic_server_id_s ngx_quic_server_id_t; | 21 typedef struct ngx_quic_server_id_s ngx_quic_server_id_t; |
16 typedef struct ngx_quic_client_id_s ngx_quic_client_id_t; | 22 typedef struct ngx_quic_client_id_s ngx_quic_client_id_t; |
17 typedef struct ngx_quic_send_ctx_s ngx_quic_send_ctx_t; | 23 typedef struct ngx_quic_send_ctx_s ngx_quic_send_ctx_t; |
251 void ngx_quic_discard_ctx(ngx_connection_t *c, | 257 void ngx_quic_discard_ctx(ngx_connection_t *c, |
252 enum ssl_encryption_level_t level); | 258 enum ssl_encryption_level_t level); |
253 void ngx_quic_close_connection(ngx_connection_t *c, ngx_int_t rc); | 259 void ngx_quic_close_connection(ngx_connection_t *c, ngx_int_t rc); |
254 void ngx_quic_shutdown_quic(ngx_connection_t *c); | 260 void ngx_quic_shutdown_quic(ngx_connection_t *c); |
255 | 261 |
256 | |
257 /********************************* DEBUG *************************************/ | |
258 | |
259 #if (NGX_DEBUG) | 262 #if (NGX_DEBUG) |
260 void ngx_quic_connstate_dbg(ngx_connection_t *c); | 263 void ngx_quic_connstate_dbg(ngx_connection_t *c); |
261 #else | 264 #else |
262 #define ngx_quic_connstate_dbg(c) | 265 #define ngx_quic_connstate_dbg(c) |
263 #endif | 266 #endif |
264 | 267 |
265 | |
266 /* #define NGX_QUIC_DEBUG_PACKETS */ /* dump packet contents */ | |
267 /* #define NGX_QUIC_DEBUG_FRAMES */ /* dump frames contents */ | |
268 /* #define NGX_QUIC_DEBUG_ALLOC */ /* log frames and bufs alloc */ | |
269 /* #define NGX_QUIC_DEBUG_CRYPTO */ | |
270 | |
271 #endif /* _NGX_EVENT_QUIC_CONNECTION_H_INCLUDED_ */ | 268 #endif /* _NGX_EVENT_QUIC_CONNECTION_H_INCLUDED_ */ |