I am using Flatbuffers with C++ and I prepend uint16_t enum infront of the flatbuffer message and I send it over TCP with Boost Asio. More for FlatBuffers you c
uint16_t