function send($msg, $timeout = 0, $method = 'http')
{
// where msg is an xmlrpcmsg
$msg->debug = $this->debug;
if ($method == 'https') {
return $this->sendPayloadHTTPS($msg, $this->server, $this->port, $timeout, $this->username, $this->password, $this->cert, $this->certpass);
} else {
return $this->sendPayloadHTTP10($msg, $this->server, $this->port, $timeout, $this->username, $this->password);
}
}