Microsoft.Protocols.TestTools.StackSdk.RemoteDesktop.Rdpbcgr.RdpbcgrServerDecoder.DecodeMcsErectDomainRequestPDU C# (CSharp) Method

DecodeMcsErectDomainRequestPDU() public method

Decode MCS Erect Domain Request PDU
public DecodeMcsErectDomainRequestPDU ( byte data ) : Microsoft.Protocols.TestTools.StackSdk.StackPacket
data byte data to be parsed
return Microsoft.Protocols.TestTools.StackSdk.StackPacket
        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;
        }
RdpbcgrServerDecoder