Results of 1 - 10 of about 28 for listener (0.002 sec.)
- The EventListener class | PHP 8.3 12846
- The EventListener class (PECL event >= 1.5.0) はじめに Represents a connection listener. クラス概要 final class EventListener { /* 定数 */ const int OPT_LEAVE_SOCKETS_BLOCKING = 1 ; const int OPT_CLOSE_ON_FREE = 2 ; const int OPT_CLOSE_ON_E
... g $cb ): void } プロパティ fd Numeric file descriptor of the underlying socket. (Added in event-1.6.0 .) 定義済み定数 EventListener::OPT_LEAVE_SOCKETS_BLOCKING By default Libevent turns underlying file descriptors, or sockets, to non-blocking mode. This ... flag tells Libevent to leave them in blocking mode. EventListener::OPT_CLOSE_ON_FREE If this option is set, the connection listener closes its underlying socket when the EventListener obje ... ct is freed. EventListener::OPT_CLOSE_ON_EXEC If this option is set, the connection listener sets the close-on-exec flag on the underlying listener s ...
-
https://man.mtool.work/php/8.3/class.eventlistener.html
- 例 | PHP 8.3 11847
- 例 例1 Simple HTTP client <?php // Read callback function readcb ( $bev , $base ) { //$input = $bev->input; //$bev->getInput(); //$pos = $input->search("TTP"); $pos = $bev -> input -> search ( "TTP" ); while (( $n = $bev -> input -> remove
... patch pending events $base -> dispatch (); ?> 例3 Echo server <?php /* * Simple echo server based on libevent's connection listener. * * Usage: * 1) In one terminal window run: * * $ php listener.php 9881 * * 2) In another terminal window open up connect ... ion, e.g.: * * $ nc 127.0.0.1 9881 * * 3) start typing. The server should repeat the input. */ class MyListenerConnection { private $bev , $base ; public function __destruct () { $this -> bev -> free (); } public function __construct ... $events & ( EventBufferEvent :: EOF | EventBufferEvent :: ERROR )) { //$bev->free(); $this -> __destruct (); } } } class MyListener { public $base , $listener , $socket ; private $conn = array(); public function __destruct () { foreach ( $this -> conn as ...
-
https://man.mtool.work/php/8.3/event.examples.html
- EventListener::__construct — Creates new connection listener associated with an... 11323
- EventListener::__construct (PECL event >= 1.2.6-beta) EventListener::__construct — Creates new connection listener associated with an event base 説明 public function EventListener::__construct ( EventBase $base , callable $cb , mixed $data
... , int $flags , int $backlog , mixed $target ) Creates new connection listener associated with an event base. パラメータ base Associated event base. cb A callable that will be invoked when new connecti ... on received. data Custom user data attached to cb . flags Bit mask of EventListener::OPT_* constants. See EventListener constants . backlog Controls the maximum number of pending connections that the networ ... x:' , e.g. 'unix:/tmp/my.sock' . 変更履歴 バージョン 説明 PECL event 1.5.0 UNIX domain sockets' support added. 例 例1 EventListener::__construct() example <?php /* * Simple echo server based on libevent's connection listener. * * Usage: * 1) In one termi ...
-
https://man.mtool.work/php/8.3/eventlistener.construct.html
- EventListener::setErrorCallback — Set event listener's error callback | PHP 8.3 9700
- EventListener::setErrorCallback (PECL event >= 1.2.6-beta) EventListener::setErrorCallback — Set event listener's error callback 説明 public function EventListener::setErrorCallback ( string $cb ): void Set event listener's error callback パ
... ラメータ cb The error callback. Should match the following prototype: function callback ( EventListener $listener = null , mixed $data = null ): void listener The EventListener object. data User custom data attached to the cal ... lback. 戻り値 参考 EventListener::setCallback() - The setCallback purpose 他のマニュアルの関連ページ Docker Riak の Docker 化 ...
-
https://man.mtool.work/php/8.3/eventlistener.seterrorcallback.html
- EventListener::setCallback — The setCallback purpose | PHP 8.3 9225
- EventListener::setCallback (PECL event >= 1.2.6-beta) EventListener::setCallback — The setCallback purpose 説明 public function EventListener::setCallback ( callable $cb , mixed $arg = null ): void Adjust event connect listener's callback a
... cb The new callback for new connections. Ignored if null . Should match the following prototype: function callback ( EventListener $listener = null , mixed $fd = null , array $address = null , mixed $arg = null ): void listener The EventListener object. ... fd The file descriptor or a resource associated with the listener. address Array of two elements: IP address and the server port. arg User custom data attached to the callback. arg Custom ...
-
https://man.mtool.work/php/8.3/eventlistener.setcallback.html
- openal_listener_get — リスナーのプロパティを取得する | PHP 8.3 9110
- openal_listener_get (PECL openal >= 0.1.0) openal_listener_get — リスナーのプロパティを取得する 説明 function openal_listener_get ( int $property ): mixed パラメータ property 取得するプロパティ。 AL_GAIN (float)、 AL_POSITION (array(float,f
... ずれか。 戻り値 float あるいは float の配列 (どちらか適切なほう) を返します。 失敗した場合に false を返します。 参考 openal_listener_set() - リスナーのプロパティを設定する 他のマニュアルの関連ページ Django javascript Docker サービスの挙動 Docker Riak の D ...
-
https://man.mtool.work/php/8.3/function.openal-listener-get.html
- openal_listener_set — リスナーのプロパティを設定する | PHP 8.3 9061
- openal_listener_set (PECL openal >= 0.1.0) openal_listener_set — リスナーのプロパティを設定する 説明 function openal_listener_set ( int $property , mixed $setting ): bool パラメータ property 設定するプロパティ。 AL_GAIN (float)、 AL_POSITIO
... float あるいは float の配列のうち適切なもの。 戻り値 成功した場合に true を、失敗した場合に false を返します。 参考 openal_listener_get() - リスナーのプロパティを取得する 他のマニュアルの関連ページ Django javascript Docker サービスの挙動 Docker Riak の D ...
-
https://man.mtool.work/php/8.3/function.openal-listener-set.html
- EventListener::getBase — Returns event base associated with the event listener ... 8930
- EventListener::getBase (PECL event >= 1.2.6-beta) EventListener::getBase — Returns event base associated with the event listener 説明 public function EventListener::getBase (): void Returns event base associated with the event listener. パラ
... メータ この関数にはパラメータはありません。 戻り値 Returns event base associated with the event listener. 他のマニュアルの関連ページ Docker Riak の Docker 化 ...
-
https://man.mtool.work/php/8.3/eventlistener.getbase.html
- EventListener::disable — Disables an event connect listener object | PHP 8.3 8766
- EventListener::disable (PECL event >= 1.2.6-beta) EventListener::disable — Disables an event connect listener object 説明 public function EventListener::disable (): bool Disables an event connect listener object パラメータ この関数にはパラメ
... ータはありません。 戻り値 成功した場合に true を、失敗した場合に false を返します。 参考 EventListener::enable() - Enables an event connect listener object 他のマニュアルの関連ページ Docker Riak の Docker 化 Docker docker plu ...
-
https://man.mtool.work/php/8.3/eventlistener.disable.html
- EventListener::enable — Enables an event connect listener object | PHP 8.3 8766
- EventListener::enable (PECL event >= 1.2.6-beta) EventListener::enable — Enables an event connect listener object 説明 public function EventListener::enable (): bool Enables an event connect listener object パラメータ この関数にはパラメータ
... はありません。 戻り値 成功した場合に true を、失敗した場合に false を返します。 参考 EventListener::disable() - Disables an event connect listener object 他のマニュアルの関連ページ Docker Riak の Docker 化 ...
-
https://man.mtool.work/php/8.3/eventlistener.enable.html