| ▲ | mgaunard 6 hours ago | |||||||
It's 2026 and I'm still defining my own messaging and wire protocols. Plain C structs that fit in a UDP datagram that you can reinterpret_cast from is still best. You can still provide schemas and UUIDs for that, and dynamically transcode to JSON or whatever. | ||||||||
| ▲ | bluGill an hour ago | parent | next [-] | |||||||
Until you have to work with big and little endian systems. There are other weirdness about how different computers represent things as well. utf-8 / ucs-16 strings (or other code pages). Not all floats are ieee-754. Still when you can ignore all those issues what you did is really easy and often works. | ||||||||
| ▲ | pjc50 an hour ago | parent | prev | next [-] | |||||||
Provided that: | ||||||||
| ▲ | benterix 6 hours ago | parent | prev [-] | |||||||
If you decide to use UDP, do you ignore the transmission errors or write the handling layer on your own? | ||||||||
| ||||||||