Examples of incrementPosition()


Examples of com.lixia.rdp.Package.RdpPackage.incrementPosition()

        buffer.setLittleEndian32(RDPConnection.conf.keylayout);
        buffer.setLittleEndian32(RDPConnection.conf.use_rdp5 ? 2600 : 419); // or 0ece  // client build? we are 2600 compatible :-)

        /* Unicode name of client, padded to 32 bytes */
        buffer.outUnicodeString(RDPConnection.conf.hostname.toUpperCase(), hostlen);
        buffer.incrementPosition(30 - hostlen);

        buffer.setLittleEndian32(4);
        buffer.setLittleEndian32(0);
        buffer.setLittleEndian32(12);
        buffer.incrementPosition(64)/* reserved? 4 + 12 doublewords */
 
View Full Code Here

Examples of com.lixia.rdp.Package.RdpPackage.incrementPosition()

        if (hostlen > 0) {
            try {
                s.copyFromByteArray(rdpdr_clientname.getBytes("UTF-16LE"), 0, s.getPosition(), hostlen);
            } catch (UnsupportedEncodingException e) {
            }
            s.incrementPosition(hostlen);
        }
        s.setLittleEndian16(0);
        s.markEnd();
        try {
            this.send_packet(s);
View Full Code Here

Examples of com.lixia.rdp.Package.RdpPackage.incrementPosition()

        buffer.incrementPosition(30 - hostlen);

        buffer.setLittleEndian32(4);
        buffer.setLittleEndian32(0);
        buffer.setLittleEndian32(12);
        buffer.incrementPosition(64)/* reserved? 4 + 12 doublewords */

        buffer.setLittleEndian16(0xca01); // out_uint16_le(s, 0xca01);
        buffer.setLittleEndian16(RDPConnection.conf.use_rdp5 ? 1 : 0);

        if (RDPConnection.conf.use_rdp5) {
View Full Code Here

Examples of com.lixia.rdp.Package.RdpPackage.incrementPosition()

            buffer.set8(RDPConnection.conf.server_bpp); // out_uint8(s, g_server_bpp);
            buffer.setLittleEndian16(0x0700); // out_uint16_le(s, 0x0700);
            buffer.set8(0); // out_uint8(s, 0);
            buffer.setLittleEndian32(1); // out_uint32_le(s, 1);

            buffer.incrementPosition(64);

            buffer.setLittleEndian16(SEC_TAG_CLI_4); // out_uint16_le(s, SEC_TAG_CLI_4);
            buffer.setLittleEndian16(12); // out_uint16_le(s, 12);
            buffer.setLittleEndian32(RDPConnection.conf.console_session ? 0xb : 0xd); // out_uint32_le(s, g_console_session ? 0xb : 9);
            buffer.setLittleEndian32(0); // out_uint32(s, 0);
View Full Code Here

Examples of com.lixia.rdp.Package.RdpPackage.incrementPosition()

            s.setLittleEndian32(devices.indexOf(dev) + 1); /* deviceID */
            /* preferredDosName, Max 8 characters, may not be null terminated */

            String name = dev.name.replace(" ", "_").substring(0, dev.name.length() > 8 ? 8 : dev.name.length());
            s.copyFromByteArray(name.getBytes(), 0, s.getPosition(), name.length());
            s.incrementPosition(8);

            s.setLittleEndian32(dev.deviceData.size());
            if (dev.deviceData.size() > 0) {
                s.copyFromPacket(dev.deviceData, 0, s.getPosition(), dev.deviceData.size());
                s.incrementPosition(dev.deviceData.size());
View Full Code Here

Examples of com.lixia.rdp.Package.RdpPackage.incrementPosition()

            s.incrementPosition(8);

            s.setLittleEndian32(dev.deviceData.size());
            if (dev.deviceData.size() > 0) {
                s.copyFromPacket(dev.deviceData, 0, s.getPosition(), dev.deviceData.size());
                s.incrementPosition(dev.deviceData.size());
            }
        }
        s.markEnd();
        byte[] outputbyte = new byte[s.size()];
        s.copyToByteArray(outputbyte, 0, 0, s.size());
View Full Code Here

Examples of com.lixia.rdp.Package.RdpPackage.incrementPosition()

        RdpPackage buffer = this.init(flags, length + 4);

        buffer.setLittleEndian32(length);

        buffer.copyFromByteArray(this.sec_crypted_random, 0, buffer.getPosition(), server_public_key_len);
        buffer.incrementPosition(server_public_key_len);
        buffer.incrementPosition(SEC_PADDING_SIZE);
        buffer.markEnd();
        this.send(buffer, flags);

    }
View Full Code Here

Examples of com.lixia.rdp.Package.RdpPackage.incrementPosition()

        buffer.setLittleEndian32(length);

        buffer.copyFromByteArray(this.sec_crypted_random, 0, buffer.getPosition(), server_public_key_len);
        buffer.incrementPosition(server_public_key_len);
        buffer.incrementPosition(SEC_PADDING_SIZE);
        buffer.markEnd();
        this.send(buffer, flags);

    }
View Full Code Here

Examples of com.lixia.rdp.Package.RdpPackage.incrementPosition()

        data.setLittleEndian16(RDP_SOURCE.length);
        data.setLittleEndian16(caplen);

        data.copyFromByteArray(RDP_SOURCE, 0, data.getPosition(),
                RDP_SOURCE.length);
        data.incrementPosition(RDP_SOURCE.length);
        data.setLittleEndian16(0xd); // num_caps
        data.incrementPosition(2); // pad

        this.sendGeneralCaps(data);
        // ta.incrementPosition(this.RDP_CAPLEN_GENERAL);
View Full Code Here

Examples of com.lixia.rdp.Package.RdpPackage.incrementPosition()

        data.copyFromByteArray(RDP_SOURCE, 0, data.getPosition(),
                RDP_SOURCE.length);
        data.incrementPosition(RDP_SOURCE.length);
        data.setLittleEndian16(0xd); // num_caps
        data.incrementPosition(2); // pad

        this.sendGeneralCaps(data);
        // ta.incrementPosition(this.RDP_CAPLEN_GENERAL);
        this.sendBitmapCaps(data);
        this.sendOrderCaps(data);
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.