Mercurial > hg > Applications > TreeVNC
changeset 295:71d24f7b3b3b
fix send ClientToServerMessage
author | oc |
---|---|
date | Tue, 13 Jan 2015 15:08:53 +0900 |
parents | b1749cab09a3 |
children | 966331aef4b3 |
files | src/main/java/jp/ac/u_ryukyu/treevnc/TreeRFBProto.java |
diffstat | 1 files changed, 4 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/main/java/jp/ac/u_ryukyu/treevnc/TreeRFBProto.java Tue Jan 13 13:12:29 2015 +0900 +++ b/src/main/java/jp/ac/u_ryukyu/treevnc/TreeRFBProto.java Tue Jan 13 15:08:53 2015 +0900 @@ -216,22 +216,23 @@ } // case of client node. } else if (b[0] == ClientToServerMessage.SERVER_CHANGE_REQUEST) { - ClientToServerMessage sc = new ClientToServerMessage() { + ClientToServerMessage serverChangeRequest = new ClientToServerMessage() { @Override public void send(Writer writer) throws TransportException { writer.write(b,0,c); } }; - context.sendMessage(sc); + context.sendMessage(serverChangeRequest); } else if (b[0] == ClientToServerMessage.REQUEST_SINGLE_DISPLAY_WIDTH) { - ClientToServerMessage sc = new ClientToServerMessage() { + ClientToServerMessage requestSingeDisplayWidth = new ClientToServerMessage() { @Override public void send(Writer writer) throws TransportException { writer.write(b, 0, c); } }; + context.sendMessage(requestSingeDisplayWidth); } else if (b[0] == ClientToServerMessage.READY_SHARE_SOUND) { ClientToServerMessage readyShareSound = new ClientToServerMessage() { @Override