IEnumerator Transfer() { m_connection.Connect(); while (true) { if (OutboundData.Count > 0) { TransferData Data = OutboundData.Dequeue(); { m_connection.Send(Data.ToDataStream()); } } yield return(new WaitForSeconds(0.01f)); } }