Mercurial > hg > Applications > TreeVNC
view src/main/java/jp/ac/u_ryukyu/treevnc/ReadyShareSound.java @ 290:c10e0dee7bbb
add READY_SHARE_SOUND msg, add function of receive READY_SHARE_SOUND msg, add sendSound thread.
author | oc |
---|---|
date | Tue, 13 Jan 2015 05:22:53 +0900 |
parents | |
children |
line wrap: on
line source
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/13. */ public class ReadyShareSound implements ClientToServerMessage { public ReadyShareSound() { } @Override public void send(Writer writer) throws TransportException { ByteBuffer out = ByteBuffer.allocate(2); out.order(ByteOrder.BIG_ENDIAN); out.put(READY_SHARE_SOUND); out.put((byte)0); // padding writer.write(out.array(), 0, out.position()); writer.flush(); } }