comparison src/myVncClient/MyVncClient.java @ 99:084adee7699b

befor change
author Yu Taninari <you@cr.ie.u-ryukyu.ac.jp>
date Mon, 24 Oct 2011 23:06:02 +0900
parents 1d1bb77d871b
children 2f2f8da71d60
comparison
equal deleted inserted replaced
98:1d1bb77d871b 99:084adee7699b
45 inSeparateFrame = true; 45 inSeparateFrame = true;
46 getHost = new TextBox(); 46 getHost = new TextBox();
47 47
48 if (mainArgs.length > 0) 48 if (mainArgs.length > 0)
49 pHost = mainArgs[0]; 49 pHost = mainArgs[0];
50 else 50 else {
51 getHost.ipRegister(); 51 getHost.ipRegister();
52 pHost = getHost.getAddress(); 52 pHost = getHost.getAddress();
53 }
53 54
54 55
55 //pHost = "cls080.ie.u-ryukyu.ac.jp"; 56 //pHost = "cls080.ie.u-ryukyu.ac.jp";
56 if (mainArgs.length > 1) 57 if (mainArgs.length > 1)
57 port = Integer.parseInt(mainArgs[1]); 58 port = Integer.parseInt(mainArgs[1]);
384 rfb.writeVersionMsg(); 385 rfb.writeVersionMsg();
385 showConnectionStatus("Using RFB protocol version " + rfb.clientMajor 386 showConnectionStatus("Using RFB protocol version " + rfb.clientMajor
386 + "." + rfb.clientMinor); 387 + "." + rfb.clientMinor);
387 388
388 389
389 if(rfb.serverMinor == 998) { 390 if(rfb.serverMinor == 855) {
390 byte[] b = new byte[4]; 391 byte[] b = new byte[4];
391 b = rfb.readEchoPort(); 392 b = rfb.readEchoPort();
392 echoPort = castByteInt(b); 393 echoPort = castByteInt(b);
393 394
394 InetAddress addr = InetAddress.getByName(pHost); 395 InetAddress addr = InetAddress.getByName(pHost);