Microsoft.Protocols.TestTools.StackSdk.RemoteDesktop.Rdpbcgr.RdpbcgrDecoder.DecodeServerAutoDetectRequestPDU C# (CSharp) Method

DecodeServerAutoDetectRequestPDU() public method

public DecodeServerAutoDetectRequestPDU ( byte data, byte decryptedUserData, SecurityHeaderType type ) : StackPacket
data byte
decryptedUserData byte
type SecurityHeaderType
return StackPacket
        public StackPacket DecodeServerAutoDetectRequestPDU(
            byte[] data,
            byte[] decryptedUserData,
            SecurityHeaderType type)
        {
            Server_Auto_Detect_Request_PDU pdu = new Server_Auto_Detect_Request_PDU();

            // data index
            int dataIndex = 0;

            // Server_Heartbeat_PDU: commonHeader
            pdu.commonHeader = ParseMcsCommonHeader(data, ref dataIndex, type);

            // user data index
            int userDataIndex = 0;

            if (type == SecurityHeaderType.None)
            {
                pdu.commonHeader.securityHeader = ParseTsSecurityHeaderBasic(decryptedUserData, ref userDataIndex);
            }

            pdu.autoDetectReqData = ParseNetworkDectectRequest(decryptedUserData, ref userDataIndex);

            return pdu;
        }
RdpbcgrDecoder