I am trying to composite binary data to send in a message via udp, in a linux environment.
I am using sendto().
How do I composite a packet to do this, the binary data I will be compositing into a packet before a send will be of various types. I have tried sprintf and this does not work.