udp compositing binary data for sending.

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.
sendto() just takes a pointer to a block of data and a length of the buffer.

What are you having trouble with?
Topic archived. No new replies allowed.