public void AddForSendProcessing(SinglePacketSender sendProcessor) { m_vPacketsToSend.Enqueue(sendProcessor); EngineControler.Instance.QueForSend(this); processPktNum++; }
internal bool SendPackets() { SinglePacketSender processor = null; if (0 < m_vPacketsToSend.Count) { m_vPacketsToSend.TryDequeue(out processor); } if (null != processor) { processor.SendPackets(this); } if (NeedsToSend) { EngineControler.Instance.QueForSend(this); } return(m_vPacketsToSend.Count != 0); }