Hacker News new | ask | show | jobs
by priomsrb 4446 days ago
Makes sense. But 64k of data seems oddly large just to ID a message.
1 comments

64k is the max value of a 2-byte unsigned int, as 2^16 - 1 = 65535; is that the size of the length prefix?
I looked at the code and I'm pretty sure I saw that the payload size variable was a long int, so I was confused by this too.