This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.io.*; | |
import java.net.*; | |
public class MyEchoClient { | |
public static void main(String args[]) { | |
try { | |
Socket sock = new Socket("127.0.0.1" , 10007); | |
InputStream in = sock.getInputStream(); | |
OutputStream out = sock.getOutputStream(); | |
String str = "hello\n"; |