(feat) Full QUIC + TLS 1.3 state machine - without networking or UDP socket baked in
I'm trying to implement this https://github.com/endel/quic-zig/tree/wasm-experiment/wasm design pattern using Quinn
Where raw UDP packets enter the [...] state machine
Where decoded application data is available to read
Where to write response data back into the state machine
Where encrypted response packets come out to send back
Summary of the data flow:
```
UDP packet in → feedPacket() → qz_recv_packet()
│
qz_poll_event()
│
┌─────────────────────┼──────────────────────┐
│ │ │
EVT_WT_SESSION EVT_WT_STREAM_DATA EVT_WT_DATAGRAM
│ │ │
qz_wt_accept_session() qz_wt_read_stream() qz_datagram_recv()
← decoded data here ← decoded data here
│ │
qz_wt_send_stream() qz_wt_send_datagram()
→ write response here → write response here
│ │
qz_send_packets()
│
encrypted QUIC packets → send to network
```
关闭于 2026-03-29 1 条评论