The Auto-Detect Request PDU is sent by the server to the client and is used to detect network characteristics such as bandwidth and round-trip time.
Inheritance: RdpbcgrServerPdu
コード例 #1
0
        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;
        }
コード例 #2
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()
        {
            Server_Auto_Detect_Request_PDU serverAutoDetectRequestPdu = new Server_Auto_Detect_Request_PDU();
            serverAutoDetectRequestPdu.commonHeader = commonHeader.Clone();
            serverAutoDetectRequestPdu.autoDetectReqData = autoDetectReqData.Clone();

            return serverAutoDetectRequestPdu;
        }