432 |
|
|
433 |
if(!$fp && $this->proxy) { |
if(!$fp && $this->proxy) { |
434 |
PEAR::raiseError("Connection to proxy server ".$this->proxy.":".$this->proxy_port." failed"); |
PEAR::raiseError("Connection to proxy server ".$this->proxy.":".$this->proxy_port." failed"); |
435 |
|
$this->errstr="Connect error"; |
436 |
|
return 0; |
437 |
} |
} |
438 |
else if(!$fp) { |
else if(!$fp) { |
439 |
PEAR::raiseError("Connection to RPC server ".$this->server." failed"); |
PEAR::raiseError("Connection to RPC server ".$this->server." failed"); |
440 |
|
$this->errstr="Connect error"; |
441 |
|
return 0; |
442 |
} |
} |
443 |
|
|
444 |
// Only create the payload if it was not created previously |
// Only create the payload if it was not created previously |
478 |
|
|
479 |
// print($op); |
// print($op); |
480 |
|
|
481 |
if (!$fp || !fputs($fp, $op, strlen($op))) { |
if (!fputs($fp, $op, strlen($op))) { |
482 |
$this->errstr="Write error"; |
$this->errstr="Write error"; |
483 |
return 0; |
return 0; |
484 |
} |
} |