public TankConnect(Socket socket,int id){
		this.socket = socket;
		String idString = ""+id;
		this.id = id;//Ϊ˺ͶӦ̹idƥ
		try {
//			oos = new ObjectOutputStream(this.socket.getOutputStream());
//			ois = new ObjectInputStream(this.socket.getInputStream());
//			oos.writeObject(idString);
//			oos.flush();
			in = new BufferedReader(new InputStreamReader(socket.getInputStream()));
			out = new PrintWriter(socket.getOutputStream());
			
			out.println(idString);
			out.flush();
			
		} catch (IOException e) {
			System.out.println("TankConnect IO");
			e.printStackTrace();
		}
	}