Welcome guys..

This is programmer sharing his collection with all you ppl out there. This blog contains complete codes of java , c , c++ , unix , java script , applets , swing for learning purpose only. I try to add approx 10 new complete codes daily. Lets share out knowledge and materials in here. All your comments and votes are most welcomed.

Get your codes from..

Sunday, May 11, 2008

This code shows a simple TCP which has checksum, error control, packet loss and simulation for a random network. You can give the time slice, packet loss, corrupt packet, and random number range. The time slice indicates the time it takes the packet to reach from A_side(client) to B_Side(server), the more the packet loss probability the more packets will be lost before send to the server. The higher the packet corrupt probability the more packets will be corrupted before send to the server. If random seed is high, the range of random number generated will be more. It will be easier for you to trace the program if the range is less. ex: 5. Try to use a timer value about 1000 if you want to send the message from client to server.

Download

No comments:

Project Source Codes