Esempio n. 1
0
 public UdpClient()
 {
     _settings          = _settingsLoader.ReadXml();
     _datagramCollector = new DatagramCollector();
     _datagramReceiver  = new DatagramReceiver(_settings, _datagramCollector);
     Console.WriteLine("-----------------------------");
     Console.WriteLine($" IP {_settings.IPAddress}, Port {_settings.Port} ");
 }
Esempio n. 2
0
        public SmartConfigJob(TimeSpan timeout)
        {
            this.Timeout = timeout;
            _broadcaster = new DatagramBroadcaster();
            _receiver    = new DatagramReceiver();

            this._timer.Elapsed += Timer_Elapsed;
        }