Mercurial > hg > FederatedLinda
comparison src/fdl/test/metaTransfer/Ring/Server.java @ 53:629b6cfbd37f
metaprotocol ring
author | axmo |
---|---|
date | Mon, 19 Jan 2009 17:49:14 +0900 |
parents | |
children | 865bf7f1bb8d |
comparison
equal
deleted
inserted
replaced
52:00d2203fac80 | 53:629b6cfbd37f |
---|---|
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 } |