Mercurial > hg > FederatedLinda
view 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 source
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(); }; } }