Commit 7fbbe86ff3b4ae8c843d23ad4a32f874eb2216d7

Calin Culianu 2023-10-14T23:53:36

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.