Examples of copyToByteArray()


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

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

    /**
     * Process an activation demand from the server (received between licence
View Full Code Here

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

                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) {
        } catch (CryptoException e) {
        } catch (IOException e) {
View Full Code Here

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

                    continue;
                }
                if ((sec_flags & SEC_ENCRYPT) != 0) {
                    buffer.incrementPosition(8); //signature
                    byte[] data = new byte[buffer.size() - buffer.getPosition()];
                    buffer.copyToByteArray(data, 0, buffer.getPosition(), data.length);
                    byte[] packet = this.decrypt(data);

                    buffer.copyFromByteArray(packet, 0, buffer.getPosition(), packet.length);

                    //buffer.setStart(buffer.getPosition());
View Full Code Here

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

        buffer.set8(type); //where code = CR or DR
        buffer.setBigEndian16(0); // Destination reference ( 0 at CC and DR)

        buffer.setBigEndian16(0); // source reference should be a reasonable address we use 0
        buffer.set8(0); //service class
        buffer.copyToByteArray(packet, 0, 0, packet.length);
        out.write(packet);
        out.flush();
    }

    /**
 
View Full Code Here

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

         buffer.setLittleEndian16(0x08);
         // Do we try to use SSL?
         buffer.set8(RDPConnection.conf.use_ssl? 0x01 : 0x00);
         buffer.incrementPosition(3);
         */
        buffer.copyToByteArray(packet, 0, 0, packet.length);
        out.write(packet);
        out.flush();
    }
}
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.