Author :
Calin Culianu
Date :
2023-10-14 23:53:36
Hash :7fbbe86f Message :Fix unaligned access + missing frame length
get_ws_frame:
- had potentially unaligned access; fixed.
- was not reading the full 8 bytes in the 64-bit case (was using the
incorrect htons); fixed.
make_ws_frame:
- wasn't writing the length in the 8-byte case.
Also switched both functions to use size_t rather than int where
appropriate.