Exemplo n.º 1
0
        public void Connect(OutputPlug outplug)
        {
            if (!IsListeningTo(outplug))
            {
                Socket.Subscribe(outplug.Path.ToString());
                Owner.Endpoint.Log("Subscribing to " + outplug.Path.ToString());

                Socket.Connect(outplug.Path.ToEndpoint());
                Owner.Endpoint.Log("Connecting to " + outplug.Path.ToEndpoint());

                Owner.RegisterListener(this, outplug);
            }
        }
Exemplo n.º 2
0
 public bool IsListeningTo(OutputPlug plug)
 {
     return(Owner.ConnectedInputs.ContainsKey(plug.Path.ToString()));
 }