js
<%@page import="java.io.*,java.net.*"%>
<%
Socket whois=new Socket("whois.networksolutions.com",43);
InputStream in=whois.getInputStream();
DataOutputStream data_out=new DataOutputStream(whois.getOutputStream());
data_out.writeBytes("yahoo.com\r\n");
int d;
while(true){
d=in.read();
if(d<0)
break;
out.print((char)d);
}
data_out.close();
in.close();
%>
时间: 2024-12-24 21:14:31