homework for teleinformatic class
To launch the pseudoHDLC:
- Open two terminal windows at the jar file location pseudoHDLC.jar
- In each of them enter the command: java -jar pseudoHDLC.jar

- In the first, enter 1, then press enter to start the receiver.
- In the second box, enter 2 and then press enter to start the transmitter.

- you can now, in the transmitter, press 1 to send the frame request for connection with go back n.
- the server will receive it and respond with the confirmation frame

- A menu will now appear from which you can select the test that you want to test.

- If you select the first, it will be an error free transmission:

- you can then press 2 then enter to go to the next test

- if you press twice again you will turn the keys that will generate a frame
lost. you will need to enter the name of the test file as before which should be
in the same path as you file pseudoHDLC.jar - Test 2 will change a frame and you will get the protocol behavior
wish

- repeating the previous steps you can start the test 3

- then test 4 ....
ressources : https://docs.oracle.com/javase/tutorial/networking/sockets/readingWriting.html