RE: [GD-General] UDP questions
Brought to you by:
vexxed72
From: Brian H. <bri...@py...> - 2002-07-01 20:34:36
|
> Taking an extremely quick look at the link you sent, it looks > like the methods he is showing are for a stream (TCP) socket, > and not a datagram (UDP) socket. Yeah, he bounces around a bit between the two. I'm leery of saying the guy is wrong, because the guide is extremely comprehensive -- I don't see how you could write something that big and in-depth and screw up something as fundamental as UDP packet delivery constraints. So I was assuming I didn't understand what he was saying (entirely likely). > Calling recv will receive a single, complete datagram. Which his comments contradict. This would seem _especially_ true of a TCP implementation. > However, the following may be true (does someone want to > verify these): > > - It may not be unique True. > - It may be corrupt This I'm not sure about -- isn't a CRC check part of the UDP and TCP protocols, or is this something that every application is expected to implement? I know that some application protocols do CRC (e.g. Quake) but I was under the impression this was more to stop cheating, not to verify that the data wasn't corrupted. > - It may be out of order Definitely. Brian |