Mercurial > hg > Members > riono > TreeVNC_ja_comment
changeset 465:2107b954e285
add comment
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Wed, 13 Jul 2016 10:43:39 +0900 |
parents | a817fa255673 |
children | 8d636adb292c |
files | src/viewer_swing/java/com/glavsoft/viewer/swing/SwingViewerWindow.java |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/viewer_swing/java/com/glavsoft/viewer/swing/SwingViewerWindow.java Tue Jul 12 18:52:27 2016 +0900 +++ b/src/viewer_swing/java/com/glavsoft/viewer/swing/SwingViewerWindow.java Wed Jul 13 10:43:39 2016 +0900 @@ -43,7 +43,6 @@ import javax.swing.border.EmptyBorder; import java.awt.*; import java.awt.event.*; -import java.lang.reflect.Field; import java.net.Socket; import java.util.ArrayList; import java.util.LinkedList; @@ -920,7 +919,7 @@ int x = rectangle1.getXfb(); int y = rectangle1.getYfb(); int scale = rectangle1.getRetinaScale(); - // showScreenInfo("request screen change id = " + viewer.getRfb().getId(), 0, x, y, singleWidth, singleHeight, scale); + showScreenInfo("request screen change id = " + viewer.getRfb().getId(), 0, x, y, singleWidth, singleHeight, scale); if (viewer.getRfb().isTreeManager()) { changeVncServer(viewer, x, y, singleWidth * scale, singleHeight * scale, scale, viewer.getRfb().getId()); } @@ -934,6 +933,8 @@ } } + // scan port is not enough to check VNC server. Root server should send error message to the requested + // node when authentication failures are happened private boolean scanPort(String adr, int port) { try { Socket socket = new Socket(adr, port);