Ejemplo n.º 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;
        }
Ejemplo n.º 2
0
 private IPEndPoint GetEndPoint(Int16 universeID, int port)
 {
     if (Multicast)
     {
         return(new IPEndPoint(SACNCommon.GetMulticastAddress(universeID), port));
     }
     else
     {
         return(new IPEndPoint(UnicastAddress, port));
     }
 }