The MCS Erect Domain Request PDU is an RDP Connection Sequence PDU sent from client to server during the Channel Connection phase (see section 1.3.1.1). It is sent after receiving the MCS Connect Response PDU (section 2.2.1.4).
Inheritance: RdpbcgrClientPdu
        /// <summary>
        /// Decode MCS Erect Domain Request PDU
        /// </summary>
        /// <param name="data">data to be parsed</param>
        /// <returns>Decode MCS Erect Domain Request PDU</returns>
        public StackPacket DecodeMcsErectDomainRequestPDU(byte[] data)
        {
            // initialize
            int currentIndex = 0;
            Client_MCS_Erect_Domain_Request pdu = new Client_MCS_Erect_Domain_Request();

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

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

            ErectDomainRequest erectDomainRequest = (ErectDomainRequest)ParseMcsDomainPdu(data, ref currentIndex).GetData();

            pdu.subHeight = (int)erectDomainRequest.subHeight.Value;
            pdu.subInterval = (int)erectDomainRequest.subInterval.Value;

            // Check if data length exceeded expectation
            VerifyDataLength(data.Length, currentIndex, ConstValue.ERROR_MESSAGE_DATA_LENGTH_EXCEEDED);
            return pdu;
        }
 /// <summary>
 /// 2.2.1.5
 /// </summary>
 /// <param name="erectPdu"></param>
 public void VerifyPdu(Client_MCS_Erect_Domain_Request erectPdu)
 {
 }
Exemplo n.º 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_Erect_Domain_Request cloneMcsErectPdu = new Client_MCS_Erect_Domain_Request(context);

            cloneMcsErectPdu.subHeight = subHeight;
            cloneMcsErectPdu.subInterval = subInterval;
            cloneMcsErectPdu.tpktHeader = tpktHeader;
            cloneMcsErectPdu.x224Data = x224Data;

            return cloneMcsErectPdu;
        }