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.
The Stomp client interacts with a Stomp server.

canRead(
)
:
boolean
Tests the socket to see if there is data for us
Type | Description |
---|---|
boolean |

close(
boolean $destructor
=
false
)
:
void
Close connection
Name | Type | Description |
---|---|---|
$destructor | boolean |

createFrame(
)
:
\Zend_Queue_Stomp_FrameInterface
Create an empty frame
Type | Description |
---|---|
\Zend_Queue_Stomp_FrameInterface |

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

read(
)
:
\Zend_Queue_Stomp_FrameInterface|false
Reads in a frame from the socket or returns false.
Type | Description |
---|---|
\Zend_Queue_Stomp_FrameInterface|false |
Exception | Description |
---|---|
\Zend_Queue_Exception |

setFrameClass(
string $classname
)
:
\$this;
Set the frameClass to be used
This must be a Zend_Queue_Stomp_FrameInterface.
Name | Type | Description |
---|---|---|
$classname | string |
|
Type | Description |
---|---|
\$this; |

write(
\Zend_Queue_Stom_FrameInterface $frame
)
:
\Zend_Queue_Stomp_Client_Connection
Write a frame to the stomp server
example: $response = $client->write($frame)->read();
Name | Type | Description |
---|---|---|
$frame | \Zend_Queue_Stom_FrameInterface |
Type | Description |
---|---|
\Zend_Queue_Stomp_Client_Connection |