Yah, I was just reading some more about the MTU and Wikipedia is saying that the Ethernet limit is 1500 bytes and that most of the internet supports that. What I'm not sure of yet is whether I have to code the re-ordering of fragmented packet parts myself or whether the IP protocol does that beneath UDP.
[Edit] It appears IP handles this, and if part of the original packet which was fragmented gets lost then the entire packet is compromised and won't be delivered, requiring a resend.[/edit]
I recognize that I will need to do all those other things eventually, like handshaking and message ordering and reliability etc, but that's really a layer on top of the basic use of UDP. At this point I don't care so much what is sent or whether it is received or in order, I just want to know the finer points of how to get something sending and receiving at all.
"But your app has to make sure that the "letters have a valid weight", are sent with "signature needed" etc to tell it in paper mail terms."
I did not understand what you meant in that sentence at all. Are you just saying that if I want all packets to arrive reliably I will need to say in the packet data itself that I want an acknowledgment?
[Edit] It appears IP handles this, and if part of the original packet which was fragmented gets lost then the entire packet is compromised and won't be delivered, requiring a resend.[/edit]
I recognize that I will need to do all those other things eventually, like handshaking and message ordering and reliability etc, but that's really a layer on top of the basic use of UDP. At this point I don't care so much what is sent or whether it is received or in order, I just want to know the finer points of how to get something sending and receiving at all.
"But your app has to make sure that the "letters have a valid weight", are sent with "signature needed" etc to tell it in paper mail terms."
I did not understand what you meant in that sentence at all. Are you just saying that if I want all packets to arrive reliably I will need to say in the packet data itself that I want an acknowledgment?