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 }
public void Start() { if (socket == null || !socket.PortOpen) { LocalAdapter = localAdapter; socket = new ArtNetSocket(UId.NewUId(32)); socket.NewPacket += new EventHandler <Acn.Sockets.NewPacketEventArgs <ArtNetPacket> >(socket_NewPacket); socket.Open(LocalAdapter, SubnetMask); Discover(DiscoveryType.GatewayDiscovery); } }
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"); }