i don't even understand what is happening

https://github.com/spelka/BestSteamedPear/blob/1c4c0e1d2fc3c5cf7498c6b0a575439ba20fe1a6/src/protocol.h