# HG changeset patch
# User oc
# Date 1422630675 -32400
# Node ID a237c7e3b7ca9fa1efb90f88bee6800be83ed06c
# Parent f2b835466a240ea476403dde2d01d25fc9500c70
change class name, change value thread join time
diff -r f2b835466a24 -r a237c7e3b7ca .idea/gradle.xml
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/.idea/gradle.xml Sat Jan 31 00:11:15 2015 +0900
@@ -0,0 +1,17 @@
+
+
+
+
+
+
\ No newline at end of file
diff -r f2b835466a24 -r a237c7e3b7ca .idea/libraries/Gradle__com_jcraft_jsch_0_1_50.xml
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/.idea/libraries/Gradle__com_jcraft_jsch_0_1_50.xml Sat Jan 31 00:11:15 2015 +0900
@@ -0,0 +1,9 @@
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff -r f2b835466a24 -r a237c7e3b7ca TreeVNC.iml
--- a/TreeVNC.iml Fri Jan 30 15:37:03 2015 +0900
+++ b/TreeVNC.iml Sat Jan 31 00:11:15 2015 +0900
@@ -1,24 +1,23 @@
-
+
+
-
+
-
-
+
-
-
+
\ No newline at end of file
diff -r f2b835466a24 -r a237c7e3b7ca src/main/java/com/glavsoft/rfb/protocol/Protocol.java
--- a/src/main/java/com/glavsoft/rfb/protocol/Protocol.java Fri Jan 30 15:37:03 2015 +0900
+++ b/src/main/java/com/glavsoft/rfb/protocol/Protocol.java Sat Jan 31 00:11:15 2015 +0900
@@ -300,7 +300,7 @@
if (senderTask != null) {
senderTask.stopTask();
try {
- senderThread.join(1000);
+ senderThread.join();
} catch (InterruptedException e) {
// nop
}
@@ -314,7 +314,7 @@
if (receiverTask != null) {
receiverTask.stopTask();
try {
- receiverThread.join(1000);
+ receiverThread.join();
} catch (InterruptedException e) {
// nop
}
diff -r f2b835466a24 -r a237c7e3b7ca src/main/java/com/glavsoft/rfb/protocol/state/InitState.java
--- a/src/main/java/com/glavsoft/rfb/protocol/state/InitState.java Fri Jan 30 15:37:03 2015 +0900
+++ b/src/main/java/com/glavsoft/rfb/protocol/state/InitState.java Sat Jan 31 00:11:15 2015 +0900
@@ -86,7 +86,7 @@
ProtocolSettings settings = context.getSettings();
settings.enableAllEncodingCaps();
completeContextData(serverInitMessage);
- super.rfb.setSingleDisplaySize(serverInitMessage.getFrameBufferWidth(), serverInitMessage.getFrameBufferHeight());
+// super.rfb.setSingleDisplaySize(serverInitMessage.getFrameBufferWidth(), serverInitMessage.getFrameBufferHeight());
}
}
diff -r f2b835466a24 -r a237c7e3b7ca src/main/java/jp/ac/u_ryukyu/treevnc/RequestSingleDisplaySize.java
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/src/main/java/jp/ac/u_ryukyu/treevnc/RequestSingleDisplaySize.java Sat Jan 31 00:11:15 2015 +0900
@@ -0,0 +1,29 @@
+package jp.ac.u_ryukyu.treevnc;
+
+import com.glavsoft.exceptions.TransportException;
+import com.glavsoft.rfb.client.ClientToServerMessage;
+import com.glavsoft.transport.Writer;
+
+import java.nio.ByteBuffer;
+import java.nio.ByteOrder;
+
+/**
+ * Created by OcBookPro on 15/01/10.
+ */
+public class RequestSingleDisplaySize implements ClientToServerMessage {
+
+ private short id;
+
+ public RequestSingleDisplaySize() {
+ }
+
+ @Override
+ public void send(Writer writer) throws TransportException {
+ ByteBuffer out = ByteBuffer.allocate(2);
+ out.order(ByteOrder.BIG_ENDIAN);
+ out.put(REQUEST_SINGLE_DISPLAY_SIZE);
+ out.put((byte)0); // padding
+ writer.write(out.array(), 0, out.position());
+ writer.flush();
+ }
+}
diff -r f2b835466a24 -r a237c7e3b7ca src/main/java/jp/ac/u_ryukyu/treevnc/RequestSingleDisplayWidth.java
--- a/src/main/java/jp/ac/u_ryukyu/treevnc/RequestSingleDisplayWidth.java Fri Jan 30 15:37:03 2015 +0900
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,29 +0,0 @@
-package jp.ac.u_ryukyu.treevnc;
-
-import com.glavsoft.exceptions.TransportException;
-import com.glavsoft.rfb.client.ClientToServerMessage;
-import com.glavsoft.transport.Writer;
-
-import java.nio.ByteBuffer;
-import java.nio.ByteOrder;
-
-/**
- * Created by OcBookPro on 15/01/10.
- */
-public class RequestSingleDisplayWidth implements ClientToServerMessage {
-
- private short id;
-
- public RequestSingleDisplayWidth() {
- }
-
- @Override
- public void send(Writer writer) throws TransportException {
- ByteBuffer out = ByteBuffer.allocate(2);
- out.order(ByteOrder.BIG_ENDIAN);
- out.put(REQUEST_SINGLE_DISPLAY_SIZE);
- out.put((byte)0); // padding
- writer.write(out.array(), 0, out.position());
- writer.flush();
- }
-}
diff -r f2b835466a24 -r a237c7e3b7ca src/main/java/jp/ac/u_ryukyu/treevnc/TreeRFBProto.java
--- a/src/main/java/jp/ac/u_ryukyu/treevnc/TreeRFBProto.java Fri Jan 30 15:37:03 2015 +0900
+++ b/src/main/java/jp/ac/u_ryukyu/treevnc/TreeRFBProto.java Sat Jan 31 00:11:15 2015 +0900
@@ -501,16 +501,6 @@
return originalInitData;
}
- public void setOriginalInitData(int singleWidth, int singleHeight, String remoteDesktopName) {
- TreeVncCommandChannelListener treeVncCommandChannelListener = new TreeVncCommandChannelListener(this, acceptPort);
- originalInitData = treeVncCommandChannelListener.createOriginalInitData(singleWidth, singleHeight, remoteDesktopName);
- }
-
- public byte[] getOriginalInitData() {
- return originalInitData;
- }
-
-
public void addSerialNumber(LinkedList bufs) {
ByteBuffer serialNum = multicastqueue.allocate(4+8); // addSerialNum flag + SerialNum
if (this.addSerialNum) {
diff -r f2b835466a24 -r a237c7e3b7ca src/viewer_swing/java/com/glavsoft/viewer/swing/SwingViewerWindow.java
--- a/src/viewer_swing/java/com/glavsoft/viewer/swing/SwingViewerWindow.java Fri Jan 30 15:37:03 2015 +0900
+++ b/src/viewer_swing/java/com/glavsoft/viewer/swing/SwingViewerWindow.java Sat Jan 31 00:11:15 2015 +0900
@@ -871,15 +871,8 @@
@Override
public void actionPerformed(ActionEvent e) {
// adjustHdSizeButton.setSelected(false);
+ // この時点で取れてきてるはず・・・!
int singleWidth = viewer.getRfb().getSingleWidth();
- int singleHeight = viewer.getRfb().getSingleHeight();
- if (viewer.getRfb().isTreeManager()) {
- System.out.println(singleWidth);
- uiSettings.adjustHdSize(singleWidth);
- return;
- }
- context.sendMessage(new RequestSingleDisplayWidth());
- System.out.println(singleWidth);
uiSettings.adjustHdSize(singleWidth);
}
});
@@ -896,7 +889,7 @@
int singleWidth = viewer.getRfb().getSingleWidth();
int singleHeight = viewer.getRfb().getSingleHeight();
if (!viewer.getRfb().isTreeManager()) {
- context.sendMessage(new RequestSingleDisplayWidth());
+ context.sendMessage(new RequestSingleDisplaySize());
}
frame.setSize(thisScreenWidth, thisScreenHeight);
uiSettings.fitScreen(thisScreenWidth, thisScreenHeight, singleWidth, singleHeight);