Mercurial > hg > FederatedLinda
diff 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 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/fdl/test/metaTransfer/Ring/Server.java Mon Jan 19 17:49:14 2009 +0900 @@ -0,0 +1,31 @@ +package fdl.test.metaTransfer.Ring; + +import java.io.IOException; + +//import fdl.FDLindaServ; + +public class Server extends Thread { + int port1; + int port2; + private String name; + + public Server(String string, int i, int t) { + port1 = i; + port2 = t; + name = string; + } + + public void run(){ +// String[] args = {"-p",Integer.toString(port1)}; + System.out.println(name); +// FDLindaServ.main(args); + try { + FDLServWithSend send = new FDLServWithSend(port1,port2); + send.mainLoop(); + } catch (IOException e) { + e.printStackTrace(); + }; + + } + +} \ No newline at end of file