Examples of incrementPosition()


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

            buffer.copyFromByteArray(username, 0, buffer.getPosition(), userlen - 1);
        } else {
            buffer.copyFromByteArray(username, 0, buffer.getPosition(), userlen);
        }

        buffer.incrementPosition(userlen);

        buffer.setLittleEndian16(LICENCE_TAG_HOST);
        buffer.setLittleEndian16(hostlen);

        if (hostname.length != 0) {
View Full Code Here

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

        if (hostname.length != 0) {
            buffer.copyFromByteArray(hostname, 0, buffer.getPosition(), hostlen - 1);
        } else {
            buffer.copyFromByteArray(hostname, 0, buffer.getPosition(), hostlen);
        }
        buffer.incrementPosition(hostlen);
        buffer.markEnd();
        secure.send(buffer, sec_flags);
    }

    /**
 
View Full Code Here

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

     */
    public RdpPackage init(int length) throws RdesktopException {
        RdpPackage data = IsoLayer.init(length + 8);
        //data.pushLayer(RdpPackage.MCS_HEADER, 8);
        data.setHeader(RdpPackage.MCS_HEADER);
        data.incrementPosition(8);
        data.setStart(data.getPosition());
        return data;
    }

    /**
 
View Full Code Here

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

                throw new RdesktopException("Expected data got" + opcode);
            }
            throw new EOFException("End of transmission!");
        }

        buffer.incrementPosition(2); // Skip UserID
        channel[0] = buffer.getBigEndian16(); // Get ChannelID
//    logger.debug("Channel ID = " + channel[0]);
        buffer.incrementPosition(1); // Skip Flags

        length = buffer.get8();
View Full Code Here

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

        }

        buffer.incrementPosition(2); // Skip UserID
        channel[0] = buffer.getBigEndian16(); // Get ChannelID
//    logger.debug("Channel ID = " + channel[0]);
        buffer.incrementPosition(1); // Skip Flags

        length = buffer.get8();

        if ((length & 0x80) != 0) {
            buffer.incrementPosition(1);
View Full Code Here

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

        buffer.incrementPosition(1); // Skip Flags

        length = buffer.get8();

        if ((length & 0x80) != 0) {
            buffer.incrementPosition(1);
        }
        buffer.setStart(buffer.getPosition());

        return buffer;
View Full Code Here

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

            sendDomainParams(buffer, 0xffff, 0xfc17, 0xffff, 0xffff); //maximum parameters

            sendBerHeader(buffer, BER_TAG_OCTET_STRING, data.getEnd());

            data.copyToPacket(buffer, 0, buffer.getPosition(), data.getEnd());
            buffer.incrementPosition(data.getEnd());
            buffer.markEnd();
            IsoLayer.send(buffer);
            return;
        }
View Full Code Here

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

        sendDomainParams(buffer, 0xffff, 0xfc17, 0xffff, 0xffff); //maximum parameters

        sendBerHeader(buffer, BER_TAG_OCTET_STRING, datalen);

        data.copyToPacket(buffer, 0, buffer.getPosition(), data.getEnd());
        buffer.incrementPosition(data.getEnd());
        buffer.markEnd();
        IsoLayer.send(buffer);
    }

    /**
 
View Full Code Here

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

        result = buffer.get8();
        if (result != 0) {
            throw new RdesktopException("Expected CJRQ got " + result);
        }

        buffer.incrementPosition(4); //skip userid, req_channelid

        if ((opcode & 2) != 0) {
            buffer.incrementPosition(2); // skip join_channelid
        }
View Full Code Here

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

        }

        buffer.incrementPosition(4); //skip userid, req_channelid

        if ((opcode & 2) != 0) {
            buffer.incrementPosition(2); // skip join_channelid
        }

        if (buffer.getPosition() != buffer.getEnd()) {
            throw new RdesktopException();
        }
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.