comparison src/myVncClient/CuiMyVncClient.java @ 94:1783ca4e4877

update
author e085711
date Tue, 04 Oct 2011 23:51:32 +0900
parents 71bfbb5241bf
children
comparison
equal deleted inserted replaced
93:71bfbb5241bf 94:1783ca4e4877
315 showConnectionStatus("Using RFB protocol version " + rfb.clientMajor 315 showConnectionStatus("Using RFB protocol version " + rfb.clientMajor
316 + "." + rfb.clientMinor); 316 + "." + rfb.clientMinor);
317 317
318 318
319 if (rfb.serverMinor == 855) { 319 if (rfb.serverMinor == 855) {
320 /*
321 * if connect to proxy, userEchoPortFlag is true.
322 * if connect to client, userEchoPortFlag is false.
323 */
320 boolean useEchoPortFlag = rfb.readProxyFlag(); 324 boolean useEchoPortFlag = rfb.readProxyFlag();
325
321 if (useEchoPortFlag) { 326 if (useEchoPortFlag) {
322 byte[] b = new byte[4]; 327 byte[] b = new byte[4];
323 b = rfb.readEchoPort(); 328 b = rfb.readEchoPort();
324 echoPort = castByteInt(b); 329 echoPort = castByteInt(b);
325 330
329 getParentName(); 334 getParentName();
330 if (!(h.equals(host))) { 335 if (!(h.equals(host))) {
331 rfb.changeParent(host, port); 336 rfb.changeParent(host, port);
332 rfb.readVersionMsg(); 337 rfb.readVersionMsg();
333 rfb.writeVersionMsg(); 338 rfb.writeVersionMsg();
339 boolean flag = rfb.readProxyFlag();
334 } 340 }
335 } 341 }
336 } 342 }
337 343
338 int secType = rfb.negotiateSecurity(); 344 int secType = rfb.negotiateSecurity();
396 getParentName(); 402 getParentName();
397 if (!(h.equals(host))) { 403 if (!(h.equals(host))) {
398 rfb.changeParent(host, port); 404 rfb.changeParent(host, port);
399 rfb.readVersionMsg(); 405 rfb.readVersionMsg();
400 rfb.writeVersionMsg(); 406 rfb.writeVersionMsg();
407 boolean flag = rfb.readProxyFlag();
401 } 408 }
402 } 409 }
403 } 410 }
404 411
405 int secType = rfb.negotiateSecurity(); 412 int secType = rfb.negotiateSecurity();