public void SendPacket(IPacketBase packet) { m_outgoingQueue.Enqueue(packet); //If we're not already sending, queue up a send on the task pool if (Interlocked.Read(ref sending) == 0) { QueueSend(); } }