PHP Doku:: Closes the connection with the AMQP broker. - amqpconnection.disconnect.html
Bisherige Suchanfragen: (1) anzeigen

Verlauf / Chronik / History: (3) anzeigen

Sie sind hier:
Doku-StartseitePHP-HandbuchFunktionsreferenzSonstige DiensteAMQPThe AMQPConnection classAMQPConnection::disconnect

Ein Service von Reinhard Neidl - Webprogrammierung.

The AMQPConnection class

<<AMQPConnection::__construct

AMQPConnection::isConnected>>

AMQPConnection::disconnect

(No version information available, might only be in SVN)

AMQPConnection::disconnectCloses the connection with the AMQP broker.

Beschreibung

public boolean AMQPConnection::disconnect ( void )

This method will close an open connection with the AMQP broker.

Parameter-Liste

void

Rückgabewerte

Returns true if connection was successfully closed, false otherwise.

Beispiele

Beispiel #1 AMQPConnection::disconnect() example

<?php

/* Create a new connection */
$cnn = new AMQPConnection();

// set the login details
$cnn->setLogin('mylogin');
$cnn->setPassword('mypass');

if (!
$cnn->connect()) {
 throw new 
Exception('Could not connect');
}

// do something interesting

if (!$cnn->disconnect()) {
 throw new 
Exception('Could not disconnect');
}


?>


Keine BenutzerBeiträge.
- Beiträge aktualisieren...



PHP Powered Diese Seite bei php.net
The PHP manual text and comments are covered by the Creative Commons Attribution 3.0 License © the PHP Documentation Group - Impressum - mail("TO:Reinhard Neidl",...)