« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 5 of about 5 for readFrame (0.001 sec.)
Stomp::readFrame — Reads the next frame | PHP 8.3 12630
Stomp::readFrame stomp_read_frame (PECL stomp >= 0.1.0) Stomp::readFrame -- stomp_read_frame — Reads the next frame 説明 オブジェクト指向型 (method): public function Stomp::readFrame ( string $class_name = "stompFrame" ): stompframe 手続き型 ... ubscribe to messages from the queue 'foo' */ $stomp -> subscribe ( '/queue/foo' ); /* read a frame */ var_dump ( $stomp -> readFrame ()); /* close connection */ unset( $stomp ); ?> 上の例の出力は、 たとえば以下のようになります。 object(StompFrame)#2 (3) { ...
https://man.mtool.work/php/8.3/stomp.readframe.html
The Stomp class | PHP 8.3 9413
The Stomp class (PECL stomp >= 0.1.0) はじめに Represents a connection between PHP and a Stomp compliant Message Broker. クラス概要 class Stomp { /* メソッド */ public function __construct ( string $broker = ini_get("stomp.default_broker_ur ... link ): string | false public function hasFrame (): bool function stomp_has_frame ( resource $link ): bool public function readFrame ( string $class_name = "stompFrame" ): stompframe function stomp_read_frame ( resource $link ): array public function send ... ionId — Gets the current stomp session ID Stomp::hasFrame — Indicates whether or not there is a frame ready to read Stomp::readFrame — Reads the next frame Stomp::send — Sends a message Stomp::setReadTimeout — Sets read timeout Stomp::subscribe — Register ...
https://man.mtool.work/php/8.3/class.stomp.html
Stomp Client | PHP 8.3 8457
Stomp Client はじめに This extension allows php applications to communicate with any Stomp compliant Message Brokers through easy object-oriented and procedural interfaces. » Stomp official site インストール/設定 要件 インストール手順 実行時 ... ionId — Gets the current stomp session ID Stomp::hasFrame — Indicates whether or not there is a frame ready to read Stomp::readFrame — Reads the next frame Stomp::send — Sends a message Stomp::setReadTimeout — Sets read timeout Stomp::subscribe — Register ...
https://man.mtool.work/php/8.3/book.stomp.html
Stomp::ack — Acknowledges consumption of a message | PHP 8.3 7703
Stomp::ack stomp_ack (PECL stomp >= 0.1.0) Stomp::ack -- stomp_ack — Acknowledges consumption of a message 説明 オブジェクト指向型 (method): public function Stomp::ack ( mixed $msg , array $headers = ? ): bool 手続き型: function stomp_ack ( ... ); /* subscribe to messages from the queue 'foo' */ $stomp -> subscribe ( $queue ); /* read a frame */ $frame = $stomp -> readFrame (); if ( $frame -> body === $msg ) { /* acknowledge that the frame was received */ $stomp -> ack ( $frame ); } /* remove t ...
https://man.mtool.work/php/8.3/stomp.ack.html
例 | PHP 8.3 7703
例 例1 オブジェクト指向型 <?php $queue = '/queue/foo' ; $msg = 'bar' ; /* connection */ try { $stomp = new Stomp ( 'tcp://localhost:61613' ); } catch( StompException $e ) { die( 'Connection failed: ' . $e -> getMessage ()); } /* send a mess ... ); /* subscribe to messages from the queue 'foo' */ $stomp -> subscribe ( $queue ); /* read a frame */ $frame = $stomp -> readFrame (); if ( $frame -> body === $msg ) { var_dump ( $frame ); /* acknowledge that the frame was received */ $stomp -> ack ( $f ...
https://man.mtool.work/php/8.3/stomp.examples.html
PREV 1 NEXT