Exemplo n.º 1
0
        public MainWindow()
        {
            InitializeComponent();
            Color = new RGBW()
            {
                R = 0, G = 0, B = 0, W = 0
            };
            socket = new ArtNetSocket()
            {
                EnableBroadcast = true
            };

            var localIP = Dns.GetHostEntry(Dns.GetHostName()).AddressList
                          .Where(ip => ip.AddressFamily == AddressFamily.InterNetwork)
                          .FirstOrDefault();

            socket.Begin(localIP, IPAddress.Parse("255.255.255.0"));
        }