I am working with some packet data. I have created structs to hold the packet data. These structs have been generated by python for a specific networking protocol.
The issue is that due to the fact that the compiler aligns the structures, when I send the data via the networking protocol, the message ends up being longer than I would like. This causes the other device to not recognize the command.
Does anyone know possible a work around this so that my packers are exactly the size the struct should be or is there a way I can turn off memory alignment?