downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | conferences | my php.net

search for in the

AMQPConnection::setTimeout> <AMQPConnection::setPassword
[edit] Last updated: Fri, 17 May 2013

view this page in

AMQPConnection::setPort

(PECL amqp >= Unknown)

AMQPConnection::setPortポートを設定する

説明

public bool AMQPConnection::setPort ( int $port )

このメソッドは、AMQP ブローカへの接続に使うポートを設定します。

パラメータ

port

AMQP ブローカへの接続に使うポート。

返り値

成功した場合に TRUE を、失敗した場合に FALSE を返します。

エラー / 例外

port が 1 から 65535 までの範囲を外れている場合に AMQPConnectionException をスローします。

例1 AMQPConnection::setPort() の例

<?php

/* 新しい接続を作成します */
$cnn = new AMQPConnection();

// ポートを設定します
$cnn->setPort(5672);

?>



add a note add a note User Contributed Notes AMQPConnection::setPort - [0 notes]
There are no user contributed notes for this page.

 
show source | credits | sitemap | contact | advertising | mirror sites