Sign in to follow this  
LonelyStar

Testing Reliable UDP class

Recommended Posts

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

Share this post


Link to post
Share on other sites
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)

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this