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.
READ_TIMEOUT_DEFAULT_USEC = '0'
Details READ_TIMEOUT_DEFAULT_SEC = '5'
Detailsarray $_options = ''Connection options
Detailsresource $_socket = 'false'tcp/udp socket
Details__destruct(
)
:
voidClose the socket explicitly when destructed
DetailscanRead(
)
:
booleanTests the socket to see if there is data for us
Detailsclose(
boolean $destructor
=
false
)
:
voidClose connection
DetailscreateFrame(
)
:
Zend_Queue_Stomp_FrameInterfaceCreate an empty frame
DetailsgetFrameClass(
)
:
stringGet the frameClass
Detailsopen(
string $scheme, string $host, int $port, array|array $options
=
array
)
:
true;open() opens a socket to the Stomp server
Detailsping(
)
:
trueCheck whether we are connected to the server
Detailsread(
)
:
Zend_Queue_Stomp_FrameInterface|falseReads in a frame from the socket or returns false.
DetailssetFrameClass(
string $classname
)
:
$this;Set the frameClass to be used
This must be a Zend_Queue_Stomp_FrameInterface.
Detailswrite(
Zend_Queue_Stom_FrameInterface $frame
)
:
$thisWrite a frame to the stomp server
example: $response = $client->write($frame)->read();
Details