Testing Reliable UDP class
Hi everybody, I have written a reliable UDP class and I now have the problem of testing it. I tested it running a server on my website-server and a client on my dsl-connected PC. It worked ;)! But the connection is very good! There were less than 1% packats lost, non dublicated and none out of order. Any ideas of hown I could do a test which proofs that my class works under any condition? Thansk! Nathan
Write a test program, keep a server up 24/7 and post the source code here(With binary) to a test client so that lots of people can run it.
Make sure you add automatic detection code for connections or have people choose from a list(Having a buttload of ploss is common on a bad dialup)
Make sure you add automatic detection code for connections or have people choose from a list(Having a buttload of ploss is common on a bad dialup)
---Yesterday is history, tomorrow is a mystery, today is a gift and that's why it's called the present.
You can use netlimiter ( http://www.netlimiter.com ) to cap a program's top u/l and d/l speeds. I'm pretty sure there are programs out there to simulate lag.
In your send packet and recieve packet functions, randomly drop each packet or delay it. This will be easier or harder depending on how your code is designed.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement