# HG changeset patch # User oc # Date 1421129333 -32400 # Node ID 71d24f7b3b3ba40e9c4d94105513a4fc3dbc9f2e # Parent b1749cab09a3c77b99cfc43af382d83d6d1e1ec8 fix send ClientToServerMessage diff -r b1749cab09a3 -r 71d24f7b3b3b src/main/java/jp/ac/u_ryukyu/treevnc/TreeRFBProto.java --- 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