public void echo() {
		BufferedReader br = null;
		try {
			br = getReader(socket);
			String str = null;
			while (true) {
				str = br.readLine();
				if (str != null) {
					System.out.println("From server: " + str);
					if (str.startsWith("yt"))
						ai_response(str);
				} else {
					break;
				}
			}
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} finally {
			try {
				br.close();
				socket.close();
			} catch (IOException e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
			}
		}
	}