65666768697071727374757677
@Override public void run() { try { while (connectionAlive) { ClientPacket packet = queue.poll(1, TimeUnit.SECONDS); if (packet != null) { packet.write(os); os.flush(); } } } catch (Throwable e) { s_logger.error("Unexpected exception: ", e);
174175176177178179180181
// Do nothing } @Override public void keyPressed(KeyEvent e) { ClientPacket request = new KeyboardEventPacket(RfbConstants.KEY_DOWN, mapAwtKeyToVncKey(e.getKeyCode())); queue.add(request); }
180181182183184185186187
queue.add(request); } @Override public void keyReleased(KeyEvent e) { ClientPacket request = new KeyboardEventPacket(RfbConstants.KEY_UP, mapAwtKeyToVncKey(e.getKeyCode())); queue.add(request); }
66676869707172737475767778
177178179180181182183184
183184185186187188189190
172173174175176177178179
178179180181182183184185