chat rmi server/client and peer2peer

This commit is contained in:
2014-12-10 01:49:28 +01:00
parent 4d3128b724
commit b01bc963c8
11 changed files with 394 additions and 0 deletions

View File

@@ -0,0 +1,29 @@
package rmi_chat;
import java.rmi.RemoteException;
import java.rmi.registry.LocateRegistry;
import java.rmi.registry.Registry;
/**
* Created by Giovanni on 10/12/2014.
*/
public class LaunchServer {
public static void main (String[] args ){
try {
ChatInterface cs = new ChatServer();
Registry r = LocateRegistry.getRegistry();
r.rebind("serverchat",cs);
} catch (RemoteException e) {
e.printStackTrace();
}
}
}