Package streamer

Examples of streamer.ByteBuffer.writeByte()


        // Length of packet
        ByteBuffer buf = new ByteBuffer(1024, true);

        // MCS Send Data Request PDU
        buf.writeByte(0x64);

        // Initiator: 0x03 + 1001 = 1004
        buf.writeShort(3);

        // Channel ID: 1003
View Full Code Here


        // Channel ID: 1003
        buf.writeShort(1003);

        // Data priority: high, segmentation: begin | end (0x40 | 0x20 | 0x10 = 0x70)
        buf.writeByte(0x70);

        // User data length: (variable length field)
        int length = 224 + userName.length + password.length + alternateShell.length + domain.length + workingDir.length + clientAddress.length + clientDir.length;
        buf.writeShort(length | 0x8000);
View Full Code Here

    private ByteBuffer generateNegotiateMessage() {
        ByteBuffer buf = new ByteBuffer(1024);

        // Signature
        buf.writeString("NTLMSSP", RdpConstants.CHARSET_8);
        buf.writeByte(0);

        // Message type
        buf.writeIntLE(NtlmConstants.NEGOTIATE);

        buf.writeIntLE(clientConfigFlags.value); // Flags
View Full Code Here

        super.onStart();

        int length = 5;
        ByteBuffer buf = new ByteBuffer(length, true);

        buf.writeByte(0x04); // Erect Domain Request

        // Client SHOULD initialize both the subHeight and subinterval fields of the MCS Erect Domain Request PDU to zero.

        buf.writeByte(1); // ErectDomainRequest::subHeight length = 1 byte
        buf.writeByte(0); // ErectDomainRequest::subHeight
View Full Code Here

        buf.writeByte(0x04); // Erect Domain Request

        // Client SHOULD initialize both the subHeight and subinterval fields of the MCS Erect Domain Request PDU to zero.

        buf.writeByte(1); // ErectDomainRequest::subHeight length = 1 byte
        buf.writeByte(0); // ErectDomainRequest::subHeight

        buf.writeByte(1); // ErectDomainRequest::subInterval length = 1 byte
        buf.writeByte(0); // ErectDomainRequest::subInterval
View Full Code Here

        buf.writeByte(0x04); // Erect Domain Request

        // Client SHOULD initialize both the subHeight and subinterval fields of the MCS Erect Domain Request PDU to zero.

        buf.writeByte(1); // ErectDomainRequest::subHeight length = 1 byte
        buf.writeByte(0); // ErectDomainRequest::subHeight

        buf.writeByte(1); // ErectDomainRequest::subInterval length = 1 byte
        buf.writeByte(0); // ErectDomainRequest::subInterval

        pushDataToOTOut(buf);
View Full Code Here

        // Client SHOULD initialize both the subHeight and subinterval fields of the MCS Erect Domain Request PDU to zero.

        buf.writeByte(1); // ErectDomainRequest::subHeight length = 1 byte
        buf.writeByte(0); // ErectDomainRequest::subHeight

        buf.writeByte(1); // ErectDomainRequest::subInterval length = 1 byte
        buf.writeByte(0); // ErectDomainRequest::subInterval

        pushDataToOTOut(buf);

        switchOff();
View Full Code Here

        buf.writeByte(1); // ErectDomainRequest::subHeight length = 1 byte
        buf.writeByte(0); // ErectDomainRequest::subHeight

        buf.writeByte(1); // ErectDomainRequest::subInterval length = 1 byte
        buf.writeByte(0); // ErectDomainRequest::subInterval

        pushDataToOTOut(buf);

        switchOff();
    }
View Full Code Here

    }

    private void sendChannelRequest(int channel) {
        ByteBuffer buf = new ByteBuffer(5, true);

        buf.writeByte(0x38); // Channel Join request

        buf.writeShort(state.serverUserChannelId - 1001); // ChannelJoinRequest::initiator: 1004
        buf.writeShort(channel);

        pushDataToOTOut(buf);
View Full Code Here

        // Length of combined capabilities + 4 bytes (number of capabilities and
        // padding) (LE)
        header.writeShortLE(buf.length + 4);

        header.writeString(SOURCE_DESC, RdpConstants.CHARSET_8);
        header.writeByte(0);

        // Number of capabilities
        header.writeShortLE(numberCapabilities);

        // Padding 2 bytes
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.