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

DecodeMcsAttachUserRequestPDU() public method

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