I am having real trouble writing a basic client/server program in C that passes UDP packets and wonder if someone could please help?
I fully understand how to get the client to send a string to the listening server (this part already works) but my question is how can I impliment the following?
I need to make and send with each packet a udp packet header (struct) that holds a sequence number and a flag to mark the start and end.
I need to delcare a packet payload size (say 10 bytes) and split whatever file is passed, into packets of this size and send them to the server.
I need to display the number of packets passed to server (on the server) and check for out of sequence packets
The connection need only be one way. I guess this is like a simulation of tcp (without acknowledgement). Unfortuantly I can not use TCP.
I hope someone is an experienced socket programmer or alike!!
This is killing me :(