public void negotiateEcho(byte opcode) throws IOException {
		switch (opcode) {
		case WILL:
			// WILL ECHO
			System.out.println();
			synchronized (out) {
				out.write(IAC);
				out.write(DO);
				out.write(ECHO);
				out.flush();
			}
			System.out.println("SEND>IAC DO ECHO");
			break;

		case DO:
			// DO ECHO
			System.out.println();
			synchronized (out) {
				out.write(IAC);
				out.write(WONT);
				out.write(ECHO);
				out.flush();
			}
			System.out.println("SEND>IAC WON'T ECHO");
			break;

		case DONT:
			// DON'T ECHO
			System.out.println();
			break;

		default:
//			throw new TelnetException("unhandled IAC " + opcode + " ECHO");
		}
	}