AMQPConnection::setHost
(No version information available, might only be in SVN)
AMQPConnection::setHost — Set the amqp host.
Description
public void AMQPConnection::setHost
( string $host
)
This method will set the hostname used to connect to the AMQP broker.
Parameters
- host
-
The hostname of the AMQP broker.
Return Values
void
Examples
Example #1 AMQPConnection::setHost() example
<?php
/* Create a new connection */
$cnn = new AMQPConnection();
// set the hostname
$cnn->setHost('myhost.com');
?>