code: private Thread getScannerThread() {
  		return new Thread(() -> {
  			Scanner scanIn = new Scanner(System.in);
  			while (true) {
  				String line = scanIn.nextLine();
  				if (line.isEmpty()) {
  					break;
  				}
  				ByteBuf buf = ByteBuf.wrapForReading(encodeAscii(line + "\r\n"));
  				eventloop.execute(() -> socket.write(buf));
  			}
  			eventloop.execute(socket::close);
  		});
  	}
docs: /* Thread, which sends characters and prints received responses to the console.