Package streamer

Examples of streamer.ByteBuffer.writeByte()


        // RDP_NEG_REQ::type
        buf.writeByte(RdpConstants.RDP_NEG_REQ_TYPE_NEG_REQ);
        // RDP_NEG_REQ::flags (0)
        buf.writeByte(RdpConstants.RDP_NEG_REQ_FLAGS);
        // RDP_NEG_REQ::length (constant: 8) short int in LE format
        buf.writeByte(0x08);
        buf.writeByte(0x00);

        // RDP_NEG_REQ: Requested protocols: PROTOCOL_SSL
        buf.writeIntLE(protocol);
View Full Code Here


        buf.writeByte(RdpConstants.RDP_NEG_REQ_TYPE_NEG_REQ);
        // RDP_NEG_REQ::flags (0)
        buf.writeByte(RdpConstants.RDP_NEG_REQ_FLAGS);
        // RDP_NEG_REQ::length (constant: 8) short int in LE format
        buf.writeByte(0x08);
        buf.writeByte(0x00);

        // RDP_NEG_REQ: Requested protocols: PROTOCOL_SSL
        buf.writeIntLE(protocol);

        // Calculate length of packet and prepend it to buffer
View Full Code Here

        // Get mouse event
        MouseOrder order = (MouseOrder)buf.getOrder();

        ByteBuffer outBuf = new ByteBuffer(6);

        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());
View Full Code Here

        ByteBuffer outBuf = new ByteBuffer(6);

        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

        KeyOrder order = (KeyOrder)buf.getOrder();
        buf.unref();

        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));
View Full Code Here

        buf.unref();

        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

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.