CentralMine.NET.ClientManager.AssignWork C# (CSharp) Method

AssignWork() public method

public AssignWork ( Client c ) : void
c Client
return void
        void AssignWork(Client c)
        {
            if (mBlock != null)
            {
                //mEventLog.RecordEvent(EventLog.EventType.HashWork, string.Format("Allocating {0} hashes for client: {1}", c.mDesiredHashes, c.ToLogString()));
                HashManager.HashBlock hashes = mBlock.mHashMan.Allocate(c.mDesiredHashes, c);
                if (hashes != null)
                {
                    //mEventLog.RecordEvent(EventLog.EventType.HashWork, string.Format("Sending hash range ({0} - {1}) to client: {2}", hashes.Start, hashes.Start + hashes.Count, c.ToLogString()));
                    c.SendWork(hashes, mBlock);
                }
            }
        }