private static void talkToServer() throws IOException {
		String option = null, message, response;

		do {
			/********************************************************
			 * CREATE A SOCKET, SET UP INPUT AND OUTPUT STREAMS, ACCEPT THE
			 * USER'S REQUEST, CALL UP THE APPROPRIATE METHOD (doSend OR
			 * doRead), CLOSE THE LINK AND THEN ASK IF USER WANTS TO DO ANOTHER
			 * READ/SEND.
			 ********************************************************/
			// create a socket
			Socket link = new Socket(host, PORT);
			// crate streams for input and output
			networkInput = new Scanner(link.getInputStream());
			networkOutput = new PrintWriter(link.getOutputStream(), true);
			// accept user's request
			System.out.println("Select an option: " + "\n1) Send" + "\n2) Read"
					+ "\nn) Quit");
			option = userEntry.nextLine();
			switch (option) {
			case "1":
				doSend();
				break;
			case "2":
				doRead();
				break;
			case "n":
				networkOutput.println(name);
				networkOutput.println("quit");
				link.close();
				break;
			default:
				break;
			}

		} while (!option.equals("n"));

	}