Results of 1 - 10 of about 13 for EventListener (0.002 sec.)
- The EventListener class | PHP 8.3 12791
- 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
... string $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
- EventListener::setErrorCallback — Set event listener's error callback | PHP 8.3 10874
- 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::__construct — Creates new connection listener associated with an... 10275
- 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
... cb A callable that will be invoked when new connection 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 ... 'unix:' , 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 ... CP); if (!socket_bind($this->socket, '0.0.0.0', $port)) { echo "Unable to bind socket\n"; exit(1); } $this->listener = new EventListener($this->base, array($this, "acceptConnCallback"), $this->base, EventListener::OPT_CLOSE_ON_FREE | EventListener::OPT_REUSEA ...
-
https://man.mtool.work/php/8.3/eventlistener.construct.html
- EventListener::setCallback — The setCallback purpose | PHP 8.3 9536
- 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. ...
-
https://man.mtool.work/php/8.3/eventlistener.setcallback.html
- EventListener::disable — Disables an event connect listener object | PHP 8.3 9167
- 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 9167
- 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
- EventListener::getBase — Returns event base associated with the event listener ... 8463
- 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
- Event | PHP 8.3 8357
- Event はじめに This is an extension to efficiently schedule I/O, time and signal based events using the best I/O notification mechanism available for specific platform. This is a port of libevent to the PHP infrastructure. 注意 : Note, Wind
... ew object-oriented API (breaking backwards compatibility), and support of libevent 2+ including HTTP, DNS, OpenSSL and the event listener. 注意 : Note, event-1.0.0 and greater is not compatible with previous versions. インストール/設定 要件 インストール手順 例 ... — Complete a chunked reply, freeing the request as appropriate EventHttpRequest::sendReplyStart — Initiate a chunked reply EventListener — The EventListener class EventListener::__construct — Creates new connection listener associated with an event base Event ... Listener::disable — Disables an event connect listener object EventListener::enable — Enables an event connect listener object EventListener::getBase — Returns event base associated with the event l ...
-
https://man.mtool.work/php/8.3/book.event.html
- EventListener::getSocketName — Retrieves the current address to which the liste... 8093
- EventListener::getSocketName (PECL event >= 1.5.0) EventListener::getSocketName — Retrieves the current address to which the listener's socket is bound 説明 public static function EventListener::getSocketName ( string &$address , mixed &$po
...
-
https://man.mtool.work/php/8.3/eventlistener.getsocketname.html
- 例 | PHP 8.3 7935
- 例 例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
... CP); if (!socket_bind($this->socket, '0.0.0.0', $port)) { echo "Unable to bind socket\n"; exit(1); } $this->listener = new EventListener($this->base, array($this, "acceptConnCallback"), $this->base, EventListener::OPT_CLOSE_ON_FREE | EventListener::OPT_REUSEA ... BLE, -1, $this->socket); */ // Variant #2 $this -> listener = new EventListener ( $this -> base , array( $this , "acceptConnCallback" ), $this -> base , EventListener :: OPT_CLOSE_ON_FREE | EventListene ... $this -> base = new EventBase (); if (! $this -> base ) { exit( "Couldn't open event base\n" ); } $this -> listener = new EventListener ( $this -> base , array( $this , "ssl_accept_cb" ), $this -> ctx , EventListener :: OPT_CLOSE_ON_FREE | EventListener :: O ...
-
https://man.mtool.work/php/8.3/event.examples.html