esame programmazione distribuita + readme

This commit is contained in:
2015-01-17 03:59:20 +01:00
parent cff4e01e21
commit c0ac42f3e9
9 changed files with 382 additions and 0 deletions

24
rmi_exam/Client.java Normal file
View File

@@ -0,0 +1,24 @@
package rmi_exam;
import java.rmi.RemoteException;
import java.rmi.server.UnicastRemoteObject;
/**
* Created by Giovanni on 16/01/2015.
*/
public class Client extends UnicastRemoteObject implements ClientInterface {
private final String nome;
public Client (String in_name) throws RemoteException {
nome = in_name;
}
public void detto (String s) throws RemoteException{
System.out.println(s);
}
public String getname(){return nome;}
}