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(
)
:
tests the socket to see if there is data for us
close(
boolean $destructor
=
false
)
:
void
createFrame(
)
:
Zend_Queue_Stomp_FrameInterface
create an empty frame
getFrameClass(
)
:
string
Get the frameClass
open(
string $scheme, string $host, integer $port
)
:
boolean
ping(
)
:
true
Check whether we are connected to the server
read(
)
:
Zend_Queue_Stomp_Frame|false
reads in a frame from the socket or returns false.
setFrameClass(
string $class
)
:
Zend_Queue_Stomp_Client_ConnectionInterface;
Set the frame class to be used
This must be a Zend_Queue_Stomp_FrameInterface.
write(
Zend_Queue_Stomp_FrameInterface $frame
)
:
$this
write a frame to the stomp server
example: $response = $client->write($frame)->read();