Ejemplo n.º 1
0
        public void Start()
        {
            if (acnSocket == null || !acnSocket.PortOpen)
            {
                acnSocket = new RdmNetSocket(UId.NewUId(0xFF), Guid.NewGuid(), "RDM Snoop");
                acnSocket.NewRdmPacket += acnSocket_NewRdmPacket;
                acnSocket.Open(new IPEndPoint(LocalAdapter, 0));
            }

#if SLP_Discovery
            slpUser = new SlpUserAgent("ACN-DEFAULT");
            slpUser.NetworkAdapter = localAdapter;
            slpUser.ServiceFound  += new EventHandler <ServiceFoundEventArgs>(slpUser_ServiceFound);


            slpUser.Open();
            slpUser.Find("service:rdmnet-device");
#endif

#if mDNS_Discovery
            dnsSD = new ServiceBrowser();
            dnsSD.ServiceAdded += dnsSD_ServiceAdded;
            dnsSD.Browse("_rdmnet._udp", "local");
#endif
        }
Ejemplo n.º 2
0
        private void find_Click(object sender, EventArgs e)
        {
            deviceList.Items.Clear();

            //slpUser.NetworkAdapter = new IPAddress(new byte[] { 10, 0, 0, 1 });
            slpUser.Scope = scopeSelect.Text;
            slpUser.Open();
            slpUser.Find(urlText.Text);
        }
Ejemplo n.º 3
0
        private void toolStripButton1_Click(object sender, EventArgs e)
        {
            if (!acnSocket.PortOpen)
            {
                acnSocket.Open(localAddress);
            }

            slpUser.Open();
            slpUser.Find("service:e133.esta");
        }
Ejemplo n.º 4
0
        public void Start()
        {
            slpUser.NetworkAdapter = localAdapter;
            slpUser.ServiceFound  += new EventHandler <ServiceFoundEventArgs>(slpUser_ServiceFound);

            if (acnSocket == null || !acnSocket.PortOpen)
            {
                acnSocket = new RdmNetSocket(UId.NewUId(0xFF), Guid.NewGuid(), "RDM Snoop");
                acnSocket.NewRdmPacket += acnSocket_NewRdmPacket;
                acnSocket.Open(new IPEndPoint(LocalAdapter, 0));
            }

            slpUser.Open();
            slpUser.Find("service:rdmnet-device");
        }