/* send our XMLRPC message and timeout after 240 seconds */
$resp=$cli->send($msg,"240");
if(!is_object($resp)){
$error="A communications error occurred while attempting XMLRPC sync with username {$username}{$url}:{$port}.";
}elseif($resp->faultCode()){
$error="An error code was received while attempting XMLRPC sync with username {$username}{$url}:{$port} - Code ".$resp->faultCode().": ".$resp->faultString();
$error="An error code was received while attempting XMLRPC sync with username {$username}{$url}:{$port} - Code ".$resp->faultCode().": ".$resp->faultString();
$client=newSimpleXMLRPC_Client($url,240);
$client->setCredentials($username,$password);
if($client->query($method,$xml)){
$response=$client->getResponse();
}else{
// propagate error to log
$error="An error occurred while attempting XMLRPC sync with username {$username} and {$url} ".$client->error;
$error="An error code was received while attempting Filter sync with username {$username}{$synchronizetoip}:{$port} - Code ".$resp->faultCode().": ".$resp->faultString();