-
Notifications
You must be signed in to change notification settings - Fork 0
/
Server.java
32 lines (32 loc) · 921 Bytes
/
Server.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
//package distsys;
//
//import java.rmi.registry.Registry;
//import java.rmi.registry.LocateRegistry;
//import java.rmi.server.UnicastRemoteObject;
//
//public class Server
//{
//
// public Server() {}
//
// public String doMove() {
// return "ConnectionInterface, world!";
// }
//
// public static void main(String args[]) {
//
// try {
// TicTacToe obj = new TicTacToe();
// ConnectionInterface stub = (ConnectionInterface) UnicastRemoteObject.exportObject(obj, 0);
//
// // Bind the remote object's stub in the registry
// Registry registry = LocateRegistry.getRegistry();
// registry.bind("ConnectionInterface", stub);
//
// System.err.println("Server ready");
// } catch (Exception e) {
// System.err.println("Server exception: " + e.toString());
// e.printStackTrace();
// }
// }
//}