Mercurial > hg > Members > riono > TreeVNC_ja_comment
comparison src/main/java/jp/ac/u_ryukyu/treevnc/TreeRFBProto.java @ 449:d5bcae14c2cd
reuse FrameUpdateRequest for all code
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Sun, 19 Jun 2016 17:53:13 +0900 |
parents | 344a35b7c47f |
children | e94489c9a0bb |
comparison
equal
deleted
inserted
replaced
448:344a35b7c47f | 449:d5bcae14c2cd |
---|---|
63 public boolean showTreeNode = false; | 63 public boolean showTreeNode = false; |
64 public boolean checkDelay = false; | 64 public boolean checkDelay = false; |
65 public boolean addSerialNum = false; | 65 public boolean addSerialNum = false; |
66 public boolean fixingSize = false; | 66 public boolean fixingSize = false; |
67 public int frameSizeWidth; // contains all screens | 67 public int frameSizeWidth; // contains all screens |
68 public int frameSizeHeight; | 68 public int frameSizeHeight; // aquired from VNC Server |
69 public int fixingSizeWidth; | 69 public int fixingSizeWidth; |
70 public int fixingSizeHeight; | 70 public int fixingSizeHeight; |
71 private int singleWidth = 0; // only one screen | 71 private int singleWidth = 0; // only one screen |
72 private int singleHeight = 0; | 72 private int singleHeight = 0; // specified in SeverChangeRequest |
73 private int x; | 73 private int x; |
74 private int y; | 74 private int y; |
75 private DatagramSocket socket = null; | 75 private DatagramSocket socket = null; |
76 private byte[] originalInitData = null; | 76 private byte[] originalInitData = null; |
77 private boolean childrenMulticast = true; | 77 private boolean childrenMulticast = true; |
848 | 848 |
849 public void setFixingSize(boolean fixingSize) { | 849 public void setFixingSize(boolean fixingSize) { |
850 this.fixingSize = fixingSize; | 850 this.fixingSize = fixingSize; |
851 } | 851 } |
852 | 852 |
853 private DatagramSocket createSocket() { | |
854 | |
855 try { | |
856 if (socket == null) { | |
857 this.socket = new DatagramSocket(ConnectionParams.DEFAULT_RTP_PORT, InetAddress.getLocalHost()); | |
858 } | |
859 } catch (SocketException e) { | |
860 e.printStackTrace(); | |
861 } catch (UnknownHostException e) { | |
862 e.printStackTrace(); | |
863 } | |
864 return socket; | |
865 } | |
866 | |
867 public void setSingleDisplaySize(int singleWidth, int singleHeight) { | 853 public void setSingleDisplaySize(int singleWidth, int singleHeight) { |
868 this.singleWidth = singleWidth; | 854 this.singleWidth = singleWidth; |
869 this.singleHeight = singleHeight; | 855 this.singleHeight = singleHeight; |
870 } | 856 } |
871 | 857 |