Skip to content

Commit 9797da8

Browse files
authored
Merge pull request ddnet#9393 from ChillerDragon/pr_flag_docs
Deobfuscate packet flag comment a bit
2 parents 104baae + abc9ae7 commit 9797da8

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

src/engine/shared/network.h

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,19 @@ class CPacker;
1919
packet header: 3 bytes
2020
unsigned char flags_ack; // 6bit flags, 2bit ack
2121
0.6: ORNCaaAA
22-
0.6.5: ORNCTUAA
22+
0.6.5: ORNCT-AA
2323
0.7: --NORCAA
2424
25+
O = flag compression
26+
R = flag resend
27+
N = flag connless
28+
C = flag control
29+
T = flag token (0.6.5 only not supported by ddnet)
30+
- = unused, should be zero
31+
a = should be zero otherwise it messes up the ack number
32+
A = bit of ack number
33+
34+
2535
unsigned char ack; // 8 bit ack
2636
unsigned char num_chunks; // 8 bit chunks
2737

0 commit comments

Comments
 (0)