Examples of markEnd()


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

            } catch (UnsupportedEncodingException e) {
            }
            s.incrementPosition(hostlen);
        }
        s.setLittleEndian16(0);
        s.markEnd();
        try {
            this.send_packet(s);
        } catch (RdesktopException e) {
        } catch (IOException e) {
        } catch (CryptoException e) {
View Full Code Here

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

        s.setLittleEndian16(8)/* length */

        s.setLittleEndian32(SMARTCARD_CAPABILITY_VERSION_01);

        s.markEnd();

        try {
            this.send_packet(s);
        } catch (RdesktopException e) {
        } catch (CryptoException e) {
View Full Code Here

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

                buffer.out_uint8p(channels.channel(i).name(), 8); // out_uint8a(s, g_channels[i].name, 8);
                buffer.setBigEndian32(channels.channel(i).flags()); // out_uint32_be(s, g_channels[i].flags);
            }
        }

        buffer.markEnd();
        return buffer;
    }

    /**
     * Handle MCS info from server (server info, encryption info and channel
View Full Code Here

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

            data.setLittleEndian32(RDPConnection.conf.rdp5_performanceflags); // out_uint32_le(s,
            // 0x0f);
            data.setLittleEndian32(0); // out_uint32(s, 0);
        }

        data.markEnd();
        byte[] buffer = new byte[data.getEnd()];
        data.copyToByteArray(buffer, 0, 0, data.getEnd());
        SecureLayer.send(data, sec_flags);
    }
View Full Code Here

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

            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());
        try {
            this.send_packet(s);
        } catch (RdesktopException e) {
View Full Code Here

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

        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);

    }

    public void processCryptInfo(RdpPackage data) throws RdesktopException, CryptoException {
View Full Code Here

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

        this.sendUnknownCaps(data, 0x10, 0x34, caps_0x10); // rdp_out_unknown_caps(s,
        // 0x10, 0x34,
        // caps_0x10); /*
        // glyph cache? */

        data.markEnd();
//        logger.debug("confirm active");
        // this.send(data, RDP_PDU_CONFIRM_ACTIVE);
        RDPConnection.conf.secure.send(data, sec_flags);
    }

View Full Code Here

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

        s.setLittleEndian32(status);
        s.setLittleEndian32(result);
        if (length > 0) {
            s.copyFromByteArray(buffer, 0, s.getPosition(), length);
        }
        s.markEnd();
        try {
            this.send_packet(s);
        } catch (RdesktopException e) {
        } catch (CryptoException e) {
        } catch (IOException e) {
View Full Code Here

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

    private void sendSynchronize() throws RdesktopException, IOException, CryptoException {
        RdpPackage data = this.initData(4);
        data.setLittleEndian16(1); // type
        data.setLittleEndian16(1002);
        data.markEnd();
//        logger.debug("sync");
        this.sendData(data, RDP_DATA_PDU_SYNCHRONISE);
    }

    private void sendControl(int action) throws RdesktopException, IOException, CryptoException {
View Full Code Here

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

    private void sendControl(int action) throws RdesktopException, IOException, CryptoException {
        RdpPackage data = this.initData(8);
        data.setLittleEndian16(action);
        data.setLittleEndian16(0); // userid
        data.setLittleEndian32(0); // control id
        data.markEnd();
//        logger.debug("control");
        this.sendData(data, RDP_DATA_PDU_CONTROL);
    }

    public void sendInput(int time, int message_type, int device_flags, int param1, int param2) {
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.