comparison src/treeVnc/CuiMyVncClient.java @ 20:20c53b836ff8

delete warning
author one
date Fri, 13 Jan 2012 16:22:58 +0900
parents 578ea14c95e9
children 41b2e2ebcff2
comparison
equal deleted inserted replaced
19:3faae4215cb3 20:20c53b836ff8
335 getParentName(); 335 getParentName();
336 if (!(h.equals(host))) { 336 if (!(h.equals(host))) {
337 rfb.changeParent(host, port); 337 rfb.changeParent(host, port);
338 rfb.readVersionMsg(); 338 rfb.readVersionMsg();
339 rfb.writeVersionMsg(); 339 rfb.writeVersionMsg();
340 boolean flag = rfb.readProxyFlag(); 340 //boolean flag = rfb.readProxyFlag();
341 } 341 }
342 } 342 }
343 } 343 }
344 344
345 int secType = rfb.negotiateSecurity(); 345 int secType = rfb.negotiateSecurity();
403 getParentName(); 403 getParentName();
404 if (!(h.equals(host))) { 404 if (!(h.equals(host))) {
405 rfb.changeParent(host, port); 405 rfb.changeParent(host, port);
406 rfb.readVersionMsg(); 406 rfb.readVersionMsg();
407 rfb.writeVersionMsg(); 407 rfb.writeVersionMsg();
408 boolean flag = rfb.readProxyFlag(); 408 //boolean flag = rfb.readProxyFlag();
409 } 409 }
410 } 410 }
411 } 411 }
412 412
413 int secType = rfb.negotiateSecurity(); 413 int secType = rfb.negotiateSecurity();
765 // 765 //
766 // Read password parameters. If an "ENCPASSWORD" parameter is set, 766 // Read password parameters. If an "ENCPASSWORD" parameter is set,
767 // then decrypt the password into the passwordParam string. Otherwise, 767 // then decrypt the password into the passwordParam string. Otherwise,
768 // try to read the "PASSWORD" parameter directly to passwordParam. 768 // try to read the "PASSWORD" parameter directly to passwordParam.
769 // 769 //
770 770 /*
771 private void readPasswordParameters() { 771 private void readPasswordParameters() {
772 String encPasswordParam = readParameter("ENCPASSWORD", false); 772 String encPasswordParam = readParameter("ENCPASSWORD", false);
773 773
774 if (encPasswordParam == null) { 774 if (encPasswordParam == null) {
775 passwordParam = readParameter("PASSWORD", false); 775 passwordParam = readParameter("PASSWORD", false);
790 des.decrypt(pw, 0, pw, 0); 790 des.decrypt(pw, 0, pw, 0);
791 passwordParam = new String(pw); 791 passwordParam = new String(pw);
792 792
793 } 793 }
794 } 794 }
795 795 */
796 public String readParameter(String name, boolean required) { 796 public String readParameter(String name, boolean required) {
797 for (int i = 0; i < mainArgs.length; i += 2) { 797 for (int i = 0; i < mainArgs.length; i += 2) {
798 if (mainArgs[i].equalsIgnoreCase(name)) { 798 if (mainArgs[i].equalsIgnoreCase(name)) {
799 try { 799 try {
800 return mainArgs[i + 1]; 800 return mainArgs[i + 1];
970 public void windowClosing(WindowEvent evt) { 970 public void windowClosing(WindowEvent evt) {
971 System.out.println("Closing window"); 971 System.out.println("Closing window");
972 if (rfb != null) 972 if (rfb != null)
973 disconnect(); 973 disconnect();
974 974
975 vncContainer.hide(); 975 vncContainer.setVisible(false);
976 976
977 } 977 }
978 978
979 // 979 //
980 // Ignore window events we're not interested in. 980 // Ignore window events we're not interested in.
1014 if (clientSocket == null) { 1014 if (clientSocket == null) {
1015 String pHost; 1015 String pHost;
1016 if (mainArgs.length > 0) 1016 if (mainArgs.length > 0)
1017 pHost = mainArgs[0]; 1017 pHost = mainArgs[0];
1018 else 1018 else
1019 pHost = "cls080.ie.u-ryukyu.ac.jp"; 1019 pHost = "localhost";
1020 // echo = new EchoClient(pHost, this); 1020 // echo = new EchoClient(pHost, this);
1021 echoValue = new EchoClient(pHost, this, echoPort); 1021 echoValue = new EchoClient(pHost, this, echoPort);
1022 echoValue.openport(); 1022 echoValue.openport();
1023 1023
1024 echoValue = echoValue.requestHostName("1"); 1024 echoValue = echoValue.requestHostName("1");