implementata chat per cuori solitari

This commit is contained in:
2014-12-12 00:17:48 +01:00
parent 7bdbb33836
commit cff4e01e21
7 changed files with 300 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
package rmi_chat_l_hearts;
import java.rmi.RemoteException;
import java.rmi.registry.LocateRegistry;
import java.rmi.registry.Registry;
/**
* Created by Giovanni on 11/12/2014.
*/
public class LaunchServer{
public static void main (String[] args){
try {
ServerInterface s = new Server();
Registry r = LocateRegistry.getRegistry();
r.rebind("server",s);
} catch (RemoteException e) {
e.printStackTrace();
}
}
}