53
|
1 package fdl.test.metaTransfer.Ring;
|
|
2
|
|
3 import java.io.IOException;
|
|
4
|
|
5 //import fdl.FDLindaServ;
|
|
6
|
|
7 public class Server extends Thread {
|
|
8 int port1;
|
|
9 int port2;
|
|
10 private String name;
|
|
11
|
|
12 public Server(String string, int i, int t) {
|
|
13 port1 = i;
|
|
14 port2 = t;
|
|
15 name = string;
|
|
16 }
|
|
17
|
|
18 public void run(){
|
|
19 // String[] args = {"-p",Integer.toString(port1)};
|
|
20 System.out.println(name);
|
|
21 // FDLindaServ.main(args);
|
|
22 try {
|
|
23 FDLServWithSend send = new FDLServWithSend(port1,port2);
|
|
24 send.mainLoop();
|
|
25 } catch (IOException e) {
|
|
26 e.printStackTrace();
|
|
27 };
|
|
28
|
|
29 }
|
|
30
|
|
31 } |