There is no handshake for UDP.
As a rule don't let your packet size go over 1500 bytes.
I would design around 64, 128, 256, or 512 size packets.
While you can send characters one at a time and cause many small packets there would be less overhead to send a whole line at a time. So buffer the characters till you get a carrage return.
Hope this helps.
As a rule don't let your packet size go over 1500 bytes.
I would design around 64, 128, 256, or 512 size packets.
While you can send characters one at a time and cause many small packets there would be less overhead to send a whole line at a time. So buffer the characters till you get a carrage return.
Hope this helps.