joaogomes04 / FEUP-SDIS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SDIS - T1G01

Index

  1. [Lab1 - UDP] (https://github.com/pedro-c/FEUP-SDIS/tree/master/Lab1)
  2. [Lab2 - UDP Multicast with Java] (https://github.com/pedro-c/FEUP-SDIS/tree/master/Lab2)
  3. [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

Documentation

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

Guide

###Documentation

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

Documentation

About


Languages

Language:Java 98.4%Language:Shell 1.6%