Posted by Phil Frisbie, Jr. on February 02, 2006 at 13:06:04:
In Reply to: Network Memory Free ? posted by Selles on January 30, 2006 at 22:51:19:
(copy of message posted to HawkNL message board)
: Hi Again, I'm getting to create my game network system.. but, what could I make case the net memory it ended? is there a function that return the free memory in bytes?
What free memory?
: My server send packets UDP to the client but don't know when must stop.. even so the server will send the package and it won't be received in the client because the net memory is full.. I remember that Phil Frisbie said that it should be made a system that controls loss of packages, but I don't have idea of how to begin that..
Basically, in a game you should make it so that lost UDP packets are OK, and your game will recover. But there may be some packets that MUST get through, so you need to add an acknowledgment message (ack) to your game protocol for these 'reliable' packets, and resend the packet if you do not get the ack. Of course, you also need to handle duplicated packets since you might resend before you get the ack.
Phil