ProcessQueue() private method

private ProcessQueue ( MonoTorrent.Client.PeerId id ) : void
id MonoTorrent.Client.PeerId The peer whose message queue you want to start processing
return void
Ejemplo n.º 1
0
 internal void Enqueue(PeerMessage msg)
 {
     sendQueue.Add(msg);
     if (!ProcessingQueue)
     {
         ProcessingQueue = true;
         ConnectionManager.ProcessQueue(this);
     }
 }
Ejemplo n.º 2
0
        internal void EnqueueAt(PeerMessage message, int index)
        {
            if (sendQueue.Count == 0 || index >= sendQueue.Count)
            {
                sendQueue.Add(message);
            }
            else
            {
                sendQueue.Insert(index, message);
            }

            if (!ProcessingQueue)
            {
                ProcessingQueue = true;
                ConnectionManager.ProcessQueue(this);
            }
        }