The MCS Attach User Request PDU is an RDP Connection Sequence PDU sent from client to server during the Channel Connection phase (see section 1.3.1.1) to request a user channel ID. It is sent after transmitting the MCS Erect Domain Request PDU (section 2.2.1.5).
Inheritance: RdpbcgrClientPdu
        /// <summary>
        /// Decode MCS Attach User Request PDU
        /// </summary>
        /// <param name="data">data to be parsed</param>
        /// <returns>decoded MCS Attach User Request PDU</returns>
        public StackPacket DecodeMcsAttachUserRequestPDU(byte[] data)
        {
            // initialize
            int currentIndex = 0;
            Client_MCS_Attach_User_Request pdu = new Client_MCS_Attach_User_Request();

            // McsAttachUserConfirmPDU: TpktHeader
            pdu.tpktHeader = ParseTpktHeader(data, ref currentIndex);

            // McsAttachUserConfirmPDU: x224Data
            pdu.x224Data = ParseX224Data(data, ref currentIndex);

            AttachUserRequest attachUserRequest = (AttachUserRequest)ParseMcsDomainPdu(data, ref currentIndex).GetData();

            // Check if data length exceeded expectation
            VerifyDataLength(data.Length, currentIndex, ConstValue.ERROR_MESSAGE_DATA_LENGTH_EXCEEDED);
            return pdu;
        }
 /// <summary>
 /// 2.2.1.6
 /// </summary>
 /// <param name="attachUserPdu"></param>
 public void VerifyPdu(Client_MCS_Attach_User_Request attachUserPdu)
 {
 }
示例#3
0
        /// <summary>
        /// Create an instance of the class that is identical to the current PDU. 
        /// </summary>
        /// <returns>The new instance.</returns>
        public override StackPacket Clone()
        {
            Client_MCS_Attach_User_Request cloneMcsAttachPdu = new Client_MCS_Attach_User_Request(context);

            cloneMcsAttachPdu.tpktHeader = tpktHeader;
            cloneMcsAttachPdu.x224Data = x224Data;

            return cloneMcsAttachPdu;
        }