Package streamer

Examples of streamer.ByteBuffer.writeShort()


        // Bias: 0 minutes (LE)
        buf.writeIntLE(0);

        // Standard name: "EET, Standard Time" (fixed string: 64 bytes, UCS2)
        buf.writeFixedString(62, standardTimeZoneName, RdpConstants.CHARSET_16);
        buf.writeShort(0);

        // Standard date
        buf.writeBytes(new byte[] {
                // wYear: 0 (LE)
                (byte)0x00, (byte)0x00,
View Full Code Here


        // StandardBias: 0 minutes (LE)
        buf.writeIntLE(standardTimeZoneBias);

        // Daylight name: "EET, Summer Time" (fixed string: 64 bytes, UCS2)
        buf.writeFixedString(62, daylightTimeZoneName, RdpConstants.CHARSET_16);
        buf.writeShort(0);

        // Daylight date
        buf.writeBytes(new byte[] {
                // wYear: 0 (LE)
                (byte)0x00, (byte)0x00,
View Full Code Here

        byte[] ntlm_v2_hash = ntlm_compute_ntlm_v2_hash();

        buf.writeByte(0x1); // RespType
        buf.writeByte(0x1); // HighRespType
        buf.writeShort(0); // reserved
        buf.writeInt(0); // reserved
        buf.writeBytes(clientChallengeTimestamp); // Timestamp, 8 bytes
        buf.writeBytes(clientChallenge); // Client nonce, 8 bytes
        buf.writeInt(0); // reserved
        buf.writeBytes(authenticateTargetInfo); // Target Info block
View Full Code Here

        outBuf.writeByte(RfbConstants.CLIENT_POINTER_EVENT);

        int buttonMask = mapAwtModifiersToVncButtonMask(order.event.getModifiersEx());
        outBuf.writeByte(buttonMask);
        outBuf.writeShort(order.event.getX());
        outBuf.writeShort(order.event.getY());

        pushDataToAllOuts(outBuf);
    }
View Full Code Here

        outBuf.writeByte(RfbConstants.CLIENT_POINTER_EVENT);

        int buttonMask = mapAwtModifiersToVncButtonMask(order.event.getModifiersEx());
        outBuf.writeByte(buttonMask);
        outBuf.writeShort(order.event.getX());
        outBuf.writeShort(order.event.getY());

        pushDataToAllOuts(outBuf);
    }

    /**
 
View Full Code Here

        ByteBuffer outBuf = new ByteBuffer(8);
        outBuf.writeByte(RfbConstants.CLIENT_KEYBOARD_EVENT);

        outBuf.writeByte((order.pressed) ? RfbConstants.KEY_DOWN : RfbConstants.KEY_UP);
        outBuf.writeShort(0); // padding
        outBuf.writeInt(map_en_us(order));

        pushDataToAllOuts(outBuf);
    }
View Full Code Here

        outBuf.writeByte(RfbConstants.CLIENT_SET_ENCODINGS);

        outBuf.writeByte(0);// padding

        outBuf.writeShort(encodings.length);

        for (int i = 0; i < encodings.length; i++) {
            outBuf.writeInt(encodings[i]);
        }
View Full Code Here

        ByteBuffer outBuf = new ByteBuffer(10);

        outBuf.writeByte(RfbConstants.CLIENT_FRAMEBUFFER_UPDATE_REQUEST);
        outBuf.writeByte((incremental) ? RfbConstants.FRAMEBUFFER_INCREMENTAL_UPDATE_REQUEST : RfbConstants.FRAMEBUFFER_FULL_UPDATE_REQUEST);
        outBuf.writeShort(x);
        outBuf.writeShort(y);
        outBuf.writeShort(width);
        outBuf.writeShort(height);

        if (verbose) {
View Full Code Here

        ByteBuffer outBuf = new ByteBuffer(10);

        outBuf.writeByte(RfbConstants.CLIENT_FRAMEBUFFER_UPDATE_REQUEST);
        outBuf.writeByte((incremental) ? RfbConstants.FRAMEBUFFER_INCREMENTAL_UPDATE_REQUEST : RfbConstants.FRAMEBUFFER_FULL_UPDATE_REQUEST);
        outBuf.writeShort(x);
        outBuf.writeShort(y);
        outBuf.writeShort(width);
        outBuf.writeShort(height);

        if (verbose) {
            outBuf.putMetadata("sender", this);
View Full Code Here

        outBuf.writeByte(RfbConstants.CLIENT_FRAMEBUFFER_UPDATE_REQUEST);
        outBuf.writeByte((incremental) ? RfbConstants.FRAMEBUFFER_INCREMENTAL_UPDATE_REQUEST : RfbConstants.FRAMEBUFFER_FULL_UPDATE_REQUEST);
        outBuf.writeShort(x);
        outBuf.writeShort(y);
        outBuf.writeShort(width);
        outBuf.writeShort(height);

        if (verbose) {
            outBuf.putMetadata("sender", this);
            outBuf.putMetadata("dimensions", width + "x" + height + "@" + x + "x" + y);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.