ServerSocket ss = new ServerSocket(9090);
while(true){
Socket s = ss.accept();
System.out.println(s.getInetAddress().getHostAddress()+".....connected");
InputStream in = s.getInputStream();
byte[] buf = new byte[1024];
int len = in.read(buf);
//给客户端一个反馈信息。
PrintWriter out = new PrintWriter(s.getOutputStream(),true);