Пример #1
0
        protected void InvokeBundle(OSCBundle bundle)
        {
            if (bundle == null)
            {
                return;
            }

            foreach (var packet in bundle.Packets)
            {
                InvokePacket(packet);
            }
        }
Пример #2
0
        protected virtual void Update()
        {
            if (_packetPool.Count > 0)
            {
                var bundle = new OSCBundle();

                foreach (var packet in _packetPool)
                {
                    bundle.AddPacket(packet);
                }

                Send(bundle);

                _packetPool.Clear();
            }
        }