Echo Client
Echo Client
*;
import java.io.*;
public class EchoClient
{
public static void main(String arg[])
{
try
{
String line;
InetAddress ip = InetAddress.getLocalHost();
Socket soc = new Socket(ip, 9000);
BufferedReader socIn = new BufferedReader(new
InputStreamReader(soc.getInputStream()));
PrintStream socOut = new PrintStream(soc.getOutputStream());
BufferedReader keyIn = new BufferedReader(new InputStreamReader(System.in));
while(true)
{
}
catch(IOException e)
{
System.out.println(e);
}
}
}