protected void OnValidate()
        {
            localPort = OSCUtilities.ClampPort(localPort);

            if (receiverBackend.IsRunning && IsAvailable)
            {
                Close();
                Connect();
            }
        }
Exemple #2
0
        protected void OnValidate()
        {
            if (string.IsNullOrEmpty(localHost))
            {
                localHost = OSCUtilities.GetLocalHost();
            }

            localPort = OSCUtilities.ClampPort(localPort);

            if (receiverBackend.IsRunning && IsAvailable)
            {
                Close();
                Connect();
            }
        }
Exemple #3
0
        protected void OnValidate()
        {
            remotePort = OSCUtilities.ClampPort(remotePort);

            if (localPort > 0)
            {
                localPort = OSCUtilities.ClampPort(localPort);
            }

            transmitterBackend.RefreshConnection(remoteHost, remotePort);

            if (IsAvaible)
            {
                Close();
                Connect();
            }
        }
Exemple #4
0
        protected void InvokeMessage(OSCMessage message)
        {
            if (message == null)
            {
                return;
            }

            _bindStack.Clear();
            _bindStack.Clear();

            _processMessage = true;

            foreach (var bind in bindings)
            {
                if (bind == null)
                {
                    continue;
                }

                if (OSCUtilities.CompareAddresses(bind.ReceiverAddress, message.Address))
                {
                    if (bind.Callback != null)
                    {
                        bind.Callback.Invoke(message);
                    }
                }
            }

            _processMessage = false;

            while (_bindStack.Count > 0)
            {
                Bind(_bindStack.Pop());
            }

            while (_unbindStack.Count > 0)
            {
                Unbind(_unbindStack.Pop());
            }
        }
        protected void OnValidate()
        {
            remotePort = OSCUtilities.ClampPort(remotePort);

            if (string.IsNullOrEmpty(localHost))
            {
                localHost = OSCUtilities.GetLocalHost();
            }

            if (localPort > 0)
            {
                localPort = OSCUtilities.ClampPort(localPort);
            }

            transmitterBackend.RefreshRemote(remoteHost, remotePort);

            if (IsAvailable)
            {
                Close();
                Connect();
            }
        }
        protected void InvokeMessage(OSCMessage message)
        {
            if (message == null)
            {
                return;
            }

            foreach (var bind in bindings)
            {
                if (bind == null)
                {
                    continue;
                }

                if (OSCUtilities.CompareAddresses(bind.ReceiverAddress, message.Address))
                {
                    if (bind.Callback != null)
                    {
                        bind.Callback.Invoke(message);
                    }
                }
            }
        }
 protected void OnValidate()
 {
     remotePort = OSCUtilities.ClampPort(remotePort);
     transmitterBackend.RefreshConnection(remoteHost, remotePort);
 }