Beispiel #1
0
        public SACNListener(Int16 universeID, int port)
        {
            Port       = port;
            UniverseID = universeID;
            Socket     = new EventClient(port);
            Socket.JoinMulticastGroup(SACNCommon.GetMulticastAddress(UniverseID));

            Socket.PacketReceived += Socket_PacketReceived;
        }
Beispiel #2
0
 private IPEndPoint GetEndPoint(Int16 universeID, int port)
 {
     if (Multicast)
     {
         return(new IPEndPoint(SACNCommon.GetMulticastAddress(universeID), port));
     }
     else
     {
         return(new IPEndPoint(UnicastAddress, port));
     }
 }