diff -r 000000000000 -r 4eba9c11703f web/Zend/Queue/Stomp/Client/ConnectionInterface.php --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/web/Zend/Queue/Stomp/Client/ConnectionInterface.php Mon Dec 13 18:29:26 2010 +0100 @@ -0,0 +1,103 @@ +write($frame)->read(); + * + * @param Zend_Queue_Stomp_FrameInterface $frame + * @return $this + */ + public function write(Zend_Queue_Stomp_FrameInterface $frame); + + /** + * tests the socket to see if there is data for us + */ + public function canRead(); + + /** + * reads in a frame from the socket or returns false. + * + * @return Zend_Queue_Stomp_Frame|false + * @throws Zend_Queue_Exception + */ + public function read(); + + /** + * Set the frame class to be used + * + * This must be a Zend_Queue_Stomp_FrameInterface. + * + * @param string $class + * @return Zend_Queue_Stomp_Client_ConnectionInterface; + */ + public function setFrameClass($class); + + /** + * Get the frameClass + * + * @return string + */ + public function getFrameClass(); + + /** + * create an empty frame + * + * @return Zend_Queue_Stomp_FrameInterface class + */ + public function createFrame(); +}