ARM is little endian and IO is big endian. Network order is big endian. htons should do the trick. However using a 16-bit transfer should do this for you automatically.
Statistics: Posted by dthacher — Sat Nov 16, 2024 10:21 am