Zend Framework
1.12
|
Public Member Functions | |
open ($scheme, $host, $port, array $options=array()) | |
open() opens a socket to the Stomp server | |
__destruct () | |
Close the socket explicitly when destructed. | |
close ($destructor=false) | |
Close connection. | |
ping () | |
Check whether we are connected to the server. | |
write (Zend_Queue_Stomp_FrameInterface $frame) | |
Write a frame to the stomp server. | |
canRead () | |
Tests the socket to see if there is data for us. | |
read () | |
Reads in a frame from the socket or returns false. | |
setFrameClass ($classname) | |
Set the frameClass to be used. | |
getFrameClass () | |
Get the frameClass. | |
createFrame () | |
Create an empty frame. | |
![]() | |
open ($scheme, $host, $port) | |
Public Attributes | |
const | READ_TIMEOUT_DEFAULT_USEC = 0 |
const | READ_TIMEOUT_DEFAULT_SEC = 5 |
Protected Attributes | |
$_options | |
$_socket = false | |
__destruct | ( | ) |
Close the socket explicitly when destructed.
canRead | ( | ) |
Tests the socket to see if there is data for us.
Implements Zend_Queue_Stomp_Client_ConnectionInterface.
close | ( | $destructor = false | ) |
Close connection.
boolean | $destructor |
Implements Zend_Queue_Stomp_Client_ConnectionInterface.
createFrame | ( | ) |
Create an empty frame.
Implements Zend_Queue_Stomp_Client_ConnectionInterface.
getFrameClass | ( | ) |
open | ( | $scheme, | |
$host, | |||
$port, | |||
array | $options = array() |
||
) |
open() opens a socket to the Stomp server
array | $options | ('scheme', 'host', 'port') |
string | $scheme | |
string | $host | |
int | $port | |
array | $options | Accepts "timeout_sec" and "timeout_usec" keys |
Zend_Queue_Exception |
ping | ( | ) |
Check whether we are connected to the server.
Zend_Queue_Exception |
Implements Zend_Queue_Stomp_Client_ConnectionInterface.
read | ( | ) |
Reads in a frame from the socket or returns false.
Zend_Queue_Exception |
Implements Zend_Queue_Stomp_Client_ConnectionInterface.
setFrameClass | ( | $classname | ) |
Set the frameClass to be used.
This must be a Zend_Queue_Stomp_FrameInterface.
string | $classname | - class is an instance of Zend_Queue_Stomp_FrameInterface |
Implements Zend_Queue_Stomp_Client_ConnectionInterface.
write | ( | Zend_Queue_Stomp_FrameInterface | $frame | ) |
Write a frame to the stomp server.
example: $response = $client->write($frame)->read();
Zend_Queue_Stom_FrameInterface | $frame |
Implements Zend_Queue_Stomp_Client_ConnectionInterface.
|
protected |
|
protected |
const READ_TIMEOUT_DEFAULT_SEC = 5 |
const READ_TIMEOUT_DEFAULT_USEC = 0 |