https://github.com/urbanclimatefr/stop-and-wait-go-back-n-udp
Implementation of Stop-and-Wait and Go-Back-N over UDP in Java.
https://github.com/urbanclimatefr/stop-and-wait-go-back-n-udp
Last synced: 7 months ago
JSON representation
Implementation of Stop-and-Wait and Go-Back-N over UDP in Java.
- Host: GitHub
- URL: https://github.com/urbanclimatefr/stop-and-wait-go-back-n-udp
- Owner: urbanclimatefr
- License: mit
- Created: 2022-05-22T10:07:15.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-05-22T10:14:49.000Z (over 3 years ago)
- Last Synced: 2025-01-17T18:56:56.158Z (9 months ago)
- Language: Java
- Size: 903 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# STOP-AND-WAIT-GO-BACK-N-UDP
Implementation of Stop-and-Wait and Go-Back-N over UDP in Java.This file allows a data file (data.txt) to be read and prints the output.
Usage
In this sender-receiver implementation,
the receiver is the listener.
With that in mind, the receiver must always be run before the sender is run.
The sender will just stall until it finds a listener to connect to.First get into the directory and compile all of the Java files.
cd GBN_submit
javac *.java
Commands to run the program:
java Receiver
java Sender localhostFor example, can be 50.
Example of commands:
java Receiver 50 data.txt
java Sender localhost 50 data.txt