SAMConnection::__construct
(PECL sam >= 0.1.0)
SAMConnection::__construct — メッセージングサーバーへの新しい接続を作成する
説明
SAMConnection::__construct()
( void
)
新しい SAMConnection オブジェクトを作成します。
例
例1 接続オブジェクトの作成およびメッセージングサーバーへの接続
<?php
$conn = new SAMConnection();
$conn->connect(SAM_WMQ, array(SAM_HOST => localhost, SAM_PORT => 1414, SAM_BROKER => 'bull'));
?>