Quote Originally Posted by ^NyAw^ View Post
What do you mean with that the structures are aligned?
Check what sizeof( MB_Request ) returns. It contains only 5 bytes of data, yet it's bigger because of performance reasons (i.e. it contains holes between fields). Most likely the protocol expects packed data, so you have to tell your compiler to treat those structures differently.

http://en.wikipedia.org/wiki/Data_structure_alignment

Quote Originally Posted by ^NyAw^ View Post
And how can I maintain the proper endianess, I think that I'm sending the data as big endian.
QSysInfo::ByteOrder will tell you whether you are using big-endian or little-endian system and you have to convert values to endianness required by the protocol.