Results of 1 - 10 of about 10 for setCallbacks (0.005 sec.)
- EventBufferEvent::setCallbacks — Assigns read, write and event(status) callback... 13336
- EventBufferEvent::setCallbacks (PECL event >= 1.2.6-beta) EventBufferEvent::setCallbacks — Assigns read, write and event(status) callbacks 説明 public function EventBufferEvent::setCallbacks ( callable $readcb , callable $writecb , callable
...
-
https://man.mtool.work/php/8.3/eventbufferevent.setcallbacks.html
- About buffer event callbacks | PHP 8.3 10708
- About buffer event callbacks An object of EventBufferEvent class represents a buffer event . The asynchronous nature of I/O performed by Libevent implies that a socket(or other kind of file descriptor) is not always available. Event invokes
... fferEvent object. arg Custom variable attached to all callbacks via EventBufferEvent::__construct() , or EventBufferEvent::setCallbacks() . Event callback should match the following prototype: function callback ( EventBufferEvent $bev = null , int $events = ... erEvent constants arg Custom variable attached to all callbacks via EventBufferEvent::__construct() , or EventBufferEvent::setCallbacks() . 他のマニュアルの関連ページ Python sys.monitoring Linux JM fanotify(7) Django 1.9.7 ...
-
https://man.mtool.work/php/8.3/eventbufferevent.about.callbacks.html
- 例 | PHP 8.3 9671
- 例 例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 -> outp ... 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
- The EventBufferEvent class | PHP 8.3 8652
- The EventBufferEvent class (PECL event >= 1.2.6-beta) はじめに Represents Libevent's buffer event. Usually an application wants to perform some amount of data buffering in addition to just responding to events. When we want to write data, f
... entBuffer public function read ( int $size ): string public function readBuffer ( EventBuffer $buf ): bool public function setCallbacks ( callable $readcb , callable $writecb , callable $eventcb , mixed $arg = ? ): void public function setPriority ( int $pri ... 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 Event ...
-
https://man.mtool.work/php/8.3/class.eventbufferevent.html
- EventBufferEvent::sslFilter — Create a new SSL buffer event to send its data ov... 8652
- EventBufferEvent::sslFilter (PECL event >= 1.2.6-beta) EventBufferEvent::sslFilter — Create a new SSL buffer event to send its data over another buffer event 説明 public static function EventBufferEvent::sslFilter ( EventBase $base , EventB
... ) { echo "Failed creating buffer\n" ; $this -> base -> exit ( NULL ); exit( 1 ); } $this -> connections [ $id ][ 'cnx' ]-> setCallbacks ([ $this , "ev_read" ], NULL , [ $this , 'ev_error' ], $id ); $this -> connections [ $id ][ 'cnx' ]-> enable ( Event :: RE ... ctx , EventBufferEvent :: SSL_ACCEPTING , EventBufferEvent :: OPT_CLOSE_ON_FREE ); $this -> connections [ $id ][ 'cnx' ]-> setCallbacks ([ $this , "ev_read" ], NULL , [ $this , 'ev_error' ], $id ); $this -> connections [ $id ][ 'cnx' ]-> enable ( Event :: RE ...
-
https://man.mtool.work/php/8.3/eventbufferevent.sslfilter.html
- EventBufferEvent::connectHost — Connects to a hostname with optionally asynchro... 7919
- EventBufferEvent::connectHost (PECL event >= 1.2.6-beta) EventBufferEvent::connectHost — Connects to a hostname with optionally asynchronous DNS resolving 説明 public function EventBufferEvent::connectHost ( EventDnsBase $dns_base , string
... adcb" , /* writecb */ NULL , "eventcb" , $base ); if (! $bev ) { exit( "Failed creating bufferevent socket\n" ); } //$bev->setCallbacks("readcb", /* writecb */ NULL, "eventcb", $base); $bev -> enable ( Event :: READ | Event :: WRITE ); $output = $bev -> outp ...
-
https://man.mtool.work/php/8.3/eventbufferevent.connecthost.html
- EventListener::__construct — Creates new connection listener associated with an... 7919
- 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
... 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/eventlistener.construct.html
- EventBufferEvent::connect — Connect buffer event's file descriptor to given add... 7776
- EventBufferEvent::connect (PECL event >= 1.2.6-beta) EventBufferEvent::connect — Connect buffer event's file descriptor to given address or UNIX socket 説明 public function EventBufferEvent::connect ( string $addr ): bool Connect buffer eve
... 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" ...
-
https://man.mtool.work/php/8.3/eventbufferevent.connect.html
- Event | PHP 8.3 7633
- 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 Event ...
-
https://man.mtool.work/php/8.3/book.event.html
- 関数・メソッド | PHP 8.3 7043
- 関数・メソッド マニュアル内の全関数およびメソッドの一覧 a b c d e f g h i j k l m n o p q r s t u v w x y z _ a abs - 絶対値 acos - 逆余弦(アークコサイン) acosh - 逆双曲線余弦(アークハイパボリックコサイン) addcslashes - C 言語と同様にス
... 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 Event ...
-
https://man.mtool.work/php/8.3/indexes.functions.html
PREV
1
NEXT