« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 2 of about 2 for clientDataLen (0.002 sec.)
EventBufferEvent::sslFilter — Create a new SSL buffer event to send its data ov... 11228
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 ... -> input -> length > 0 ) { $this -> connections [ $id ][ 'clientData' ] .= $buffer -> input -> read ( $this -> maxRead ); $clientDataLen = strlen ( $this -> connections [ $id ][ 'clientData' ]); if( $this -> connections [ $id ][ 'clientData' ][ $clientDataLen ... - 1 ] == "\n" && $this -> connections [ $id ][ 'clientData' ][ $clientDataLen - 2 ] == "\r" ) { // remove the trailing \r\n $line = substr ( $this -> connections [ $id ][ 'clientData' ], 0 , strlen ( ...
https://man.mtool.work/php/8.3/eventbufferevent.sslfilter.html
例 | PHP 8.3 7485
例 例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 ... -> input -> length > 0 ) { $this -> connections [ $id ][ 'clientData' ] .= $buffer -> input -> read ( $this -> maxRead ); $clientDataLen = strlen ( $this -> connections [ $id ][ 'clientData' ]); if( $this -> connections [ $id ][ 'clientData' ][ $clientDataLen ... - 1 ] == "\n" && $this -> connections [ $id ][ 'clientData' ][ $clientDataLen - 2 ] == "\r" ) { // remove the trailing \r\n $line = substr ( $this -> connections [ $id ][ 'clientData' ], 0 , strlen ( ...
https://man.mtool.work/php/8.3/event.examples.html
PREV 1 NEXT