-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathngtcp2.nim
10429 lines (10418 loc) · 482 KB
/
ngtcp2.nim
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
import os
import strformat
# Socket definitions
import nativesockets
{.passc: "-DNGTCP2_STATICLIB".}
when defined(windows):
{.passl: "-lws2_32".}
{.passc: "-D_WINDOWS".}
else:
{.passc: "-DHAVE_UNISTD_H".}
when defined(macosx):
{.passl: "-L/opt/homebrew/opt/openssl@3/lib -lcrypto".}
{.passc: "-I/opt/homebrew/opt/openssl@3/include".}
else:
{.passl: "-lcrypto".}
const root = currentSourcePath.parentDir
const libIncludes = root/"build"/"lib"/"includes"
const ngtcp2Crypto = root/"libs"/"ngtcp2"/"crypto"
const ngtcp2CryptoIncludes = root/"libs"/"ngtcp2"/"crypto"/"includes"
const ngtcp2Lib = root/"libs"/"ngtcp2"/"lib"
const ngtcp2LibIncludes = root/"libs"/"ngtcp2"/"lib"/"includes"
const picotlsInclude = root/"libs"/"picotls"/"include"
{.passc: fmt"-I{libIncludes}".}
{.passc: fmt"-I{ngtcp2Crypto}".}
{.passc: fmt"-I{ngtcp2CryptoIncludes}".}
{.passc: fmt"-I{ngtcp2Lib}".}
{.passc: fmt"-I{ngtcp2LibIncludes}".}
{.passc: fmt"-I{picotlsInclude}".}
{.compile: "./libs/picotls/picotlsvs/picotls/wintimeofday.c".}
{.compile: "./libs/picotls/lib/pembase64.c".}
{.compile: "./libs/picotls/lib/hpke.c".}
{.compile: "./libs/picotls/lib/picotls.c".}
{.compile: "./libs/picotls/lib/openssl.c".}
{.compile: "./libs/ngtcp2/crypto/shared.c".}
{.compile: "./libs/ngtcp2/crypto/picotls/picotls.c".}
{.compile: "./libs/ngtcp2/lib/ngtcp2_acktr.c".}
{.compile: "./libs/ngtcp2/lib/ngtcp2_addr.c".}
{.compile: "./libs/ngtcp2/lib/ngtcp2_balloc.c".}
{.compile: "./libs/ngtcp2/lib/ngtcp2_bbr.c".}
{.compile: "./libs/ngtcp2/lib/ngtcp2_buf.c".}
{.compile: "./libs/ngtcp2/lib/ngtcp2_cc.c".}
{.compile: "./libs/ngtcp2/lib/ngtcp2_cid.c".}
{.compile: "./libs/ngtcp2/lib/ngtcp2_conn.c".}
{.compile: "./libs/ngtcp2/lib/ngtcp2_conv.c".}
{.compile: "./libs/ngtcp2/lib/ngtcp2_crypto.c".}
{.compile: "./libs/ngtcp2/lib/ngtcp2_dcidtr.c".}
{.compile: "./libs/ngtcp2/lib/ngtcp2_err.c".}
{.compile: "./libs/ngtcp2/lib/ngtcp2_frame_chain.c".}
{.compile: "./libs/ngtcp2/lib/ngtcp2_gaptr.c".}
{.compile: "./libs/ngtcp2/lib/ngtcp2_idtr.c".}
{.compile: "./libs/ngtcp2/lib/ngtcp2_ksl.c".}
{.compile: "./libs/ngtcp2/lib/ngtcp2_log.c".}
{.compile: "./libs/ngtcp2/lib/ngtcp2_map.c".}
{.compile: "./libs/ngtcp2/lib/ngtcp2_mem.c".}
{.compile: "./libs/ngtcp2/lib/ngtcp2_objalloc.c".}
{.compile: "./libs/ngtcp2/lib/ngtcp2_opl.c".}
{.compile: "./libs/ngtcp2/lib/ngtcp2_path.c".}
{.compile: "./libs/ngtcp2/lib/ngtcp2_pkt.c".}
{.compile: "./libs/ngtcp2/lib/ngtcp2_pmtud.c".}
{.compile: "./libs/ngtcp2/lib/ngtcp2_ppe.c".}
{.compile: "./libs/ngtcp2/lib/ngtcp2_pq.c".}
{.compile: "./libs/ngtcp2/lib/ngtcp2_pv.c".}
{.compile: "./libs/ngtcp2/lib/ngtcp2_qlog.c".}
{.compile: "./libs/ngtcp2/lib/ngtcp2_range.c".}
{.compile: "./libs/ngtcp2/lib/ngtcp2_ringbuf.c".}
{.compile: "./libs/ngtcp2/lib/ngtcp2_rob.c".}
{.compile: "./libs/ngtcp2/lib/ngtcp2_rst.c".}
{.compile: "./libs/ngtcp2/lib/ngtcp2_rtb.c".}
{.compile: "./libs/ngtcp2/lib/ngtcp2_settings.c".}
{.compile: "./libs/ngtcp2/lib/ngtcp2_str.c".}
{.compile: "./libs/ngtcp2/lib/ngtcp2_strm.c".}
{.compile: "./libs/ngtcp2/lib/ngtcp2_transport_params.c".}
{.compile: "./libs/ngtcp2/lib/ngtcp2_unreachable.c".}
{.compile: "./libs/ngtcp2/lib/ngtcp2_vec.c".}
{.compile: "./libs/ngtcp2/lib/ngtcp2_version.c".}
{.compile: "./libs/ngtcp2/lib/ngtcp2_window_filter.c".}
{.compile: "./build/lib/cred_buffer.c".}
{.compile: "./build/lib/pem_utils.c".}
{.warning[UnusedImport]: off.}
{.hint[XDeclaredButNotUsed]: off.}
from macros import hint, warning, newLit, getSize
from os import parentDir
when not declared(ownSizeOf):
macro ownSizeof(x: typed): untyped =
newLit(x.getSize)
type
enum_ngtcp2_pkt_type_536871390* {.size: sizeof(cuint).} = enum
NGTCP2_PKT_INITIAL = 16, NGTCP2_PKT_0RTT = 17, NGTCP2_PKT_HANDSHAKE = 18,
NGTCP2_PKT_RETRY = 19, NGTCP2_PKT_1RTT = 64,
NGTCP2_PKT_VERSION_NEGOTIATION = 128, NGTCP2_PKT_STATELESS_RESET = 129
type
enum_ngtcp2_path_validation_result_536871394* {.size: sizeof(cuint).} = enum
NGTCP2_PATH_VALIDATION_RESULT_SUCCESS = 0,
NGTCP2_PATH_VALIDATION_RESULT_FAILURE = 1,
NGTCP2_PATH_VALIDATION_RESULT_ABORTED = 2
type
enum_ngtcp2_cc_algo_536871461* {.size: sizeof(cuint).} = enum
NGTCP2_CC_ALGO_RENO = 0, NGTCP2_CC_ALGO_CUBIC = 1, NGTCP2_CC_ALGO_BBR = 2
type
enum_ngtcp2_token_type_536871473* {.size: sizeof(cuint).} = enum
NGTCP2_TOKEN_TYPE_UNKNOWN = 0, NGTCP2_TOKEN_TYPE_RETRY = 1,
NGTCP2_TOKEN_TYPE_NEW_TOKEN = 2
type
enum_ngtcp2_encryption_level_536871527* {.size: sizeof(cuint).} = enum
NGTCP2_ENCRYPTION_LEVEL_INITIAL = 0, NGTCP2_ENCRYPTION_LEVEL_HANDSHAKE = 1,
NGTCP2_ENCRYPTION_LEVEL_1RTT = 2, NGTCP2_ENCRYPTION_LEVEL_0RTT = 3
type
enum_ngtcp2_connection_id_status_type_536871575* {.size: sizeof(cuint).} = enum
NGTCP2_CONNECTION_ID_STATUS_TYPE_ACTIVATE = 0,
NGTCP2_CONNECTION_ID_STATUS_TYPE_DEACTIVATE = 1
type
enum_ngtcp2_ccerr_type_536871611* {.size: sizeof(cuint).} = enum
NGTCP2_CCERR_TYPE_TRANSPORT = 0, NGTCP2_CCERR_TYPE_APPLICATION = 1,
NGTCP2_CCERR_TYPE_VERSION_NEGOTIATION = 2, NGTCP2_CCERR_TYPE_IDLE_CLOSE = 3,
NGTCP2_CCERR_TYPE_DROP_CONN = 4, NGTCP2_CCERR_TYPE_RETRY = 5
type
enum_en_ptls_hash_final_mode_t_536871675* {.size: sizeof(cuint).} = enum
PTLS_HASH_FINAL_MODE_FREE = 0, PTLS_HASH_FINAL_MODE_RESET = 1,
PTLS_HASH_FINAL_MODE_SNAPSHOT = 2
type
enum_en_ptls_early_data_acceptance_t_536871777* {.size: sizeof(cuint).} = enum
PTLS_EARLY_DATA_ACCEPTANCE_UNKNOWN = 0, PTLS_EARLY_DATA_REJECTED = 1,
PTLS_EARLY_DATA_ACCEPTED = 2
when not declared(struct_st_ptls_t):
type
struct_st_ptls_t* = object
else:
static :
hint("Declaration of " & "struct_st_ptls_t" &
" already exists, not redeclaring")
when not declared(UINT64_MAX):
type
UINT64_MAX* = object
else:
static :
hint("Declaration of " & "UINT64_MAX" & " already exists, not redeclaring")
when not declared(struct_st_ptls_key_schedule_t):
type
struct_st_ptls_key_schedule_t* = object
else:
static :
hint("Declaration of " & "struct_st_ptls_key_schedule_t" &
" already exists, not redeclaring")
when not declared(struct_ngtcp2_conn):
type
struct_ngtcp2_conn* = object
else:
static :
hint("Declaration of " & "struct_ngtcp2_conn" &
" already exists, not redeclaring")
when not declared(struct_x509_store_st):
type
struct_x509_store_st* = object
else:
static :
hint("Declaration of " & "struct_x509_store_st" &
" already exists, not redeclaring")
when not declared(struct_x509_st):
type
struct_x509_st* = object
else:
static :
hint("Declaration of " & "struct_x509_st" &
" already exists, not redeclaring")
when not declared(struct_evp_md_st):
type
struct_evp_md_st* = object
else:
static :
hint("Declaration of " & "struct_evp_md_st" &
" already exists, not redeclaring")
when not declared(NGTCP2_PROTO_VER_V1):
type
NGTCP2_PROTO_VER_V1* = object
else:
static :
hint("Declaration of " & "NGTCP2_PROTO_VER_V1" &
" already exists, not redeclaring")
when not declared(compiler_thread):
type
compiler_thread* = object
else:
static :
hint("Declaration of " & "compiler_thread" &
" already exists, not redeclaring")
when not declared(struct_evp_pkey_st):
type
struct_evp_pkey_st* = object
else:
static :
hint("Declaration of " & "struct_evp_pkey_st" &
" already exists, not redeclaring")
when not declared(struct_evp_cipher_ctx_st):
type
struct_evp_cipher_ctx_st* = object
else:
static :
hint("Declaration of " & "struct_evp_cipher_ctx_st" &
" already exists, not redeclaring")
when not declared(struct_stack_st_X509):
type
struct_stack_st_X509* = object
else:
static :
hint("Declaration of " & "struct_stack_st_X509" &
" already exists, not redeclaring")
when not declared(struct_hmac_ctx_st):
type
struct_hmac_ctx_st* = object
else:
static :
hint("Declaration of " & "struct_hmac_ctx_st" &
" already exists, not redeclaring")
when not declared(struct_evp_mac_ctx_st):
type
struct_evp_mac_ctx_st* = object
else:
static :
hint("Declaration of " & "struct_evp_mac_ctx_st" &
" already exists, not redeclaring")
when not declared(struct_st_ptls_traffic_protection_t):
type
struct_st_ptls_traffic_protection_t* = object
else:
static :
hint("Declaration of " & "struct_st_ptls_traffic_protection_t" &
" already exists, not redeclaring")
type
ngtcp2_ssize_536871370 = ptrdiff_t_536871373 ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/ngtcp2/lib/includes/ngtcp2/ngtcp2.h:98:19
ptrdiff_t_536871372 = clong ## Generated based on /usr/include/clang/18.1.3/include/__stddef_ptrdiff_t.h:18:26
ngtcp2_malloc_536871374 = proc (a0: csize_t; a1: pointer): pointer {.cdecl.} ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/ngtcp2/lib/includes/ngtcp2/ngtcp2.h:107:17
ngtcp2_free_536871376 = proc (a0: pointer; a1: pointer): void {.cdecl.} ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/ngtcp2/lib/includes/ngtcp2/ngtcp2.h:116:16
ngtcp2_calloc_536871378 = proc (a0: csize_t; a1: csize_t; a2: pointer): pointer {.
cdecl.} ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/ngtcp2/lib/includes/ngtcp2/ngtcp2.h:125:17
ngtcp2_realloc_536871380 = proc (a0: pointer; a1: csize_t; a2: pointer): pointer {.
cdecl.} ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/ngtcp2/lib/includes/ngtcp2/ngtcp2.h:134:17
struct_ngtcp2_mem_536871382 {.pure, inheritable, bycopy.} = object
user_data*: pointer ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/ngtcp2/lib/includes/ngtcp2/ngtcp2.h:180:16
malloc*: ngtcp2_malloc_536871375
free*: ngtcp2_free_536871377
calloc*: ngtcp2_calloc_536871379
realloc*: ngtcp2_realloc_536871381
ngtcp2_mem_536871384 = struct_ngtcp2_mem_536871383 ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/ngtcp2/lib/includes/ngtcp2/ngtcp2.h:206:3
struct_ngtcp2_pkt_info_536871386 {.pure, inheritable, bycopy.} = object
ecn* {.align(8'i64).}: uint8 ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/ngtcp2/lib/includes/ngtcp2/ngtcp2.h:481:32
ngtcp2_pkt_info_536871388 = struct_ngtcp2_pkt_info_536871387 ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/ngtcp2/lib/includes/ngtcp2/ngtcp2.h:489:3
ngtcp2_pkt_type_536871392 = enum_ngtcp2_pkt_type_536871391 ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/ngtcp2/lib/includes/ngtcp2/ngtcp2.h:855:3
ngtcp2_path_validation_result_536871396 = enum_ngtcp2_path_validation_result_536871395 ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/ngtcp2/lib/includes/ngtcp2/ngtcp2.h:1036:3
ngtcp2_tstamp_536871398 = uint64 ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/ngtcp2/lib/includes/ngtcp2/ngtcp2.h:1045:18
ngtcp2_duration_536871400 = uint64 ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/ngtcp2/lib/includes/ngtcp2/ngtcp2.h:1054:18
struct_ngtcp2_cid_536871402 {.pure, inheritable, bycopy.} = object
datalen*: csize_t ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/ngtcp2/lib/includes/ngtcp2/ngtcp2.h:1061:16
data*: array[20'i64, uint8]
ngtcp2_cid_536871404 = struct_ngtcp2_cid_536871403 ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/ngtcp2/lib/includes/ngtcp2/ngtcp2.h:1070:3
struct_ngtcp2_vec_536871406 {.pure, inheritable, bycopy.} = object
base*: ptr uint8 ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/ngtcp2/lib/includes/ngtcp2/ngtcp2.h:1078:16
len*: csize_t
ngtcp2_vec_536871408 = struct_ngtcp2_vec_536871407 ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/ngtcp2/lib/includes/ngtcp2/ngtcp2.h:1088:3
struct_ngtcp2_pkt_hd_536871410 {.pure, inheritable, bycopy.} = object
dcid*: ngtcp2_cid_536871405 ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/ngtcp2/lib/includes/ngtcp2/ngtcp2.h:1113:16
scid*: ngtcp2_cid_536871405
pkt_num*: int64
token*: ptr uint8
tokenlen*: csize_t
pkt_numlen*: csize_t
len*: csize_t
version*: uint32
type_field*: uint8
flags*: uint8
ngtcp2_pkt_hd_536871412 = struct_ngtcp2_pkt_hd_536871411 ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/ngtcp2/lib/includes/ngtcp2/ngtcp2.h:1162:3
struct_ngtcp2_pkt_stateless_reset_536871414 {.pure, inheritable, bycopy.} = object
stateless_reset_token*: array[16'i64, uint8] ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/ngtcp2/lib/includes/ngtcp2/ngtcp2.h:1169:16
rand*: ptr uint8
randlen*: csize_t
ngtcp2_pkt_stateless_reset_536871416 = struct_ngtcp2_pkt_stateless_reset_536871415 ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/ngtcp2/lib/includes/ngtcp2/ngtcp2.h:1183:3
ngtcp2_sockaddr_536871418 = struct_sockaddr_536871421 ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/ngtcp2/lib/includes/ngtcp2/ngtcp2.h:1285:25
struct_sockaddr_536871420 {.pure, inheritable, bycopy.} = object
sa_family*: sa_family_t_536871842 ## Generated based on /usr/include/x86_64-linux-gnu/bits/socket.h:183:8
sa_data*: array[14'i64, cschar]
ngtcp2_sockaddr_in_536871422 = struct_sockaddr_in_536871425 ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/ngtcp2/lib/includes/ngtcp2/ngtcp2.h:1293:28
struct_sockaddr_in_536871424 {.pure, inheritable, bycopy.} = object
sin_family*: sa_family_t_536871842 ## Generated based on /usr/include/netinet/in.h:247:8
sin_port*: in_port_t_536871844
sin_addr*: struct_in_addr_536871798
sin_zero*: array[8'i64, uint8]
ngtcp2_sockaddr_in6_536871426 = struct_sockaddr_in6_536871429 ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/ngtcp2/lib/includes/ngtcp2/ngtcp2.h:1301:29
struct_sockaddr_in6_536871428 {.pure, inheritable, bycopy.} = object
sin6_family*: sa_family_t_536871842 ## Generated based on /usr/include/netinet/in.h:262:8
sin6_port*: in_port_t_536871844
sin6_flowinfo*: uint32
sin6_addr*: struct_in6_addr_536871792
sin6_scope_id*: uint32
ngtcp2_socklen_536871430 = socklen_t_536871433 ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/ngtcp2/lib/includes/ngtcp2/ngtcp2.h:1309:19
socklen_t_536871432 = compiler_socklen_t_536871846 ## Generated based on /usr/include/x86_64-linux-gnu/bits/socket.h:33:21
union_ngtcp2_sockaddr_union_536871434 {.union, bycopy.} = object
sa*: ngtcp2_sockaddr_536871419 ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/ngtcp2/lib/includes/ngtcp2/ngtcp2.h:1318:15
in_field*: ngtcp2_sockaddr_in_536871423
in6*: ngtcp2_sockaddr_in6_536871427
ngtcp2_sockaddr_union_536871436 = union_ngtcp2_sockaddr_union_536871435 ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/ngtcp2/lib/includes/ngtcp2/ngtcp2.h:1322:3
struct_ngtcp2_preferred_addr_536871438 {.pure, inheritable, bycopy.} = object
cid*: ngtcp2_cid_536871405 ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/ngtcp2/lib/includes/ngtcp2/ngtcp2.h:1330:16
ipv4*: ngtcp2_sockaddr_in_536871423
ipv6*: ngtcp2_sockaddr_in6_536871427
ipv4_present*: uint8
ipv6_present*: uint8
stateless_reset_token*: array[16'i64, uint8]
ngtcp2_preferred_addr_536871440 = struct_ngtcp2_preferred_addr_536871439 ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/ngtcp2/lib/includes/ngtcp2/ngtcp2.h:1357:3
struct_ngtcp2_version_info_536871442 {.pure, inheritable, bycopy.} = object
chosen_version*: uint32 ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/ngtcp2/lib/includes/ngtcp2/ngtcp2.h:1365:16
available_versions*: ptr uint8
available_versionslen*: csize_t
ngtcp2_version_info_536871444 = struct_ngtcp2_version_info_536871443 ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/ngtcp2/lib/includes/ngtcp2/ngtcp2.h:1382:3
struct_ngtcp2_transport_params_536871446 {.pure, inheritable, bycopy.} = object
preferred_addr*: ngtcp2_preferred_addr_536871441 ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/ngtcp2/lib/includes/ngtcp2/ngtcp2.h:1393:16
original_dcid*: ngtcp2_cid_536871405
initial_scid*: ngtcp2_cid_536871405
retry_scid*: ngtcp2_cid_536871405
initial_max_stream_data_bidi_local*: uint64
initial_max_stream_data_bidi_remote*: uint64
initial_max_stream_data_uni*: uint64
initial_max_data*: uint64
initial_max_streams_bidi*: uint64
initial_max_streams_uni*: uint64
max_idle_timeout*: ngtcp2_duration_536871401
max_udp_payload_size*: uint64
active_connection_id_limit*: uint64
ack_delay_exponent*: uint64
max_ack_delay*: ngtcp2_duration_536871401
max_datagram_frame_size*: uint64
stateless_reset_token_present*: uint8
disable_active_migration*: uint8
original_dcid_present*: uint8
initial_scid_present*: uint8
retry_scid_present*: uint8
preferred_addr_present*: uint8
stateless_reset_token*: array[16'i64, uint8]
grease_quic_bit*: uint8
version_info*: ngtcp2_version_info_536871445
version_info_present*: uint8
ngtcp2_transport_params_536871448 = struct_ngtcp2_transport_params_536871447 ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/ngtcp2/lib/includes/ngtcp2/ngtcp2.h:1553:3
struct_ngtcp2_conn_info_536871450 {.pure, inheritable, bycopy.} = object
latest_rtt*: ngtcp2_duration_536871401 ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/ngtcp2/lib/includes/ngtcp2/ngtcp2.h:1563:16
min_rtt*: ngtcp2_duration_536871401
smoothed_rtt*: ngtcp2_duration_536871401
rttvar*: ngtcp2_duration_536871401
cwnd*: uint64
ssthresh*: uint64
bytes_in_flight*: uint64
ngtcp2_conn_info_536871459 = struct_ngtcp2_conn_info_536871451 ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/ngtcp2/lib/includes/ngtcp2/ngtcp2.h:1595:3
ngtcp2_cc_algo_536871463 = enum_ngtcp2_cc_algo_536871462 ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/ngtcp2/lib/includes/ngtcp2/ngtcp2.h:1615:3
ngtcp2_printf_536871465 = proc (a0: pointer; a1: cstring): void {.cdecl,
varargs.} ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/ngtcp2/lib/includes/ngtcp2/ngtcp2.h:1624:16
struct_ngtcp2_rand_ctx_536871467 {.pure, inheritable, bycopy.} = object
native_handle*: pointer ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/ngtcp2/lib/includes/ngtcp2/ngtcp2.h:1654:16
ngtcp2_rand_ctx_536871469 = struct_ngtcp2_rand_ctx_536871468 ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/ngtcp2/lib/includes/ngtcp2/ngtcp2.h:1660:3
ngtcp2_qlog_write_536871471 = proc (a0: pointer; a1: uint32; a2: pointer;
a3: csize_t): void {.cdecl.} ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/ngtcp2/lib/includes/ngtcp2/ngtcp2.h:1671:16
ngtcp2_token_type_536871475 = enum_ngtcp2_token_type_536871474 ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/ngtcp2/lib/includes/ngtcp2/ngtcp2.h:1695:3
struct_ngtcp2_settings_536871477 {.pure, inheritable, bycopy.} = object
qlog_write*: ngtcp2_qlog_write_536871472 ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/ngtcp2/lib/includes/ngtcp2/ngtcp2.h:1706:16
cc_algo*: ngtcp2_cc_algo_536871464
initial_ts*: ngtcp2_tstamp_536871399
initial_rtt*: ngtcp2_duration_536871401
log_printf*: ngtcp2_printf_536871466
max_tx_udp_payload_size*: csize_t
token*: ptr uint8
tokenlen*: csize_t
token_type*: ngtcp2_token_type_536871476
rand_ctx*: ngtcp2_rand_ctx_536871470
max_window*: uint64
max_stream_window*: uint64
ack_thresh*: csize_t
no_tx_udp_payload_size_shaping*: uint8
handshake_timeout*: ngtcp2_duration_536871401
preferred_versions*: ptr uint32
preferred_versionslen*: csize_t
available_versions*: ptr uint32
available_versionslen*: csize_t
original_version*: uint32
no_pmtud*: uint8
initial_pkt_num*: uint32
pmtud_probes*: ptr uint16
pmtud_probeslen*: csize_t
ngtcp2_settings_536871479 = struct_ngtcp2_settings_536871478 ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/ngtcp2/lib/includes/ngtcp2/ngtcp2.h:1912:3
struct_ngtcp2_addr_536871481 {.pure, inheritable, bycopy.} = object
addr_field*: ptr ngtcp2_sockaddr_536871419 ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/ngtcp2/lib/includes/ngtcp2/ngtcp2.h:1919:16
addrlen*: ngtcp2_socklen_536871431
ngtcp2_addr_536871483 = struct_ngtcp2_addr_536871482 ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/ngtcp2/lib/includes/ngtcp2/ngtcp2.h:1930:3
struct_ngtcp2_path_536871485 {.pure, inheritable, bycopy.} = object
local*: ngtcp2_addr_536871484 ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/ngtcp2/lib/includes/ngtcp2/ngtcp2.h:1938:16
remote*: ngtcp2_addr_536871484
user_data*: pointer
ngtcp2_path_536871487 = struct_ngtcp2_path_536871486 ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/ngtcp2/lib/includes/ngtcp2/ngtcp2.h:1962:3
struct_ngtcp2_path_storage_536871489 {.pure, inheritable, bycopy.} = object
path*: ngtcp2_path_536871488 ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/ngtcp2/lib/includes/ngtcp2/ngtcp2.h:1970:16
local_addrbuf*: ngtcp2_sockaddr_union_536871437
remote_addrbuf*: ngtcp2_sockaddr_union_536871437
ngtcp2_path_storage_536871491 = struct_ngtcp2_path_storage_536871490 ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/ngtcp2/lib/includes/ngtcp2/ngtcp2.h:1983:3
struct_ngtcp2_crypto_md_536871493 {.pure, inheritable, bycopy.} = object
native_handle*: pointer ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/ngtcp2/lib/includes/ngtcp2/ngtcp2.h:1991:16
ngtcp2_crypto_md_536871495 = struct_ngtcp2_crypto_md_536871494 ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/ngtcp2/lib/includes/ngtcp2/ngtcp2.h:1997:3
struct_ngtcp2_crypto_aead_536871497 {.pure, inheritable, bycopy.} = object
native_handle*: pointer ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/ngtcp2/lib/includes/ngtcp2/ngtcp2.h:2004:16
max_overhead*: csize_t
ngtcp2_crypto_aead_536871499 = struct_ngtcp2_crypto_aead_536871498 ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/ngtcp2/lib/includes/ngtcp2/ngtcp2.h:2015:3
struct_ngtcp2_crypto_cipher_536871501 {.pure, inheritable, bycopy.} = object
native_handle*: pointer ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/ngtcp2/lib/includes/ngtcp2/ngtcp2.h:2023:16
ngtcp2_crypto_cipher_536871503 = struct_ngtcp2_crypto_cipher_536871502 ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/ngtcp2/lib/includes/ngtcp2/ngtcp2.h:2029:3
struct_ngtcp2_crypto_aead_ctx_536871505 {.pure, inheritable, bycopy.} = object
native_handle*: pointer ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/ngtcp2/lib/includes/ngtcp2/ngtcp2.h:2039:16
ngtcp2_crypto_aead_ctx_536871507 = struct_ngtcp2_crypto_aead_ctx_536871506 ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/ngtcp2/lib/includes/ngtcp2/ngtcp2.h:2045:3
struct_ngtcp2_crypto_cipher_ctx_536871509 {.pure, inheritable, bycopy.} = object
native_handle*: pointer ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/ngtcp2/lib/includes/ngtcp2/ngtcp2.h:2055:16
ngtcp2_crypto_cipher_ctx_536871511 = struct_ngtcp2_crypto_cipher_ctx_536871510 ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/ngtcp2/lib/includes/ngtcp2/ngtcp2.h:2061:3
struct_ngtcp2_crypto_ctx_536871513 {.pure, inheritable, bycopy.} = object
aead*: ngtcp2_crypto_aead_536871500 ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/ngtcp2/lib/includes/ngtcp2/ngtcp2.h:2073:16
md*: ngtcp2_crypto_md_536871496
hp*: ngtcp2_crypto_cipher_536871504
max_encryption*: uint64
max_decryption_failure*: uint64
ngtcp2_crypto_ctx_536871515 = struct_ngtcp2_crypto_ctx_536871514 ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/ngtcp2/lib/includes/ngtcp2/ngtcp2.h:2096:3
struct_ngtcp2_version_cid_536871517 {.pure, inheritable, bycopy.} = object
version*: uint32 ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/ngtcp2/lib/includes/ngtcp2/ngtcp2.h:2198:16
dcid*: ptr uint8
dcidlen*: csize_t
scid*: ptr uint8
scidlen*: csize_t
ngtcp2_version_cid_536871519 = struct_ngtcp2_version_cid_536871518 ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/ngtcp2/lib/includes/ngtcp2/ngtcp2.h:2221:3
ngtcp2_conn_536871521 = struct_ngtcp2_conn ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/ngtcp2/lib/includes/ngtcp2/ngtcp2.h:2391:28
ngtcp2_client_initial_536871523 = proc (a0: ptr ngtcp2_conn_536871522;
a1: pointer): cint {.cdecl.} ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/ngtcp2/lib/includes/ngtcp2/ngtcp2.h:2411:15
ngtcp2_recv_client_initial_536871525 = proc (a0: ptr ngtcp2_conn_536871522;
a1: ptr ngtcp2_cid_536871405; a2: pointer): cint {.cdecl.} ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/ngtcp2/lib/includes/ngtcp2/ngtcp2.h:2428:15
ngtcp2_encryption_level_536871529 = enum_ngtcp2_encryption_level_536871528 ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/ngtcp2/lib/includes/ngtcp2/ngtcp2.h:2456:3
ngtcp2_recv_crypto_data_536871531 = proc (a0: ptr ngtcp2_conn_536871522;
a1: ngtcp2_encryption_level_536871530; a2: uint64; a3: ptr uint8;
a4: csize_t; a5: pointer): cint {.cdecl.} ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/ngtcp2/lib/includes/ngtcp2/ngtcp2.h:2493:15
ngtcp2_handshake_completed_536871533 = proc (a0: ptr ngtcp2_conn_536871522;
a1: pointer): cint {.cdecl.} ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/ngtcp2/lib/includes/ngtcp2/ngtcp2.h:2508:15
ngtcp2_handshake_confirmed_536871535 = proc (a0: ptr ngtcp2_conn_536871522;
a1: pointer): cint {.cdecl.} ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/ngtcp2/lib/includes/ngtcp2/ngtcp2.h:2521:15
ngtcp2_recv_version_negotiation_536871537 = proc (a0: ptr ngtcp2_conn_536871522;
a1: ptr ngtcp2_pkt_hd_536871413; a2: ptr uint32; a3: csize_t; a4: pointer): cint {.
cdecl.} ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/ngtcp2/lib/includes/ngtcp2/ngtcp2.h:2536:15
ngtcp2_recv_retry_536871539 = proc (a0: ptr ngtcp2_conn_536871522;
a1: ptr ngtcp2_pkt_hd_536871413;
a2: pointer): cint {.cdecl.} ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/ngtcp2/lib/includes/ngtcp2/ngtcp2.h:2559:15
ngtcp2_encrypt_536871541 = proc (a0: ptr uint8; a1: ptr ngtcp2_crypto_aead_536871500;
a2: ptr ngtcp2_crypto_aead_ctx_536871508;
a3: ptr uint8; a4: csize_t; a5: ptr uint8;
a6: csize_t; a7: ptr uint8; a8: csize_t): cint {.
cdecl.} ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/ngtcp2/lib/includes/ngtcp2/ngtcp2.h:2584:15
ngtcp2_decrypt_536871543 = proc (a0: ptr uint8; a1: ptr ngtcp2_crypto_aead_536871500;
a2: ptr ngtcp2_crypto_aead_ctx_536871508;
a3: ptr uint8; a4: csize_t; a5: ptr uint8;
a6: csize_t; a7: ptr uint8; a8: csize_t): cint {.
cdecl.} ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/ngtcp2/lib/includes/ngtcp2/ngtcp2.h:2613:15
ngtcp2_hp_mask_536871545 = proc (a0: ptr uint8; a1: ptr ngtcp2_crypto_cipher_536871504;
a2: ptr ngtcp2_crypto_cipher_ctx_536871512;
a3: ptr uint8): cint {.cdecl.} ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/ngtcp2/lib/includes/ngtcp2/ngtcp2.h:2642:15
ngtcp2_recv_stream_data_536871547 = proc (a0: ptr ngtcp2_conn_536871522;
a1: uint32; a2: int64; a3: uint64; a4: ptr uint8; a5: csize_t;
a6: pointer; a7: pointer): cint {.cdecl.} ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/ngtcp2/lib/includes/ngtcp2/ngtcp2.h:2698:15
ngtcp2_stream_open_536871549 = proc (a0: ptr ngtcp2_conn_536871522; a1: int64;
a2: pointer): cint {.cdecl.} ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/ngtcp2/lib/includes/ngtcp2/ngtcp2.h:2715:15
ngtcp2_stream_close_536871551 = proc (a0: ptr ngtcp2_conn_536871522;
a1: uint32; a2: int64; a3: uint64;
a4: pointer; a5: pointer): cint {.cdecl.} ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/ngtcp2/lib/includes/ngtcp2/ngtcp2.h:2764:15
ngtcp2_stream_reset_536871553 = proc (a0: ptr ngtcp2_conn_536871522;
a1: int64; a2: uint64; a3: uint64;
a4: pointer; a5: pointer): cint {.cdecl.} ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/ngtcp2/lib/includes/ngtcp2/ngtcp2.h:2778:15
ngtcp2_acked_stream_data_offset_536871555 = proc (a0: ptr ngtcp2_conn_536871522;
a1: int64; a2: uint64; a3: uint64; a4: pointer; a5: pointer): cint {.cdecl.} ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/ngtcp2/lib/includes/ngtcp2/ngtcp2.h:2804:15
ngtcp2_recv_stateless_reset_536871557 = proc (a0: ptr ngtcp2_conn_536871522;
a1: ptr ngtcp2_pkt_stateless_reset_536871417; a2: pointer): cint {.cdecl.} ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/ngtcp2/lib/includes/ngtcp2/ngtcp2.h:2819:15
ngtcp2_extend_max_streams_536871559 = proc (a0: ptr ngtcp2_conn_536871522;
a1: uint64; a2: pointer): cint {.cdecl.} ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/ngtcp2/lib/includes/ngtcp2/ngtcp2.h:2835:15
ngtcp2_extend_max_stream_data_536871561 = proc (a0: ptr ngtcp2_conn_536871522;
a1: int64; a2: uint64; a3: pointer; a4: pointer): cint {.cdecl.} ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/ngtcp2/lib/includes/ngtcp2/ngtcp2.h:2850:15
ngtcp2_rand_536871563 = proc (a0: ptr uint8; a1: csize_t;
a2: ptr ngtcp2_rand_ctx_536871470): void {.cdecl.} ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/ngtcp2/lib/includes/ngtcp2/ngtcp2.h:2863:16
ngtcp2_get_new_connection_id_536871565 = proc (a0: ptr ngtcp2_conn_536871522;
a1: ptr ngtcp2_cid_536871405; a2: ptr uint8; a3: csize_t; a4: pointer): cint {.
cdecl.} ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/ngtcp2/lib/includes/ngtcp2/ngtcp2.h:2882:15
ngtcp2_remove_connection_id_536871567 = proc (a0: ptr ngtcp2_conn_536871522;
a1: ptr ngtcp2_cid_536871405; a2: pointer): cint {.cdecl.} ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/ngtcp2/lib/includes/ngtcp2/ngtcp2.h:2899:15
ngtcp2_update_key_536871569 = proc (a0: ptr ngtcp2_conn_536871522;
a1: ptr uint8; a2: ptr uint8;
a3: ptr ngtcp2_crypto_aead_ctx_536871508;
a4: ptr uint8;
a5: ptr ngtcp2_crypto_aead_ctx_536871508;
a6: ptr uint8; a7: ptr uint8;
a8: ptr uint8; a9: csize_t; a10: pointer): cint {.
cdecl.} ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/ngtcp2/lib/includes/ngtcp2/ngtcp2.h:2927:15
ngtcp2_path_validation_536871571 = proc (a0: ptr ngtcp2_conn_536871522;
a1: uint32; a2: ptr ngtcp2_path_536871488; a3: ptr ngtcp2_path_536871488;
a4: ngtcp2_path_validation_result_536871397; a5: pointer): cint {.cdecl.} ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/ngtcp2/lib/includes/ngtcp2/ngtcp2.h:2984:15
ngtcp2_select_preferred_addr_536871573 = proc (a0: ptr ngtcp2_conn_536871522;
a1: ptr ngtcp2_path_536871488; a2: ptr ngtcp2_preferred_addr_536871441;
a3: pointer): cint {.cdecl.} ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/ngtcp2/lib/includes/ngtcp2/ngtcp2.h:3016:15
ngtcp2_connection_id_status_type_536871577 = enum_ngtcp2_connection_id_status_type_536871576 ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/ngtcp2/lib/includes/ngtcp2/ngtcp2.h:3039:3
ngtcp2_connection_id_status_536871579 = proc (a0: ptr ngtcp2_conn_536871522;
a1: ngtcp2_connection_id_status_type_536871578; a2: uint64;
a3: ptr ngtcp2_cid_536871405; a4: ptr uint8; a5: pointer): cint {.cdecl.} ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/ngtcp2/lib/includes/ngtcp2/ngtcp2.h:3058:15
ngtcp2_recv_new_token_536871581 = proc (a0: ptr ngtcp2_conn_536871522;
a1: ptr uint8; a2: csize_t; a3: pointer): cint {.cdecl.} ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/ngtcp2/lib/includes/ngtcp2/ngtcp2.h:3075:15
ngtcp2_delete_crypto_aead_ctx_536871583 = proc (a0: ptr ngtcp2_conn_536871522;
a1: ptr ngtcp2_crypto_aead_ctx_536871508; a2: pointer): void {.cdecl.} ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/ngtcp2/lib/includes/ngtcp2/ngtcp2.h:3086:16
ngtcp2_delete_crypto_cipher_ctx_536871585 = proc (a0: ptr ngtcp2_conn_536871522;
a1: ptr ngtcp2_crypto_cipher_ctx_536871512; a2: pointer): void {.cdecl.} ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/ngtcp2/lib/includes/ngtcp2/ngtcp2.h:3098:16
ngtcp2_recv_datagram_536871587 = proc (a0: ptr ngtcp2_conn_536871522;
a1: uint32; a2: ptr uint8; a3: csize_t; a4: pointer): cint {.cdecl.} ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/ngtcp2/lib/includes/ngtcp2/ngtcp2.h:3138:15
ngtcp2_ack_datagram_536871589 = proc (a0: ptr ngtcp2_conn_536871522;
a1: uint64; a2: pointer): cint {.cdecl.} ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/ngtcp2/lib/includes/ngtcp2/ngtcp2.h:3153:15
ngtcp2_lost_datagram_536871591 = proc (a0: ptr ngtcp2_conn_536871522;
a1: uint64; a2: pointer): cint {.cdecl.} ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/ngtcp2/lib/includes/ngtcp2/ngtcp2.h:3169:15
ngtcp2_get_path_challenge_data_536871593 = proc (a0: ptr ngtcp2_conn_536871522;
a1: ptr uint8; a2: pointer): cint {.cdecl.} ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/ngtcp2/lib/includes/ngtcp2/ngtcp2.h:3185:15
ngtcp2_stream_stop_sending_536871595 = proc (a0: ptr ngtcp2_conn_536871522;
a1: int64; a2: uint64; a3: pointer; a4: pointer): cint {.cdecl.} ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/ngtcp2/lib/includes/ngtcp2/ngtcp2.h:3201:15
ngtcp2_version_negotiation_536871597 = proc (a0: ptr ngtcp2_conn_536871522;
a1: uint32; a2: ptr ngtcp2_cid_536871405; a3: pointer): cint {.cdecl.} ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/ngtcp2/lib/includes/ngtcp2/ngtcp2.h:3224:15
ngtcp2_recv_key_536871599 = proc (a0: ptr ngtcp2_conn_536871522;
a1: ngtcp2_encryption_level_536871530;
a2: pointer): cint {.cdecl.} ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/ngtcp2/lib/includes/ngtcp2/ngtcp2.h:3238:15
ngtcp2_tls_early_data_rejected_536871601 = proc (a0: ptr ngtcp2_conn_536871522;
a1: pointer): cint {.cdecl.} ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/ngtcp2/lib/includes/ngtcp2/ngtcp2.h:3252:15
struct_ngtcp2_callbacks_536871603 {.pure, inheritable, bycopy.} = object
client_initial*: ngtcp2_client_initial_536871524 ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/ngtcp2/lib/includes/ngtcp2/ngtcp2.h:3263:16
recv_client_initial*: ngtcp2_recv_client_initial_536871526
recv_crypto_data*: ngtcp2_recv_crypto_data_536871532
handshake_completed*: ngtcp2_handshake_completed_536871534
recv_version_negotiation*: ngtcp2_recv_version_negotiation_536871538
encrypt*: ngtcp2_encrypt_536871542
decrypt*: ngtcp2_decrypt_536871544
hp_mask*: ngtcp2_hp_mask_536871546
recv_stream_data*: ngtcp2_recv_stream_data_536871548
acked_stream_data_offset*: ngtcp2_acked_stream_data_offset_536871556
stream_open*: ngtcp2_stream_open_536871550
stream_close*: ngtcp2_stream_close_536871552
recv_stateless_reset*: ngtcp2_recv_stateless_reset_536871558
recv_retry*: ngtcp2_recv_retry_536871540
extend_max_local_streams_bidi*: ngtcp2_extend_max_streams_536871560
extend_max_local_streams_uni*: ngtcp2_extend_max_streams_536871560
rand*: ngtcp2_rand_536871564
get_new_connection_id*: ngtcp2_get_new_connection_id_536871566
remove_connection_id*: ngtcp2_remove_connection_id_536871568
update_key*: ngtcp2_update_key_536871570
path_validation*: ngtcp2_path_validation_536871572
select_preferred_addr*: ngtcp2_select_preferred_addr_536871574
stream_reset*: ngtcp2_stream_reset_536871554
extend_max_remote_streams_bidi*: ngtcp2_extend_max_streams_536871560
extend_max_remote_streams_uni*: ngtcp2_extend_max_streams_536871560
extend_max_stream_data*: ngtcp2_extend_max_stream_data_536871562
dcid_status*: ngtcp2_connection_id_status_536871580
handshake_confirmed*: ngtcp2_handshake_confirmed_536871536
recv_new_token*: ngtcp2_recv_new_token_536871582
delete_crypto_aead_ctx*: ngtcp2_delete_crypto_aead_ctx_536871584
delete_crypto_cipher_ctx*: ngtcp2_delete_crypto_cipher_ctx_536871586
recv_datagram*: ngtcp2_recv_datagram_536871588
ack_datagram*: ngtcp2_ack_datagram_536871590
lost_datagram*: ngtcp2_lost_datagram_536871592
get_path_challenge_data*: ngtcp2_get_path_challenge_data_536871594
stream_stop_sending*: ngtcp2_stream_stop_sending_536871596
version_negotiation*: ngtcp2_version_negotiation_536871598
recv_rx_key*: ngtcp2_recv_key_536871600
recv_tx_key*: ngtcp2_recv_key_536871600
tls_early_data_rejected*: ngtcp2_tls_early_data_rejected_536871602
ngtcp2_callbacks_536871605 = struct_ngtcp2_callbacks_536871604 ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/ngtcp2/lib/includes/ngtcp2/ngtcp2.h:3521:3
struct_ngtcp2_cid_token_536871607 {.pure, inheritable, bycopy.} = object
seq*: uint64 ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/ngtcp2/lib/includes/ngtcp2/ngtcp2.h:4820:16
cid*: ngtcp2_cid_536871405
ps*: ngtcp2_path_storage_536871492
token*: array[16'i64, uint8]
token_present*: uint8
ngtcp2_cid_token_536871609 = struct_ngtcp2_cid_token_536871608 ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/ngtcp2/lib/includes/ngtcp2/ngtcp2.h:4844:3
ngtcp2_ccerr_type_536871613 = enum_ngtcp2_ccerr_type_536871612 ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/ngtcp2/lib/includes/ngtcp2/ngtcp2.h:5245:3
struct_ngtcp2_ccerr_536871615 {.pure, inheritable, bycopy.} = object
type_field*: ngtcp2_ccerr_type_536871614 ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/ngtcp2/lib/includes/ngtcp2/ngtcp2.h:5253:16
error_code*: uint64
frame_type*: uint64
reason*: ptr uint8
reasonlen*: csize_t
ngtcp2_ccerr_536871617 = struct_ngtcp2_ccerr_536871616 ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/ngtcp2/lib/includes/ngtcp2/ngtcp2.h:5281:3
struct_ngtcp2_info_536871619 {.pure, inheritable, bycopy.} = object
age*: cint ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/ngtcp2/lib/includes/ngtcp2/ngtcp2.h:5675:16
version_num*: cint
version_str*: cstring
ngtcp2_info_536871621 = struct_ngtcp2_info_536871620 ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/ngtcp2/lib/includes/ngtcp2/ngtcp2.h:5693:3
ngtcp2_crypto_conn_ref_536871623 = struct_ngtcp2_crypto_conn_ref_536871626 ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/ngtcp2/crypto/includes/ngtcp2/ngtcp2_crypto.h:950:3
struct_ngtcp2_crypto_conn_ref_536871625 {.pure, inheritable, bycopy.} = object
get_conn*: ngtcp2_crypto_get_conn_536871628 ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/ngtcp2/crypto/includes/ngtcp2/ngtcp2_crypto.h:940:16
user_data*: pointer
ngtcp2_crypto_get_conn_536871627 = proc (a0: ptr ngtcp2_crypto_conn_ref_536871624): ptr ngtcp2_conn_536871522 {.
cdecl.} ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/ngtcp2/crypto/includes/ngtcp2/ngtcp2_crypto.h:930:24
ptls_t_536871629 = struct_st_ptls_t ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/picotls/include/picotls.h:323:26
ptls_context_t_536871631 = struct_st_ptls_context_t_536871634 ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/picotls/include/picotls.h:324:34
struct_st_ptls_context_t_certificates_t {.pure, inheritable, bycopy.} = object
list*: ptr ptls_iovec_t_536871640
count*: csize_t
struct_st_ptls_context_t_pre_shared_key_t {.pure, inheritable, bycopy.} = object
identity*: ptls_iovec_t_536871640
secret*: ptls_iovec_t_536871640
hash*: ptr ptls_hash_algorithm_t_536871686
struct_st_ptls_context_t_ech_t_client_t {.pure, inheritable, bycopy.} = object
ciphers*: ptr ptr ptls_hpke_cipher_suite_t_536871706
kems*: ptr ptr ptls_hpke_kem_t_536871698
struct_st_ptls_context_t_ech_t_server_t {.pure, inheritable, bycopy.} = object
create_opener*: ptr ptls_ech_create_opener_t_536871772
retry_configs*: ptls_iovec_t_536871640
struct_st_ptls_context_t_ech_t {.pure, inheritable, bycopy.} = object
client*: struct_st_ptls_context_t_ech_t_client_t
server*: struct_st_ptls_context_t_ech_t_server_t
struct_st_ptls_context_t_ticket_context_t {.pure, inheritable, bycopy.} = object
bytes*: array[32'i64, uint8]
is_set* {.bitsize: 1'i64.}: cuint
struct_st_ptls_context_t_client_ca_names_t {.pure, inheritable, bycopy.} = object
list*: ptr ptls_iovec_t_536871640
count*: csize_t
struct_st_ptls_context_t_ticket_requests_t_client_t {.pure, inheritable,
bycopy.} = object
new_session_count*: uint8
resumption_count*: uint8
struct_st_ptls_context_t_ticket_requests_t_server_t {.pure, inheritable,
bycopy.} = object
max_count*: uint8
struct_st_ptls_context_t_ticket_requests_t {.pure, inheritable, bycopy.} = object
client*: struct_st_ptls_context_t_ticket_requests_t_client_t
server*: struct_st_ptls_context_t_ticket_requests_t_server_t
struct_st_ptls_context_t_536871633 {.pure, inheritable, bycopy.} = object
random_bytes*: proc (a0: pointer; a1: csize_t): void {.cdecl.} ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/picotls/include/picotls.h:854:8
get_time*: ptr ptls_get_time_t_536871718
key_exchanges*: ptr ptr ptls_key_exchange_algorithm_t_536871654
cipher_suites*: ptr ptr ptls_cipher_suite_t_536871690
certificates*: struct_st_ptls_context_t_certificates_t
pre_shared_key*: struct_st_ptls_context_t_pre_shared_key_t
ech*: struct_st_ptls_context_t_ech_t
on_client_hello*: ptr ptls_on_client_hello_t_536871722
emit_certificate*: ptr ptls_emit_certificate_t_536871726
sign_certificate*: ptr ptls_sign_certificate_t_536871734
verify_certificate*: ptr ptls_verify_certificate_t_536871738
ticket_lifetime*: uint32
max_early_data_size*: uint32
max_buffer_size*: csize_t
hkdf_label_prefix_obsolete*: cstring
require_dhe_on_psk* {.bitsize: 1'i64.}: cuint
use_exporter* {.bitsize: 1'i64.}: cuint
send_change_cipher_spec* {.bitsize: 1'i64.}: cuint
require_client_authentication* {.bitsize: 1'i64.}: cuint
omit_end_of_early_data* {.bitsize: 1'i64.}: cuint
use_raw_public_keys* {.bitsize: 1'i64.}: cuint
server_cipher_preference* {.bitsize: 1'i64.}: cuint
server_cipher_chacha_priority* {.bitsize: 1'i64.}: cuint
encrypt_ticket*: ptr ptls_encrypt_ticket_t_536871742
save_ticket*: ptr ptls_save_ticket_t_536871746
log_event*: ptr ptls_log_event_t_536871750
update_open_count*: ptr ptls_update_open_count_t_536871756
update_traffic_key*: ptr ptls_update_traffic_key_t_536871760
decompress_certificate*: ptr ptls_decompress_certificate_t_536871768
on_extension*: ptr ptls_on_extension_t_536871764
tls12_cipher_suites*: ptr ptr ptls_cipher_suite_t_536871690
ticket_context*: struct_st_ptls_context_t_ticket_context_t
client_ca_names*: struct_st_ptls_context_t_client_ca_names_t
ticket_requests*: struct_st_ptls_context_t_ticket_requests_t
ptls_key_schedule_t_536871635 = struct_st_ptls_key_schedule_t ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/picotls/include/picotls.h:325:39
struct_st_ptls_iovec_t_536871637 {.pure, inheritable, bycopy.} = object
base*: ptr uint8 ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/picotls/include/picotls.h:330:16
len*: csize_t
ptls_iovec_t_536871639 = struct_st_ptls_iovec_t_536871638 ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/picotls/include/picotls.h:333:3
struct_st_ptls_buffer_t_536871641 {.pure, inheritable, bycopy.} = object
base*: ptr uint8 ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/picotls/include/picotls.h:338:16
capacity*: csize_t
off*: csize_t
is_allocated*: uint8
align_bits*: uint8
ptls_buffer_t_536871643 = struct_st_ptls_buffer_t_536871642 ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/picotls/include/picotls.h:344:3
struct_st_ptls_key_exchange_context_t_536871645 {.pure, inheritable, bycopy.} = object
algo*: ptr struct_st_ptls_key_exchange_algorithm_t_536871648 ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/picotls/include/picotls.h:349:16
pubkey*: ptls_iovec_t_536871640
on_exchange*: proc (a0: ptr ptr struct_st_ptls_key_exchange_context_t_536871646;
a1: cint; a2: ptr ptls_iovec_t_536871640;
a3: ptls_iovec_t_536871640): cint {.cdecl.}
struct_st_ptls_key_exchange_algorithm_t_536871647 {.pure, inheritable, bycopy.} = object
id*: uint16 ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/picotls/include/picotls.h:371:22
create*: proc (a0: ptr struct_st_ptls_key_exchange_algorithm_t_536871648;
a1: ptr ptr ptls_key_exchange_context_t_536871650): cint {.
cdecl.}
exchange*: proc (a0: ptr struct_st_ptls_key_exchange_algorithm_t_536871648;
a1: ptr ptls_iovec_t_536871640; a2: ptr ptls_iovec_t_536871640;
a3: ptls_iovec_t_536871640): cint {.cdecl.}
data*: intptr_t_536871652
name*: cstring
ptls_key_exchange_context_t_536871649 = struct_st_ptls_key_exchange_context_t_536871646 ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/picotls/include/picotls.h:366:3
intptr_t_536871651 = clong ## Generated based on /usr/include/stdint.h:76:19
ptls_key_exchange_algorithm_t_536871653 = struct_st_ptls_key_exchange_algorithm_t_536871648 ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/picotls/include/picotls.h:398:3
struct_st_ptls_cipher_context_t_536871655 {.pure, inheritable, bycopy.} = object
algo*: ptr struct_st_ptls_cipher_algorithm_t_536871658 ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/picotls/include/picotls.h:403:16
do_dispose*: proc (a0: ptr struct_st_ptls_cipher_context_t_536871656): void {.
cdecl.}
do_init*: proc (a0: ptr struct_st_ptls_cipher_context_t_536871656;
a1: pointer): void {.cdecl.}
do_transform*: proc (a0: ptr struct_st_ptls_cipher_context_t_536871656;
a1: pointer; a2: pointer; a3: csize_t): void {.cdecl.}
struct_st_ptls_cipher_algorithm_t_536871657 {.pure, inheritable, bycopy.} = object
name*: cstring ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/picotls/include/picotls.h:414:22
key_size*: csize_t
block_size*: csize_t
iv_size*: csize_t
context_size*: csize_t
setup_crypto*: proc (a0: ptr ptls_cipher_context_t_536871660; a1: cint;
a2: pointer): cint {.cdecl.}
ptls_cipher_context_t_536871659 = struct_st_ptls_cipher_context_t_536871656 ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/picotls/include/picotls.h:409:3
ptls_cipher_algorithm_t_536871661 = struct_st_ptls_cipher_algorithm_t_536871658 ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/picotls/include/picotls.h:421:3
struct_st_ptls_aead_supplementary_encryption_t_536871663 {.pure, inheritable,
bycopy.} = object
ctx*: ptr ptls_cipher_context_t_536871660 ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/picotls/include/picotls.h:427:16
input*: pointer
output*: array[16'i64, uint8]
ptls_aead_supplementary_encryption_t_536871665 = struct_st_ptls_aead_supplementary_encryption_t_536871664 ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/picotls/include/picotls.h:442:3
struct_st_ptls_aead_context_t_536871667 {.pure, inheritable, bycopy.} = object
algo*: ptr struct_st_ptls_aead_algorithm_t_536871670 ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/picotls/include/picotls.h:450:16
dispose_crypto*: proc (a0: ptr struct_st_ptls_aead_context_t_536871668): void {.
cdecl.}
do_get_iv*: proc (a0: ptr struct_st_ptls_aead_context_t_536871668;
a1: pointer): void {.cdecl.}
do_set_iv*: proc (a0: ptr struct_st_ptls_aead_context_t_536871668;
a1: pointer): void {.cdecl.}
do_encrypt_init*: proc (a0: ptr struct_st_ptls_aead_context_t_536871668;
a1: uint64; a2: pointer; a3: csize_t): void {.cdecl.}
do_encrypt_update*: proc (a0: ptr struct_st_ptls_aead_context_t_536871668;
a1: pointer; a2: pointer; a3: csize_t): csize_t {.
cdecl.}
do_encrypt_final*: proc (a0: ptr struct_st_ptls_aead_context_t_536871668;
a1: pointer): csize_t {.cdecl.}
do_encrypt*: proc (a0: ptr struct_st_ptls_aead_context_t_536871668;
a1: pointer; a2: pointer; a3: csize_t; a4: uint64;
a5: pointer; a6: csize_t;
a7: ptr ptls_aead_supplementary_encryption_t_536871666): void {.
cdecl.}
do_encrypt_v*: proc (a0: ptr struct_st_ptls_aead_context_t_536871668;
a1: pointer; a2: ptr ptls_iovec_t_536871640;
a3: csize_t; a4: uint64; a5: pointer; a6: csize_t): void {.
cdecl.}
do_decrypt*: proc (a0: ptr struct_st_ptls_aead_context_t_536871668;
a1: pointer; a2: pointer; a3: csize_t; a4: uint64;
a5: pointer; a6: csize_t): csize_t {.cdecl.}
struct_st_ptls_aead_algorithm_t_tls12_t {.pure, inheritable, bycopy.} = object
fixed_iv_size*: csize_t
record_iv_size*: csize_t
struct_st_ptls_aead_algorithm_t_536871669 {.pure, inheritable, bycopy.} = object
name*: cstring ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/picotls/include/picotls.h:505:22
confidentiality_limit*: uint64
integrity_limit*: uint64
ctr_cipher*: ptr ptls_cipher_algorithm_t_536871662
ecb_cipher*: ptr ptls_cipher_algorithm_t_536871662
key_size*: csize_t
iv_size*: csize_t
tag_size*: csize_t
tls12*: struct_st_ptls_aead_algorithm_t_tls12_t
non_temporal* {.bitsize: 1'i64.}: cuint
align_bits*: uint8
context_size*: csize_t
setup_crypto*: proc (a0: ptr ptls_aead_context_t_536871672; a1: cint;
a2: pointer; a3: pointer): cint {.cdecl.}
ptls_aead_context_t_536871671 = struct_st_ptls_aead_context_t_536871668 ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/picotls/include/picotls.h:500:3
ptls_aead_algorithm_t_536871673 = struct_st_ptls_aead_algorithm_t_536871670 ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/picotls/include/picotls.h:566:3
ptls_hash_final_mode_t_536871677 = enum_en_ptls_hash_final_mode_t_536871676 ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/picotls/include/picotls.h:584:3
struct_st_ptls_hash_context_t_536871679 {.pure, inheritable, bycopy.} = object
update*: proc (a0: ptr struct_st_ptls_hash_context_t_536871680; a1: pointer;
a2: csize_t): void {.cdecl.} ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/picotls/include/picotls.h:589:16
final*: proc (a0: ptr struct_st_ptls_hash_context_t_536871680; a1: pointer;
a2: ptls_hash_final_mode_t_536871678): void {.cdecl.}
clone_private*: proc (a0: ptr struct_st_ptls_hash_context_t_536871680): ptr struct_st_ptls_hash_context_t_536871680 {.
cdecl.}
ptls_hash_context_t_536871681 = struct_st_ptls_hash_context_t_536871680 ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/picotls/include/picotls.h:602:3
struct_st_ptls_hash_algorithm_t_536871683 {.pure, inheritable, bycopy.} = object
name*: cstring ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/picotls/include/picotls.h:607:22
block_size*: csize_t
digest_size*: csize_t
create*: proc (): ptr ptls_hash_context_t_536871682 {.cdecl.}
empty_digest*: array[64'i64, uint8]
ptls_hash_algorithm_t_536871685 = struct_st_ptls_hash_algorithm_t_536871684 ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/picotls/include/picotls.h:628:3
struct_st_ptls_cipher_suite_t_536871687 {.pure, inheritable, bycopy.} = object
id*: uint16 ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/picotls/include/picotls.h:630:22
aead*: ptr ptls_aead_algorithm_t_536871674
hash*: ptr ptls_hash_algorithm_t_536871686
name*: cstring
ptls_cipher_suite_t_536871689 = struct_st_ptls_cipher_suite_t_536871688 ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/picotls/include/picotls.h:647:3
struct_st_ptls_message_emitter_t_536871691 {.pure, inheritable, bycopy.} = object
buf*: ptr ptls_buffer_t_536871644 ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/picotls/include/picotls.h:651:16
enc*: ptr struct_st_ptls_traffic_protection_t
record_header_length*: csize_t
begin_message*: proc (a0: ptr struct_st_ptls_message_emitter_t_536871692): cint {.
cdecl.}
commit_message*: proc (a0: ptr struct_st_ptls_message_emitter_t_536871692): cint {.
cdecl.}
ptls_message_emitter_t_536871693 = struct_st_ptls_message_emitter_t_536871692 ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/picotls/include/picotls.h:657:3
struct_st_ptls_hpke_kem_t_536871695 {.pure, inheritable, bycopy.} = object
id*: uint16 ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/picotls/include/picotls.h:662:22
keyex*: ptr ptls_key_exchange_algorithm_t_536871654
hash*: ptr ptls_hash_algorithm_t_536871686
ptls_hpke_kem_t_536871697 = struct_st_ptls_hpke_kem_t_536871696 ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/picotls/include/picotls.h:666:3
struct_st_ptls_hpke_cipher_suite_id_t_536871699 {.pure, inheritable, bycopy.} = object
kdf*: uint16 ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/picotls/include/picotls.h:668:16
aead*: uint16
ptls_hpke_cipher_suite_id_t_536871701 = struct_st_ptls_hpke_cipher_suite_id_t_536871700 ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/picotls/include/picotls.h:671:3
struct_st_ptls_hpke_cipher_suite_t_536871703 {.pure, inheritable, bycopy.} = object
id*: ptls_hpke_cipher_suite_id_t_536871702 ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/picotls/include/picotls.h:673:22
name*: cstring
hash*: ptr ptls_hash_algorithm_t_536871686
aead*: ptr ptls_aead_algorithm_t_536871674
ptls_hpke_cipher_suite_t_536871705 = struct_st_ptls_hpke_cipher_suite_t_536871704 ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/picotls/include/picotls.h:678:3
struct_st_ptls_client_hello_psk_identity_t_536871707 {.pure, inheritable,
bycopy.} = object
identity*: ptls_iovec_t_536871640 ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/picotls/include/picotls.h:690:16
obfuscated_ticket_age*: uint32
binder*: ptls_iovec_t_536871640
ptls_client_hello_psk_identity_t_536871709 = struct_st_ptls_client_hello_psk_identity_t_536871708 ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/picotls/include/picotls.h:694:3
struct_st_ptls_on_client_hello_parameters_t_negotiated_protocols_t {.pure,
inheritable, bycopy.} = object
list*: ptr ptls_iovec_t_536871640
count*: csize_t
struct_st_ptls_on_client_hello_parameters_t_signature_algorithms_t {.pure,
inheritable, bycopy.} = object
list*: ptr uint16
count*: csize_t
struct_st_ptls_on_client_hello_parameters_t_certificate_compression_algorithms_t {.
pure, inheritable, bycopy.} = object
list*: ptr uint16
count*: csize_t
struct_st_ptls_on_client_hello_parameters_t_server_certificate_types_t {.pure,
inheritable, bycopy.} = object
list*: ptr uint8
count*: csize_t
struct_st_ptls_on_client_hello_parameters_t_psk_identities_t {.pure,
inheritable, bycopy.} = object
list*: ptr ptls_client_hello_psk_identity_t_536871710
count*: csize_t
struct_st_ptls_on_client_hello_parameters_t_536871711 {.pure, inheritable,
bycopy.} = object
server_name*: ptls_iovec_t_536871640 ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/picotls/include/picotls.h:699:16
raw_message*: ptls_iovec_t_536871640
cipher_suites*: ptls_iovec_t_536871640
negotiated_protocols*: struct_st_ptls_on_client_hello_parameters_t_negotiated_protocols_t
signature_algorithms*: struct_st_ptls_on_client_hello_parameters_t_signature_algorithms_t
certificate_compression_algorithms*: struct_st_ptls_on_client_hello_parameters_t_certificate_compression_algorithms_t
server_certificate_types*: struct_st_ptls_on_client_hello_parameters_t_server_certificate_types_t
psk_identities*: struct_st_ptls_on_client_hello_parameters_t_psk_identities_t
incompatible_version* {.bitsize: 1'i64.}: cuint
ptls_on_client_hello_parameters_t_536871713 = struct_st_ptls_on_client_hello_parameters_t_536871712 ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/picotls/include/picotls.h:739:3
struct_st_ptls_get_time_t_536871715 {.pure, inheritable, bycopy.} = object
cb*: proc (a0: ptr struct_st_ptls_get_time_t_536871716): uint64 {.cdecl.} ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/picotls/include/picotls.h:744:1
ptls_get_time_t_536871717 = struct_st_ptls_get_time_t_536871716 ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/picotls/include/picotls.h:744:1
struct_st_ptls_on_client_hello_t_536871719 {.pure, inheritable, bycopy.} = object
cb*: proc (a0: ptr struct_st_ptls_on_client_hello_t_536871720;
a1: ptr ptls_t_536871630;
a2: ptr ptls_on_client_hello_parameters_t_536871714): cint {.
cdecl.} ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/picotls/include/picotls.h:749:1
ptls_on_client_hello_t_536871721 = struct_st_ptls_on_client_hello_t_536871720 ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/picotls/include/picotls.h:749:1
struct_st_ptls_emit_certificate_t_536871723 {.pure, inheritable, bycopy.} = object
cb*: proc (a0: ptr struct_st_ptls_emit_certificate_t_536871724;
a1: ptr ptls_t_536871630; a2: ptr ptls_message_emitter_t_536871694;
a3: ptr ptls_key_schedule_t_536871636; a4: ptls_iovec_t_536871640;
a5: cint; a6: ptr uint16; a7: csize_t): cint {.cdecl.} ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/picotls/include/picotls.h:753:1
ptls_emit_certificate_t_536871725 = struct_st_ptls_emit_certificate_t_536871724 ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/picotls/include/picotls.h:753:1
struct_st_ptls_async_job_t_536871727 {.pure, inheritable, bycopy.} = object
destroy_private*: proc (a0: ptr struct_st_ptls_async_job_t_536871728): void {.
cdecl.} ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/picotls/include/picotls.h:763:16
get_fd*: proc (a0: ptr struct_st_ptls_async_job_t_536871728): cint {.cdecl.}
set_completion_callback*: proc (a0: ptr struct_st_ptls_async_job_t_536871728;
a1: proc (a0: pointer): void {.cdecl.};
a2: pointer): void {.cdecl.}
ptls_async_job_t_536871729 = struct_st_ptls_async_job_t_536871728 ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/picotls/include/picotls.h:773:3
struct_st_ptls_sign_certificate_t_536871731 {.pure, inheritable, bycopy.} = object
cb*: proc (a0: ptr struct_st_ptls_sign_certificate_t_536871732;
a1: ptr ptls_t_536871630; a2: ptr ptr ptls_async_job_t_536871730;
a3: ptr uint16; a4: ptr ptls_buffer_t_536871644;
a5: ptls_iovec_t_536871640; a6: ptr uint16; a7: csize_t): cint {.
cdecl.} ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/picotls/include/picotls.h:778:1
ptls_sign_certificate_t_536871733 = struct_st_ptls_sign_certificate_t_536871732 ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/picotls/include/picotls.h:778:1
struct_st_ptls_verify_certificate_t_536871735 {.pure, inheritable, bycopy.} = object
cb*: proc (a0: ptr struct_st_ptls_verify_certificate_t_536871736;
a1: ptr ptls_t_536871630; a2: cstring; a3: proc (a0: pointer;
a1: uint16; a2: ptls_iovec_t_536871640; a3: ptls_iovec_t_536871640): cint {.
cdecl.}; a4: ptr pointer; a5: ptr ptls_iovec_t_536871640; a6: csize_t): cint {.
cdecl.} ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/picotls/include/picotls.h:789:16
algos*: ptr uint16
ptls_verify_certificate_t_536871737 = struct_st_ptls_verify_certificate_t_536871736 ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/picotls/include/picotls.h:797:3
struct_st_ptls_encrypt_ticket_t_536871739 {.pure, inheritable, bycopy.} = object
cb*: proc (a0: ptr struct_st_ptls_encrypt_ticket_t_536871740;
a1: ptr ptls_t_536871630; a2: cint; a3: ptr ptls_buffer_t_536871644;
a4: ptls_iovec_t_536871640): cint {.cdecl.} ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/picotls/include/picotls.h:804:1
ptls_encrypt_ticket_t_536871741 = struct_st_ptls_encrypt_ticket_t_536871740 ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/picotls/include/picotls.h:804:1
struct_st_ptls_save_ticket_t_536871743 {.pure, inheritable, bycopy.} = object
cb*: proc (a0: ptr struct_st_ptls_save_ticket_t_536871744; a1: ptr ptls_t_536871630;
a2: ptls_iovec_t_536871640): cint {.cdecl.} ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/picotls/include/picotls.h:808:1
ptls_save_ticket_t_536871745 = struct_st_ptls_save_ticket_t_536871744 ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/picotls/include/picotls.h:808:1
struct_st_ptls_log_event_t_536871747 {.pure, inheritable, bycopy.} = object
cb*: proc (a0: ptr struct_st_ptls_log_event_t_536871748; a1: ptr ptls_t_536871630;
a2: cstring; a3: cstring): void {.cdecl, varargs.} ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/picotls/include/picotls.h:812:16
ptls_log_event_t_536871749 = struct_st_ptls_log_event_t_536871748 ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/picotls/include/picotls.h:815:3
struct_st_ptls_update_open_count_t_536871751 {.pure, inheritable, bycopy.} = object
cb*: proc (a0: ptr struct_st_ptls_update_open_count_t_536871752; a1: ssize_t_536871754): void {.
cdecl.} ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/picotls/include/picotls.h:819:1
ssize_t_536871753 = compiler_ssize_t_536871848 ## Generated based on /usr/include/x86_64-linux-gnu/sys/types.h:108:19
ptls_update_open_count_t_536871755 = struct_st_ptls_update_open_count_t_536871752 ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/picotls/include/picotls.h:819:1
struct_st_ptls_update_traffic_key_t_536871757 {.pure, inheritable, bycopy.} = object
cb*: proc (a0: ptr struct_st_ptls_update_traffic_key_t_536871758;
a1: ptr ptls_t_536871630; a2: cint; a3: csize_t; a4: pointer): cint {.
cdecl.} ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/picotls/include/picotls.h:824:1
ptls_update_traffic_key_t_536871759 = struct_st_ptls_update_traffic_key_t_536871758 ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/picotls/include/picotls.h:824:1
struct_st_ptls_on_extension_t_536871761 {.pure, inheritable, bycopy.} = object
cb*: proc (a0: ptr struct_st_ptls_on_extension_t_536871762; a1: ptr ptls_t_536871630;
a2: uint8; a3: uint16; a4: ptls_iovec_t_536871640): cint {.cdecl.} ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/picotls/include/picotls.h:828:1
ptls_on_extension_t_536871763 = struct_st_ptls_on_extension_t_536871762 ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/picotls/include/picotls.h:828:1
struct_st_ptls_decompress_certificate_t_536871765 {.pure, inheritable, bycopy.} = object
supported_algorithms*: ptr uint16 ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/picotls/include/picotls.h:832:16
cb*: proc (a0: ptr struct_st_ptls_decompress_certificate_t_536871766;
a1: ptr ptls_t_536871630; a2: uint16; a3: ptls_iovec_t_536871640;
a4: ptls_iovec_t_536871640): cint {.cdecl.}
ptls_decompress_certificate_t_536871767 = struct_st_ptls_decompress_certificate_t_536871766 ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/picotls/include/picotls.h:842:3
struct_st_ptls_ech_create_opener_t_536871769 {.pure, inheritable, bycopy.} = object
cb*: proc (a0: ptr struct_st_ptls_ech_create_opener_t_536871770;
a1: ptr ptr ptls_hpke_kem_t_536871698;
a2: ptr ptr ptls_hpke_cipher_suite_t_536871706; a3: ptr ptls_t_536871630;
a4: uint8; a5: ptls_hpke_cipher_suite_id_t_536871702;
a6: ptls_iovec_t_536871640; a7: ptls_iovec_t_536871640): ptr ptls_aead_context_t_536871672 {.
cdecl.} ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/picotls/include/picotls.h:848:1
ptls_ech_create_opener_t_536871771 = struct_st_ptls_ech_create_opener_t_536871770 ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/picotls/include/picotls.h:848:1
struct_st_ptls_raw_extension_t_536871773 {.pure, inheritable, bycopy.} = object
type_field*: uint16 ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/picotls/include/picotls.h:1059:16
data*: ptls_iovec_t_536871640
ptls_raw_extension_t_536871775 = struct_st_ptls_raw_extension_t_536871774 ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/picotls/include/picotls.h:1062:3
ptls_early_data_acceptance_t_536871779 = enum_en_ptls_early_data_acceptance_t_536871778 ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/picotls/include/picotls.h:1068:3
struct_st_ptls_handshake_properties_t_anon0_t_client_t_negotiated_protocols_t {.
pure, inheritable, bycopy.} = object
list*: ptr ptls_iovec_t_536871640
count*: csize_t
struct_st_ptls_handshake_properties_t_anon0_t_client_t_ech_t {.pure,
inheritable, bycopy.} = object
configs*: ptls_iovec_t_536871640
retry_configs*: ptr ptls_iovec_t_536871640
struct_st_ptls_handshake_properties_t_anon0_t_client_t {.pure, inheritable,
bycopy.} = object
negotiated_protocols*: struct_st_ptls_handshake_properties_t_anon0_t_client_t_negotiated_protocols_t
session_ticket*: ptls_iovec_t_536871640
max_early_data_size*: ptr csize_t
early_data_acceptance*: ptls_early_data_acceptance_t_536871780
negotiate_before_key_exchange* {.bitsize: 1'i64.}: cuint
ech*: struct_st_ptls_handshake_properties_t_anon0_t_client_t_ech_t
struct_st_ptls_handshake_properties_t_anon0_t_server_t_selected_psk_binder_t {.
pure, inheritable, bycopy.} = object
base*: array[64'i64, uint8]
len*: csize_t
struct_st_ptls_handshake_properties_t_anon0_t_server_t_cookie_t {.pure,
inheritable, bycopy.} = object
key*: pointer
additional_data*: ptls_iovec_t_536871640
struct_st_ptls_handshake_properties_t_anon0_t_server_t {.pure, inheritable,
bycopy.} = object
selected_psk_binder*: struct_st_ptls_handshake_properties_t_anon0_t_server_t_selected_psk_binder_t
cookie*: struct_st_ptls_handshake_properties_t_anon0_t_server_t_cookie_t
enforce_retry* {.bitsize: 1'i64.}: cuint
retry_uses_cookie* {.bitsize: 1'i64.}: cuint
struct_st_ptls_handshake_properties_t_anon0_t {.union, bycopy.} = object
client*: struct_st_ptls_handshake_properties_t_anon0_t_client_t
server*: struct_st_ptls_handshake_properties_t_anon0_t_server_t
struct_st_ptls_handshake_properties_t_536871781 {.pure, inheritable, bycopy.} = object
anon0*: struct_st_ptls_handshake_properties_t_anon0_t ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/picotls/include/picotls.h:1078:16
additional_extensions*: ptr ptls_raw_extension_t_536871776
collect_extension*: proc (a0: ptr ptls_t_536871630;
a1: ptr struct_st_ptls_handshake_properties_t_536871782;
a2: uint16): cint {.cdecl.}
collected_extensions*: proc (a0: ptr ptls_t_536871630;
a1: ptr struct_st_ptls_handshake_properties_t_536871782;
a2: ptr ptls_raw_extension_t_536871776): cint {.
cdecl.}
ptls_handshake_properties_t_536871783 = struct_st_ptls_handshake_properties_t_536871782 ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/picotls/include/picotls.h:1167:3
struct_st_ptls_log_state_t_536871785 {.pure, inheritable, bycopy.} = object
active_conns*: uint32 ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/picotls/include/picotls.h:1492:8
generation*: uint64
struct_st_ptls_log_point_t_536871787 {.pure, inheritable, bycopy.} = object
name*: cstring ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/picotls/include/picotls.h:1506:8
state*: struct_st_ptls_log_state_t_536871786
struct_st_ptls_log_conn_state_t_536871789 {.pure, inheritable, bycopy.} = object
random_private*: cfloat ## Generated based on /home/r/vacp2p/nim-ngtcp2/libs/picotls/include/picotls.h:1514:16
address*: struct_in6_addr_536871792
state*: struct_st_ptls_log_state_t_536871786
struct_in6_addr_compiler_in6_u_t {.union, bycopy.} = object