Results of 1 - 10 of about 61 for listener (0.003 sec.)
- The EventListener class 10784
- « EventHttpRequest::sendReplyStart EventListener::__construct » PHP Manual Event The EventListener class 検索 The EventListener class (PECL event >= 1.5.0) はじめに Represents a connection listener. クラス概要 final class EventListener { /*
... 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
- The EventListener class 10741
- « EventHttpRequest::sendReplyStart EventListener::__construct » PHP Manual Event The EventListener class 検索 The EventListener class (PECL event >= 1.5.0) はじめに Represents a connection listener. クラス概要 final class EventListener { /*
... 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
- Creates new connection listener associated with an event base 9799
- « EventListener EventListener::disable » PHP Manual EventListener Creates new connection listener associated with an event base 検索 EventListener::__construct (PECL event >= 1.2.6-beta) EventListener::__construct — Creates new connection listener
... istener associated with an event base 説明 public function EventListener::__construct ( EventBase $base , callable $cb , mixed $data , int $flags , int $backlog , mixed $target ) Creates new conn ... ection 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 ...
-
https://man.mtool.work/php/8.3/eventlistener.construct.html
- Creates new connection listener associated with an event base 9755
- « EventListener EventListener::disable » PHP Manual EventListener Creates new connection listener associated with an event base 検索 EventListener::__construct (PECL event >= 1.2.6-beta) EventListener::__construct — Creates new connection listener
... istener associated with an event base 説明 public function EventListener::__construct ( EventBase $base , callable $cb , mixed $data , int $flags , int $backlog , mixed $target ) Creates new conn ... ection 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 ...
-
https://man.mtool.work/php/8.3/eventlistener.construct.html
- 例 9697
- « インストール手順 Event flags » PHP Manual Event 例 検索 例 例1 Simple HTTP client <?php // Read callback function readcb ( $bev , $base ) { //$input = $bev->input; //$bev->getInput(); //$pos = $input->search("TTP"); $pos = $bev -> input -
... 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
- 例 9697
- « インストール手順 Event flags » PHP Manual Event 例 検索 例 例1 Simple HTTP client <?php // Read callback function readcb ( $bev , $base ) { //$input = $bev->input; //$bev->getInput(); //$pos = $input->search("TTP"); $pos = $bev -> input -
... 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
- Set event listener's error callback 9161
- « EventListener::setCallback EventSslContext » PHP Manual EventListener Set event listener's error callback 検索 EventListener::setErrorCallback (PECL event >= 1.2.6-beta) EventListener::setErrorCallback — Set event listener's error callbac
... k 説明 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 関連キーワード: EventListener callback listener event setCallback setErrorCallbac ...
-
https://man.mtool.work/php/8.3/eventlistener.seterrorcallback.html
- Set event listener's error callback 9117
- « EventListener::setCallback EventSslContext » PHP Manual EventListener Set event listener's error callback 検索 EventListener::setErrorCallback (PECL event >= 1.2.6-beta) EventListener::setErrorCallback — Set event listener's error callbac
... k 説明 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 関連キーワード: EventListener callback listener event error Set setCallback setEr ...
-
https://man.mtool.work/php/8.3/eventlistener.seterrorcallback.html
- Returns event base associated with the event listener 8668
- « EventListener::enable EventListener::getSocketName » PHP Manual EventListener Returns event base associated with the event listener 検索 EventListener::getBase (PECL event >= 1.2.6-beta) EventListener::getBase — Returns event base associa
... ted 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. 関連キーワード: event EventListener base associated listener getBase enable getSocketName beta ...
-
https://man.mtool.work/php/8.3/eventlistener.getbase.html
- リスナーのプロパティを取得する 8566
- « openal_device_open openal_listener_set » PHP Manual OpenAL 関数 リスナーのプロパティを取得する 検索 openal_listener_get (PECL openal >= 0.1.0) openal_listener_get — リスナーのプロパティを取得する 説明 function openal_listener_get ( int $p
... ずれか。 戻り値 float あるいは float の配列 (どちらか適切なほう) を返します。 失敗した場合に false を返します。 参考 openal_listener_set() - リスナーのプロパティを設定する 関連キーワード: float openal プロパティ listener リスナー property device OpenAL mi ...
-
https://man.mtool.work/php/8.3/function.openal-listener-get.html