8#define FRAME_NEW_TOKEN 0x07
9#define FRAME_RETIRE_CID 0x19
10#define FRAME_PATH_CHALLENGE 0x1a
11#define FRAME_PATH_RESPONSE 0x1b
12#define FRAME_HANDSHAKE_DONE 0x1e
32usz retire_cid_decode(
const u8* buf,
usz n,
u64* seq);
36usz path_encode(
u8* buf,
usz cap,
u8 type,
const u8 data[PATH_DATA]);
37usz path_decode(
const u8* buf,
usz n,
u8 type,
u8 data[PATH_DATA]);
40usz handshake_done_encode(
u8* buf,
usz cap);
41usz handshake_done_decode(
const u8* buf,
usz n);
NEW_TOKEN (19.7): a token length and a view into the token (not copied).
Definition connctl.h:18
u64 length
Token length in bytes (0 is permitted).
Definition connctl.h:20
const u8 * token
View into the token bytes; not copied, the buffer must outlive uses.
Definition connctl.h:22
u64 usz
unsigned size (size_t equivalent)
Definition types.h:20
unsigned char u8
unsigned 8-bit integer / byte
Definition types.h:18
unsigned long u64
unsigned 64-bit integer
Definition types.h:13