public SACNListener(Int16 universeID, int port) { Port = port; UniverseID = universeID; Socket = new EventClient(port); Socket.JoinMulticastGroup(SACNCommon.GetMulticastAddress(UniverseID)); Socket.PacketReceived += Socket_PacketReceived; }
private IPEndPoint GetEndPoint(Int16 universeID, int port) { if (Multicast) { return(new IPEndPoint(SACNCommon.GetMulticastAddress(universeID), port)); } else { return(new IPEndPoint(UnicastAddress, port)); } }