quote:
Original post by Magmai Kai Holmlor
512 seems a bit small.
Thanks for the analysis Magmai, that''s about the most comprehensive breakdown of a UDP packet I''ve seen
![](smile.gif)
I keep seeing conflicting information about this topic. I know that UDP packets can be bigger than 512 bytes, but from what I understand anything above that runs the risk of the packet splitting apart on its way to the destination, thus doubling or tripling the chances of packet loss. That''s why I (generally) keep mine below that level (easy to do in all cases, I rarely send huge chunks of data at a time, my average packet size runs more like 100-200 bytes for most things). Is that incorrect?
quote:
Original post by kevmo
I found the resource where I got the notion that partial sends could occur: http://www.ecst.csuchico.edu/~beej/guide/net/html/advanced.html#sendall
No, but he''s talking about TCP. The method he uses is the correct one for TCP send calls. For UDP, it wouldn''t be right.