Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
priomsrb
· 12y ago · 0 comments
Makes sense. But 64k of data seems oddly large just to ID a message.
Comments
[–]
tedchs
12y ago
64k is the max value of a 2-byte unsigned int, as 2^16 - 1 = 65535; is that the size of the length prefix?
[–]
stackcollision
12y ago
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.