Skip to content

Commit

Permalink
Merge pull request ddnet#9393 from ChillerDragon/pr_flag_docs
Browse files Browse the repository at this point in the history
Deobfuscate packet flag comment a bit
  • Loading branch information
heinrich5991 authored Dec 16, 2024
2 parents 104baae + abc9ae7 commit 9797da8
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/engine/shared/network.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,19 @@ class CPacker;
packet header: 3 bytes
unsigned char flags_ack; // 6bit flags, 2bit ack
0.6: ORNCaaAA
0.6.5: ORNCTUAA
0.6.5: ORNCT-AA
0.7: --NORCAA
O = flag compression
R = flag resend
N = flag connless
C = flag control
T = flag token (0.6.5 only not supported by ddnet)
- = unused, should be zero
a = should be zero otherwise it messes up the ack number
A = bit of ack number
unsigned char ack; // 8 bit ack
unsigned char num_chunks; // 8 bit chunks
Expand Down

0 comments on commit 9797da8

Please sign in to comment.