Exemple #1
0
 function processResponse()
 {
     $this->MESSAGE_CONTENT = "";
     $this->STDERR = "";
     $KeepGoing = true;
     $debugMsg = "";
     while ($KeepGoing) {
         set_time_limit(30);
         $ResponseLine = $this->SOCKET->readLine();
         $Response = explode(" ", $ResponseLine);
         if ($this->DEBUG) {
             $debugMsg .= $ResponseLine . "\n";
         }
         if ($Response[0] != "") {
             $Func = $this->ALLOWED_RESPONSES[$Response[0]];
             if (method_exists($this, $Func)) {
                 $KeepGoing = $this->{$Func}($ResponseLine);
             }
         }
     }
     if ($this->DEBUG) {
         CVS_PServer::debug($debug);
     }
 }