Exemplo n.º 1
0
        void Start()
        {
            //usedAxis = this.axis;

            _endPoint = new IPEndPoint(IPAddress.Any, listenPort);

            _client = new UdpClient(_endPoint);
            _thread = new Thread(async() =>
            {
                while (_runReceiveThread)
                {
                    try
                    {
                        var result    = await _client.ReceiveAsync();
                        var rawString = Encoding.UTF8.GetString(result.Buffer);
                        //usedAxis = this.axis;
                        var packet     = RawParser.Parse(rawString);
                        _currentPacket = packet;
                    }
                    catch (ObjectDisposedException)
                    {
                    }
                    catch (Exception e)
                    {
                        Debug.Log("Parsing Error: " + e);
                    }
                }
            });
            _thread.Start();
        }
Exemplo n.º 2
0
        public static void Generate(ILogger logger)
        {
            EEDID instance = EEDID.Parse(MacBookPro2018.IntegratedLaptopPanelEdidTable);

            var parser = new RawParser {
                Logger = logger
            };

            parser.Parse(instance);
        }
Exemplo n.º 3
0
        public static void Generate(ILogger logger)
        {
            var parser = new RawParser {
                Logger = logger
            };

            EEDID[] instances = EEDID.Instance;
            foreach (var instance in instances)
            {
                parser.Parse(instance);
            }
        }