Compile Server using javac Server.java
and Client using javac Client.java
.
Create a messages.txt file which contains the messages that the client will read and send to the server
Then run server using java Server <port number> <probability of error> <channel delay (ms)>
Example: java Server 8080 0.2 500
Run Client using java Client <hostname> <port> <messages filepath>
Example: java Client localhost 8080 ./messages.txt