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 }
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); }
private void toolStripButton1_Click(object sender, EventArgs e) { if (!acnSocket.PortOpen) { acnSocket.Open(localAddress); } slpUser.Open(); slpUser.Find("service:e133.esta"); }
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"); }