Implementing reliability in UDP:
- Re ordering on receiver side by using sequence numbers
- Selective repeat
- Stop n Wait protocol without timeout (5 UDP Segments)
Commands to compile the files
gcc UDPserver.c -lpthread -o serv.out
gcc UDPclient.c -lpthread -o cli.out
Commands to run the files
./serv.out 9898
./cli.out 9898
An abstract explanation of the client logic:
An abstract explanation of the server logic: