import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.net.Socket;
public class MainClass {
public static void main(String[] args) {
try {
Socket s = new Socket("127.0.0.1", 80);
OutputStream out = s.getOutputStream();
out.close();
InputStream in = s.getInputStream();
} catch (IOException e) {
System.err.println(e);
}
}
}
|