BitCoinClient.Worker.ProcessWorkCommand C# (CSharp) 메소드

ProcessWorkCommand() 공개 메소드

public ProcessWorkCommand ( NetworkStream stream ) : void
stream NetworkStream
리턴 void
        void ProcessWorkCommand(NetworkStream stream)
        {
            BinaryReader br = new BinaryReader(stream);
            mHashStart = br.ReadUInt32();
            mHashCount = br.ReadUInt32();
            byte[] midstate = br.ReadBytes(32);
            byte[] data = br.ReadBytes(64);
            byte[] target = br.ReadBytes(32);

            Buffer.BlockCopy(midstate, 0, mMidstate, 0, 32);
            Buffer.BlockCopy(data, 0, mData, 0, 64);
            Buffer.BlockCopy(target, 0, mTarget, 0, 32);

            mHashesDone = 0;
            mDoWork = true;

            //Console.WriteLine("Work Command recieved: " + mHashStart + " - " + (mHashStart + mHashCount));
        }