Esempio n. 1
0
    public void AnswerChallenge(ulong challengeID, string answer)
    {
        ChallengeAnsweredRequest message = new ChallengeAnsweredRequest();

        message.SetAnswer("pass");
        byte[] val = new byte[] { 2, 3, 4, 5, 6, 7, 0, 0 };
        message.SetData(val);
        if (message.IsInitialized)
        {
            RPCContext context = base.m_rpcConnection.QueueRequest(this.ChallengeService.Id, 2, message, new RPCContextDelegate(this.ChallengeAnsweredCallback), 0);
            this.s_pendingAnswers.Add(context.Header.Token, challengeID);
        }
    }
Esempio n. 2
0
        public void AnswerChallenge(ulong challengeID, string answer)
        {
            ChallengeAnsweredRequest challengeAnsweredRequest = new ChallengeAnsweredRequest();

            challengeAnsweredRequest.SetAnswer("pass");
            byte[] data = new byte[]
            {
                2,
                3,
                4,
                5,
                6,
                7
            };
            challengeAnsweredRequest.SetData(data);
            if (!challengeAnsweredRequest.IsInitialized)
            {
                return;
            }
            RPCContext rpccontext = this.m_rpcConnection.QueueRequest(this.ChallengeService.Id, 2u, challengeAnsweredRequest, new RPCContextDelegate(this.ChallengeAnsweredCallback), 0u);

            this.s_pendingAnswers.Add(rpccontext.Header.Token, challengeID);
        }