« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 9 of about 9 for getOutput (0.004 sec.)
EventBufferEvent::getOutput — Returns underlying output buffer associated with ... 13948
EventBufferEvent::getOutput (PECL event >= 1.2.6-beta) EventBufferEvent::getOutput — Returns underlying output buffer associated with current buffer event 説明 public function EventBufferEvent::getOutput (): EventBuffer Returns underlying o ... ません。 戻り値 Returns instance of EventBuffer output buffer associated with current buffer event. 例 例1 EventBufferEvent::getOutput() example <?php $base = new EventBase (); $dns_base = new EventDnsBase ( $base , TRUE ); // Use async DNS resolving if (! ... ) { exit( "Failed creating bufferevent socket\n" ); } $bev -> enable ( Event :: READ | Event :: WRITE ); $output = $bev -> getOutput (); if (! $output -> add ( "GET { $argv [ 2 ]} HTTP/1.0\r\n" . "Host: { $argv [ 1 ]} \r\n" . "Connection: Close\r\n\r\n" ) ...
https://man.mtool.work/php/8.3/eventbufferevent.getoutput.html
EventBufferEvent::getInput — Returns underlying input buffer associated with cu... 8987
EventBufferEvent::getInput (PECL event >= 1.2.6-beta) EventBufferEvent::getInput — Returns underlying input buffer associated with current buffer event 説明 public function EventBufferEvent::getInput (): EventBuffer Returns underlying input ... ut ; //$bev->getInput(); while (( $n = $input -> remove ( $buf , 1024 )) > 0 ) { echo $buf ; } } ?> 参考 EventBufferEvent::getOutput() - Returns underlying output buffer associated with current buffer event 他のマニュアルの関連ページ Linux JM mbsnrtowcs(3 ...
https://man.mtool.work/php/8.3/eventbufferevent.getinput.html
The EventBufferEvent class | PHP 8.3 8879
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 ... n getDnsErrorString (): string public function getEnabled (): int public function getInput (): EventBuffer public function getOutput (): EventBuffer public function read ( int $size ): string public function readBuffer ( EventBuffer $buf ): bool public fu ... event EventBufferEvent::getInput — Returns underlying input buffer associated with current buffer event EventBufferEvent::getOutput — Returns underlying output buffer associated with current buffer event EventBufferEvent::read — Read buffer's data EventB ...
https://man.mtool.work/php/8.3/class.eventbufferevent.html
例 | PHP 8.3 8430
例 例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 ... writecb */ NULL, "eventcb", $base); $bev -> enable ( Event :: READ | Event :: WRITE ); $output = $bev -> output ; //$bev->getOutput(); if (! $output -> add ( "GET { $argv [ 2 ]} HTTP/1.0\r\n" . "Host: { $argv [ 1 ]} \r\n" . "Connection: Close\r\n\r\n" )) ... eventcb" , $base ); $bev -> enable ( Event :: READ | Event :: WRITE ); echo "step 3\n" ; // Send request $output = $bev -> getOutput (); if (! $output -> add ( "GET /index.cphp HTTP/1.0\r\n" . "Connection: Close\r\n\r\n" )) { exit( "Failed adding request ... / Variant #1 $bev -> output -> addBuffer ( $bev -> input ); /* Variant #2 */ /* $input = $bev->getInput(); $output = $bev->getOutput(); $output->addBuffer($input); */ } public function echoEventCallback ( $bev , $events , $ctx ) { if ( $events & EventBuff ...
https://man.mtool.work/php/8.3/event.examples.html
EventBufferEvent::connectHost — Connects to a hostname with optionally asynchro... 8322
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 ... writecb */ NULL, "eventcb", $base); $bev -> enable ( Event :: READ | Event :: WRITE ); $output = $bev -> output ; //$bev->getOutput(); if (! $output -> add ( "GET { $argv [ 2 ]} HTTP/1.0\r\n" . "Host: { $argv [ 1 ]} \r\n" . "Connection: Close\r\n\r\n" )) ...
https://man.mtool.work/php/8.3/eventbufferevent.connecthost.html
EventListener::__construct — Creates new connection listener associated with an... 8322
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 ... / Variant #1 $bev -> output -> addBuffer ( $bev -> input ); /* Variant #2 */ /* $input = $bev->getInput(); $output = $bev->getOutput(); $output->addBuffer($input); */ } public function echoEventCallback ( $bev , $events , $ctx ) { if ( $events & EventBuff ...
https://man.mtool.work/php/8.3/eventlistener.construct.html
EventBufferEvent::connect — Connect buffer event's file descriptor to given add... 8196
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 ... ntcb" , $base ); $bev -> enable ( Event :: READ | Event :: WRITE ); echo "step 3\n" ; /* Send request */ $output = $bev -> getOutput (); if (! $output -> add ( "GET /index.cphp HTTP/1.0\r\n" . "Connection: Close\r\n\r\n" )) { exit( "Failed adding request ...
https://man.mtool.work/php/8.3/eventbufferevent.connect.html
Event | PHP 8.3 8088
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 ... event EventBufferEvent::getInput — Returns underlying input buffer associated with current buffer event EventBufferEvent::getOutput — Returns underlying output buffer associated with current buffer event EventBufferEvent::read — Read buffer's data EventB ... urns the input buffer EventHttpRequest::getInputHeaders — Returns associative array of the input headers EventHttpRequest::getOutputBuffer — Returns the output buffer of the request EventHttpRequest::getOutputHeaders — Returns associative array of the out ...
https://man.mtool.work/php/8.3/book.event.html
関数・メソッド | PHP 8.3 7639
関数・メソッド マニュアル内の全関数およびメソッドの一覧 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 言語と同様にス ... event EventBufferEvent::getInput - Returns underlying input buffer associated with current buffer event EventBufferEvent::getOutput - Returns underlying output buffer associated with current buffer event EventBufferEvent::read - Read buffer's data EventB ... urns the input buffer EventHttpRequest::getInputHeaders - Returns associative array of the input headers EventHttpRequest::getOutputBuffer - Returns the output buffer of the request EventHttpRequest::getOutputHeaders - Returns associative array of the out ...
https://man.mtool.work/php/8.3/indexes.functions.html
PREV 1 NEXT