Ver Mensaje Individual
  #5 (permalink)  
Antiguo 01/04/2010, 09:11
Avatar de eulloa
eulloa
 
Fecha de Ingreso: octubre-2007
Ubicación: Donde caiga la noche, si mi hijo me deja
Mensajes: 691
Antigüedad: 16 años, 6 meses
Puntos: 5
Respuesta: Como afecta el la función exit dentro de uan clase??

O

Código PHP:
Ver original
  1. static function Snmp($Mib)
  2.     {
  3.         $ContadorIntentos = 0;
  4.         $Resultado = snmpwalk($this->Host, $this->Comunity , $Mib);
  5.  
  6.          while (!$Resultado && $ContadorIntentos < 5){
  7.                    $Resultado = snmpwalk($this->Host, $this->Comunity , $Mib);
  8.                    $ContadorIntentos++;
  9.          }
  10.                    return $Resultado;
  11.     }

Ya q snmpwalk en caso de error devuelve FALSE