Zend Framework
1.12
|
Public Member Functions | |
__construct ($scheme=null, $host=null, $port=null, $connectionClass= 'Zend_Queue_Stomp_Client_Connection', $frameClass= 'Zend_Queue_Stomp_Frame') | |
Add a server to connections. | |
__destruct () | |
Shutdown. | |
addConnection ($scheme, $host, $port, $class= 'Zend_Queue_Stomp_Client_Connection') | |
Add a connection to this client. | |
setConnection (Zend_Queue_Stomp_Client_ConnectionInterface $connection) | |
Set client connection. | |
getConnection () | |
Get client connection. | |
send (Zend_Queue_Stomp_FrameInterface $frame) | |
Send a stomp frame. | |
receive () | |
Receive a frame. | |
canRead () | |
canRead() | |
createFrame () | |
creates a frame class | |
Protected Attributes | |
$_connection | |
__construct | ( | $scheme = null , |
|
$host = null , |
|||
$port = null , |
|||
$connectionClass = 'Zend_Queue_Stomp_Client_Connection' , |
|||
$frameClass = 'Zend_Queue_Stomp_Frame' |
|||
) |
Add a server to connections.
string | scheme |
string | host |
integer | port |
__destruct | ( | ) |
Shutdown.
addConnection | ( | $scheme, | |
$host, | |||
$port, | |||
$class = 'Zend_Queue_Stomp_Client_Connection' |
|||
) |
Add a connection to this client.
Attempts to add this class to the client. Returns a boolean value indicating success of operation.
You cannot add more than 1 connection to the client at this time.
string | $scheme | ['tcp', 'udp'] |
string | host | |
integer | port | |
string | class - create a connection with this class; class must support Zend_Queue_Stomp_Client_ConnectionInterface |
canRead | ( | ) |
createFrame | ( | ) |
creates a frame class
getConnection | ( | ) |
Get client connection.
receive | ( | ) |
Receive a frame.
Returns a frame or false if none were to be read.
send | ( | Zend_Queue_Stomp_FrameInterface | $frame | ) |
Send a stomp frame.
Returns true if the frame was successfully sent.
Zend_Queue_Stomp_FrameInterface | $frame |
setConnection | ( | Zend_Queue_Stomp_Client_ConnectionInterface | $connection | ) |
Set client connection.
Zend_Queue_Stomp_Client_ConnectionInterface | $connection |
|
protected |