Skip to content

Instantly share code, notes, and snippets.

@bmwill
bmwill / gist:bfa7a2b64cd5e05c69f40837434a227b
Created November 17, 2022 19:17
quinn-stateless-reset-packet-capture
11:07:12.167816 IP 127.0.0.1.8081 > 127.0.0.1.8080: UDP, length 37
0x0000: 4502 0041 f467 0000 4011 0000 7f00 0001 E..A.g..@.......
0x0010: 7f00 0001 1f91 1f90 002d fe40 3de3 3c50 .........-.@=.<P
0x0020: a5ac 2080 94ec ba54 c1dd b788 6a1d c25a .......T....j..Z
0x0030: fbbe f7a9 ea3a 0b07 58f6 34a4 0a6c e5c3 .....:..X.4..l..
0x0040: 08 .
11:07:12.167992 IP 127.0.0.1.8081 > 127.0.0.1.8080: UDP, length 184
0x0000: 4502 00d4 a6ae 0000 4011 0000 7f00 0001 E.......@.......
0x0010: 7f00 0001 1f91 1f90 00c0 fed3 6ae3 3c50 ............j.<P
0x0020: a5ac 2080 94ab 36ea 0c84 9253 571c 15b0 ......6....SW...
@bmwill
bmwill / futures03_async_await.md
Created August 21, 2019 21:34
Futures 0.3 and Async/Await

OUTDATED

Futures 0.3 and Async/Await

This document will try to give a short tutorial of how to use the new style futures (0.3), how to use Async/Await, and how to use the compatibility layer to interoperate with old futures (0.1) and tokio.

Terminology

When dealing with futures in this new world there are a lot of different parts and it can be difficult to keep things straight at times. As such here is a quick run down of the different parts and what they are.