public void communcation(Socket socket){
		try {
			PrintWriter pw = new PrintWriter(socket.getOutputStream(),true);
			BufferedReader br = new BufferedReader(new InputStreamReader(socket.getInputStream()));
			BufferedReader localReader = new BufferedReader(new InputStreamReader(System.in));
			String msg = null;
			while(true){
				if((msg=localReader.readLine())!=null){
					pw.println(msg);
					String response = null;
					if((response = br.readLine())!=null){
						System.out.println("消息:"+response);
						if("close".equals(response)){
							break;
						}
					}
				}
			}
		} catch (IOException e) {
			e.printStackTrace();
		}finally{
			if(socket!=null){
				try {
					socket.close();
				} catch (IOException e) {
					e.printStackTrace();
				}
			}
		}
	}