예제 #1
0
        void ReceiveSymbol(string sendName, string value)
        {
            if (sendName == "debug")
            {
                Logger.Log(string.Format("{0} received Symbol: {1}", sendName, value));
            }
            else if (sendNameSymbolReceiverDict.ContainsKey(sendName))
            {
                for (int i = sendNameSymbolReceiverDict[sendName].Count - 1; i >= 0; i--)
                {
                    PureDataSymbolReceiver receiver = sendNameSymbolReceiverDict[sendName][i];

                    if (receiver.asynchronous)
                    {
                        receiver.Receive(value);
                    }
                    else
                    {
                        receiver.Enqueue(value);
                        queuedReceivers.Enqueue(receiver);
                    }
                }
            }
        }
예제 #2
0
 public void Release(PureDataSymbolReceiver symbolReceiver)
 {
     sendNameSymbolReceiverDict[symbolReceiver.sendName].Remove(symbolReceiver);
 }