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));
}