Esempio n. 1
0
        private void Start(CardInfo networkCard, IEnumerable <int> universes)
        {
            socket            = new StreamingAcnSocket(Guid.NewGuid(), "Streaming ACN Snoop");
            socket.NewPacket += new EventHandler <NewPacketEventArgs <Acn.Packets.sAcn.StreamingAcnDmxPacket> >(socket_NewPacket);
            socket.Open(networkCard.IpAddress);

            foreach (int universe in universes)
            {
                socket.JoinDmxUniverse(universe);
            }

            dmxOutput = new DmxStreamer(socket);
            dmxOutput.AddUniverse(sendData.Universe);

            acnPortExplorer = new RdmNetEndPointExplorer();
            acnPortExplorer.LocalAdapter      = networkCard.IpAddress;
            acnPortExplorer.NewEndpointFound += acnPortExplorer_NewEndpointFound;
            acnPortExplorer.Start();
        }
Esempio n. 2
0
        public void Start()
        {
            PatchManager.Instance.Init();

            socket = new StreamingAcnSocket(Guid.NewGuid(), "PixelDriver");
            socket.Open(new System.Net.IPAddress(new byte[] { 192, 168, 1, 50 }));

            foreach (Byte u in PatchManager.Instance.Universes)
            {
                socket.JoinDmxUniverse(u);
                universes.Add(u, new DmxUniverse(u));
            }

            dmxOutput = new DmxStreamer(socket);
            foreach (KeyValuePair <byte, DmxUniverse> universe in universes)
            {
                dmxOutput.AddUniverse(universe.Value);
            }
            dmxOutput.Start();
        }
Esempio n. 3
0
        private void Start(CardInfo networkCard, IEnumerable<int> universes)
        {
            socket = new StreamingAcnSocket(Guid.NewGuid(), "Streaming ACN Snoop");
            socket.SynchronizationAddress = SynchronizationUniverse;
            socket.NewPacket += socket_NewPacket;
            socket.NewSynchronize += socket_NewSynchronize;
            socket.NewDiscovery += socket_NewDiscovery;
            socket.Open(networkCard.IpAddress);
            socket.StartDiscovery();

            foreach (int universe in universes)
                socket.JoinDmxUniverse(universe);

            dmxOutput = new DmxStreamer(socket);
            dmxOutput.AddUniverse(sendData.Universe);

            acnPortExplorer = new RdmNetEndPointExplorer();
            acnPortExplorer.LocalAdapter = networkCard.IpAddress;
            acnPortExplorer.NewEndpointFound += acnPortExplorer_NewEndpointFound;
            acnPortExplorer.Start();

        }