Mercurial > hg > FederatedLinda
view src/fdl/test2/client.java @ 53:629b6cfbd37f
metaprotocol ring
author | axmo |
---|---|
date | Mon, 19 Jan 2009 17:49:14 +0900 |
parents | |
children | 82a292aa41ad |
line wrap: on
line source
package fdl.test2; import java.io.*; import java.net.*; public class client { public static void main(String arg[]) throws IOException{ String www = arg[0]; int port = 10007; Socket sock; BufferedReader dis; // PrintWriter ps; sock = new Socket(www,port); dis = new BufferedReader(new InputStreamReader(sock.getInputStream())); // ps = new PrintWriter(sock.getOutputStream(),true); // ps.println("Get"+arg[1]); // String s = null; // while((s = dis.readLine()) != null){ System.out.println(dis); // } sock.close(); } }