« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 10 of about 28 for setCallback (0.002 sec.)
EventListener::setCallback — The setCallback purpose | PHP 8.3 12896
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 ...
https://man.mtool.work/php/8.3/eventlistener.setcallback.html
EvWatcher::setCallback — Sets new callback for the watcher | PHP 8.3 12420
EvWatcher::setCallback (PECL ev >= 0.2.0) EvWatcher::setCallback — Sets new callback for the watcher 説明 public function EvWatcher::setCallback ( callable $callback ): void Sets new callback for the watcher パラメータ callback See Watcher ...
https://man.mtool.work/php/8.3/evwatcher.setcallback.html
EventHttp::setCallback — Sets a callback for specified URI | PHP 8.3 11699
EventHttp::setCallback (PECL event >= 1.4.0-beta) EventHttp::setCallback — Sets a callback for specified URI 説明 public function EventHttp::setCallback ( string $path , string $cb , string $arg = ? ): void Sets a callback for specified URI ... ject. arg Custom data. arg Custom data. 戻り値 成功した場合に true を、失敗した場合に false を返します。 例 例1 EventHttp::setCallback() example <?php /* * Simple HTTP server. * * To test it: * 1) Run it on a port of your choice, e.g.: * $ php examples/http ... w EventHttp ( $base ); $http -> setAllowedMethods ( EventHttpRequest :: CMD_GET | EventHttpRequest :: CMD_POST ); $http -> setCallback ( "/dump" , "_http_dump" , array( 4 , 8 )); $http -> setCallback ( "/about" , "_http_about" ); $http -> setDefaultCallback ...
https://man.mtool.work/php/8.3/eventhttp.setcallback.html
EventListener::setErrorCallback — Set event listener's error callback | PHP 8.3 10028
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 パ ... null ): void listener The EventListener object. data User custom data attached to the callback. 戻り値 参考 EventListener::setCallback() - The setCallback purpose 他のマニュアルの関連ページ Docker Riak の Docker 化 ...
https://man.mtool.work/php/8.3/eventlistener.seterrorcallback.html
The EventListener class | PHP 8.3 9668
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 ... nction getBase (): void public static function getSocketName ( string &$address , mixed &$port = ? ): bool public function setCallback ( callable $cb , mixed $arg = null ): void public function setErrorCallback ( string $cb ): void } プロパティ fd Numeric f ... stener EventListener::getSocketName — Retrieves the current address to which the listener's socket is bound EventListener::setCallback — The setCallback purpose EventListener::setErrorCallback — Set event listener's error callback 他のマニュアルの関連ページ ...
https://man.mtool.work/php/8.3/class.eventlistener.html
The EventHttp class | PHP 8.3 8947
The EventHttp class (PECL event >= 1.4.0-beta) はじめに Represents HTTP server. クラス概要 final class EventHttp { /* メソッド */ public function accept ( mixed $socket ): bool public function addServerAlias ( string $alias ): bool public f ... unction removeServerAlias ( string $alias ): bool public function setAllowedMethods ( int $methods ): void public function setCallback ( string $path , string $cb , string $arg = ? ): void public function setDefaultCallback ( string $cb , string $arg = ? ): ... thods — Sets which HTTP methods are supported in requests accepted by this server, and passed to user callbacks EventHttp::setCallback — Sets a callback for specified URI EventHttp::setDefaultCallback — Sets default callback to handle requests that are not ...
https://man.mtool.work/php/8.3/class.eventhttp.html
The EvWatcher class | PHP 8.3 8832
The EvWatcher class (PECL ev >= 0.2.0) はじめに EvWatcher is a base class for all watchers( EvCheck , EvChild etc.). Since EvWatcher 's constructor is abstract , one can't(and don't need to) create EvWatcher objects directly. クラス概要 abs ... : EvLoop public function invoke ( int $revents ): void public function keepalive ( bool $value = ? ): bool public function setCallback ( callable $callback ): void public function start (): void public function stop (): void } プロパティ is_active Readonly ... th the given received events bit mask EvWatcher::keepalive — Configures whether to keep the loop from returning EvWatcher::setCallback — Sets new callback for the watcher EvWatcher::start — Starts the watcher EvWatcher::stop — Stops the watcher ...
https://man.mtool.work/php/8.3/class.evwatcher.html
Event | PHP 8.3 8111
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 ... a EventBufferEvent::readBuffer — Drains the entire contents of the input buffer and places them into buf EventBufferEvent::setCallbacks — Assigns read, write and event(status) callbacks EventBufferEvent::setPriority — Assign a priority to a bufferevent Even ... thods — Sets which HTTP methods are supported in requests accepted by this server, and passed to user callbacks EventHttp::setCallback — Sets a callback for specified URI EventHttp::setDefaultCallback — Sets default callback to handle requests that are not ... tHttpConnection::makeRequest — Makes an HTTP request over the specified connection EventHttpConnection::setCloseCallback — Set callback for connection close EventHttpConnection::setLocalAddress — Sets the IP address from which HTTP connections are made Even ...
https://man.mtool.work/php/8.3/book.event.html
EventHttp::__construct — Constructs EventHttp object (the HTTP server) | PHP 8.... 7865
EventHttp::__construct (PECL event >= 1.2.6-beta) EventHttp::__construct — Constructs EventHttp object (the HTTP server) 説明 public function EventHttp::__construct ( EventBase $base , EventSslContext $ctx = null ) Constructs the HTTP serve ... w EventHttp ( $base ); $http -> setAllowedMethods ( EventHttpRequest :: CMD_GET | EventHttpRequest :: CMD_POST ); $http -> setCallback ( "/dump" , "_http_dump" , array( 4 , 8 )); $http -> setCallback ( "/about" , "_http_about" ); $http -> setDefaultCallback ...
https://man.mtool.work/php/8.3/eventhttp.construct.html
例 | PHP 8.3 7750
例 例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 ... KS , "readcb" , /* writecb */ NULL , "eventcb" ); if (! $bev ) { exit( "Failed creating bufferevent socket\n" ); } //$bev->setCallbacks("readcb", /* writecb */ NULL, "eventcb", $base); $bev -> enable ( Event :: READ | Event :: WRITE ); $output = $bev -> out ... Event :: OPT_DEFER_CALLBACKS ); if (! $bev ) { exit( "Failed creating bufferevent socket\n" ); } echo "step 2\n" ; $bev -> setCallbacks ( "readcb" , /* writecb */ NULL , "eventcb" , $base ); $bev -> enable ( Event :: READ | Event :: WRITE ); echo "step 3\n" ... ase = $base ; $this -> bev = new EventBufferEvent ( $base , $fd , EventBufferEvent :: OPT_CLOSE_ON_FREE ); $this -> bev -> setCallbacks (array( $this , "echoReadCallback" ), NULL , array( $this , "echoEventCallback" ), NULL ); if (! $this -> bev -> enable ( ...
https://man.mtool.work/php/8.3/event.examples.html
PREV 1 2 3 NEXT