Mercurial > hg > Members > riono > TreeVNC_ja_comment
comparison src/viewer_swing/java/com/glavsoft/viewer/swing/SwingRfbConnectionWorker.java @ 395:704ac9e79e25
Call startVNCConnectionWithSocket for directedServerChangeReqeust
author | innparusu |
---|---|
date | Tue, 29 Sep 2015 18:46:45 +0900 |
parents | 6a8b661367c6 |
children | 4a925e55afd6 |
comparison
equal
deleted
inserted
replaced
394:a8610fab6861 | 395:704ac9e79e25 |
---|---|
157 presenter.clearMessage(); | 157 presenter.clearMessage(); |
158 presenter.connectionFailed(); | 158 presenter.connectionFailed(); |
159 } | 159 } |
160 } | 160 } |
161 | 161 |
162 @Override | |
162 public void startVNCConnection() { | 163 public void startVNCConnection() { |
163 presenter.showMessage("Handshake established"); | 164 presenter.showMessage("Handshake established"); |
164 myRfb.newVNCConnection(workingProtocol, presenter); | 165 myRfb.newVNCConnection(workingProtocol, presenter); |
165 ClipboardControllerImpl clipboardController; | 166 ClipboardControllerImpl clipboardController; |
166 if(!myRfb.getCuiVersion()) | 167 if(!myRfb.getCuiVersion()) |
180 if (myRfb.hasViewer()) { | 181 if (myRfb.hasViewer()) { |
181 boolean visibility = presenter.getReconnectingId() != myRfb.getId(); | 182 boolean visibility = presenter.getReconnectingId() != myRfb.getId(); |
182 viewerWindow.setVisible(visibility); | 183 viewerWindow.setVisible(visibility); |
183 viewerWindow.zoomToFit(); | 184 viewerWindow.zoomToFit(); |
184 } | 185 } |
186 } | |
187 | |
188 @Override | |
189 public void startVNCConnectionWithSocket (Reader is, Writer os) { | |
190 workingProtocol = new Protocol(is, os, | |
191 new PasswordChooser(connectionString, parentWindow, this), | |
192 rfbSettings, myRfb); | |
193 startVNCConnection(); | |
185 } | 194 } |
186 | 195 |
187 @Override | 196 @Override |
188 public void rfbSessionStopped(final String reason) { | 197 public void rfbSessionStopped(final String reason) { |
189 if (workingProtocol != null) { | 198 if (workingProtocol != null) { |