/// <summary>
 /// Constructor
 /// </summary>
 /// <param name="netData">Los datos de configuración de red</param>
 /// <param name="resetIpDelegate">la función que se gatilla cuando la Ip debe ser cambiada</param>
 public IpHandler(NetData netData, ResetIpDelegate resetIpDelegate)
 {
     this.resetIpDelegate = resetIpDelegate;
     this.netData         = netData;
     checkIpThread        = new Thread(new ThreadStart(checkIp));
     state           = IphandlerState.STOPPED;
     stopLock        = new Object();
     queueLock       = new Object();
     queue           = new Queue <IPAddress>();
     lolinessTimeOut = 0;
     lastAliveValue  = 0;
 }
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="netData">Los datos de configuración de red</param>
 /// <param name="resetIpDelegate">la función que se gatilla cuando la Ip debe ser cambiada</param>
 public IpHandler(NetData netData, ResetIpDelegate resetIpDelegate)
 {
     this.resetIpDelegate = resetIpDelegate;
     this.netData = netData;
     checkIpThread = new Thread(new ThreadStart(checkIp));
     state = IphandlerState.STOPPED;
     stopLock = new Object();
     queueLock = new Object();
     queue = new Queue<IPAddress>();
     lolinessTimeOut = 0;
     lastAliveValue = 0;
 }