Queue/Stomp/Client/Connection.php
Zend Framework
LICENSE
This source file is subject to the new BSD license that is bundled
with this package in the file LICENSE.txt.
It is also available through the world-wide-web at this URL:
http://framework.zend.com/license/new-bsd
If you did not receive a copy of the license and are unable to
obtain it through the world-wide-web, please send an email
to license@zend.com so we can send you a copy immediately.
- Category
- Zend
- Copyright
- Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Package
- Zend_Queue
- Subpackage
- Stomp
- Version
- $Id: Connection.php 24593 2012-01-05 20:35:02Z matthew $
\Zend_Queue_Stomp_Client_Connection
Package: Zend\Queue\StompThe Stomp client interacts with a Stomp server.
- Implements
- \Zend_Queue_Stomp_Client_ConnectionInterface
- Category
- Zend
- Copyright
- Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
Constants


READ_TIMEOUT_DEFAULT_USEC
= 0


READ_TIMEOUT_DEFAULT_SEC
= 5
Properties
Methods



open(string $scheme, string $host, int $port, array | array $options = array()) : \true;
open() opens a socket to the Stomp server
ParametersName | Type | Description |
---|
$scheme | string | |
---|
$host | string | |
---|
$port | int | |
---|
$options | array | array | ('scheme', 'host', 'port')
|
---|
ReturnsThrows 


setFrameClass(string $classname) : \$this;
Set the frameClass to be used
This must be a Zend_Queue_Stomp_FrameInterface.
ParametersName | Type | Description |
---|
$classname | string |
- class is an instance of Zend_Queue_Stomp_FrameInterface
|
---|
Returns


write(\Zend_Queue_Stom_FrameInterface $frame) : \Zend_Queue_Stomp_Client_Connection
Write a frame to the stomp server
example: $response = $client->write($frame)->read();
ParametersName | Type | Description |
---|
$frame | \Zend_Queue_Stom_FrameInterface | |
---|
ReturnsDetails- Fluent
- This method is part of a fluent interface and will return the same instance