- [Lab1 - UDP] (https://github.com/pedro-c/FEUP-SDIS/tree/master/Lab1)
- [Lab2 - UDP Multicast with Java] (https://github.com/pedro-c/FEUP-SDIS/tree/master/Lab2)
- [Lab3 - TCP] (https://github.com/pedro-c/FEUP-SDIS/tree/master/Lab3)
Open two terminals inside the src folder. On the first terminal run:
$javac Server.java
$java Server 4445
On the second terminal run:
$javac Client.java
$java Client localhost 4445 REGISTER 11-AA-11 Condutor
$java Client localhost 4445 LOOKUP 11-AA-11
Open two terminals inside the src folder. On the first terminal run:
$javac MulticastServer.java
$java MulticastServer 4445 224.0.0.1 4446
On the second terminal run:
$javac Client.java
$java Client 224.0.0.1 4446 REGISTER 11-AA-11 Condutor
$java Client 224.0.0.1 4446 LOOKUP 11-AA-11
###Documentation
- MulticastSocket (Java Platform SE 8)
- A simple example on java.net.MulticastSocket
- Oracle's MulticastSocket's Tutorial
This server is able to serve concurrent client requests.
Open two terminals inside the src folder. On the first terminal run:
$javac Server.java
$java Server 4445
On the second terminal run:
$javac Client.java
$java Client localhost 4445 REGISTER 11-AA-11 Condutor
$java Client localhost 4445 LOOKUP 11-AA-11