Results of 1 - 9 of about 9 for bev (0.002 sec.)
- 例 11737
- « リソース型 Event flags » PHP Manual Event 例 例 例1 Simple HTTP client <?php // Read callback
...
function readcb ( $bev , $base ) { //$input = $bev->input; //$bev->getInp ...
ut(); //$pos = $input->search("TTP"); $pos = $bev -> input -> search ( "TTP" ); while (( $n = $bev - ...
o $buf ; } } // Event callback function eventcb ( $bev , $events , $base ) { if ( $events & EventBufferEv ...
ventBufferEvent :: ERROR ) { echo "DNS error: " , $bev -> getDnsErrorString (), PHP_EOL ; } echo "Closing ...
-
https://man.plustar.jp/php/event.examples.html
- [similar]
- Connect buffer event's file descriptor to given address or UNIX socket 11683
- « EventBufferEvent::close EventBufferEvent::connectHost » PHP Manual EventBufferEvent Connect bu
...
stdout. */ /* Read callback */ function readcb ( $bev , $base ) { $input = $bev -> getInput (); while (( ...
buf ; } } /* Event callback */ function eventcb ( $bev , $events , $base ) { if ( $events & EventBufferEv ...
ventBufferEvent :: ERROR ) { echo "DNS error: " , $bev -> getDnsErrorString (), PHP_EOL ; } echo "Closing ...
; } } $base = new EventBase (); echo "step 1\n" ; $bev = new EventBufferEvent ( $base , /* use internal s ...
-
https://man.plustar.jp/php/eventbufferevent.connect.html
- [similar]
- Connects to a hostname with optionally asyncronous DNS resolving 10173
- « EventBufferEvent::connect EventBufferEvent::__construct » PHP Manual EventBufferEvent Connects
...
igured --with-event-extra ( event_extra library, libevent protocol-specific functionality support includi ...
注意 : EventBufferEvent::connectHost() requires libevent-2.0.3-alpha or greater. パラメータ dns_base Obj ...
ample <?php /* Read callback */ function readcb ( $bev , $base ) { //$input = $bev->input; //$bev->getInp ...
ut(); //$pos = $input->search("TTP"); $pos = $bev -> input -> search ( "TTP" ); while (( $n = $bev - ...
-
https://man.plustar.jp/php/eventbufferevent.connecthost.html
- [similar]
- Creates new connection listener associated with an event base 9652
- « EventListener EventListener::disable » PHP Manual EventListener Creates new connection listene
...
nction for more details. If backlog is negative, Libevent tries to pick a good value for the backlog ; if ...
) example <?php /* * Simple echo server based on libevent's connection listener. * * Usage: * 1) In one t ...
he input. */ class MyListenerConnection { private $bev , $base ; public function __destruct () { $this -> ...
bev -> free (); } public function __construct ( $base ...
-
https://man.plustar.jp/php/eventlistener.construct.html
- [similar]
- About buffer event callbacks 8520
- « EventBufferEvent::writeBuffer EventConfig » PHP Manual Event About buffer event callbacks Abou
...
nt . The asynchronous nature of I/O performed by Libevent implies that a socket(or other kind of file des ...
following prototype: callback ( EventBufferEvent $bev = null , mixed $arg = null ): void bev Associated ...
following prototype: callback ( EventBufferEvent $bev = null , int $events = 0 , mixed $arg = null ): vo ...
id bev Associated EventBufferEvent object. events Bit mas ...
-
https://man.plustar.jp/php/eventbufferevent.about.callbacks.html
- [similar]
- Returns underlying output buffer associated with current buffer event 7603
- « EventBufferEvent::getInput EventBufferEvent::read » PHP Manual EventBufferEvent Returns underl
...
s_base ) { exit( "Failed to init DNS Base\n" ); } $bev = new EventBufferEvent ( $base , /* use internal s ...
, /* writecb */ NULL , "eventcb" , $base ); if (! $bev ) { exit( "Failed creating bufferevent socket\n" ) ...
; } $bev -> enable ( Event :: READ | Event :: WRITE ); $out ...
put = $bev -> getOutput (); if (! $output -> add ( "GET { $ar ...
-
https://man.plustar.jp/php/eventbufferevent.getoutput.html
- [similar]
- Returns underlying input buffer associated with current buffer event 7423
- « EventBufferEvent::getEnabled EventBufferEvent::getOutput » PHP Manual EventBufferEvent Returns
...
fer event's read callback <?php function readcb ( $bev , $base ) { $input = $bev -> input ; //$bev->getIn ...
-
https://man.plustar.jp/php/eventbufferevent.getinput.html
- [similar]
- Returns most recent OpenSSL error reported on the buffer event 7261
- « EventBufferEvent::setWatermark EventBufferEvent::sslFilter » PHP Manual EventBufferEvent Retur
...
sed, or an error occurred function ssl_event_cb ( $bev , $events , $ctx ) { if ( $events & EventBufferEve ...
ch errors from the SSL error stack while ( $err = $bev -> sslError ()) { fprintf ( STDERR , "Bufferevent ...
fferEvent :: EOF | EventBufferEvent :: ERROR )) { $bev -> free (); } } ?> 参考 EventBufferEvent::sslReneg ...
-
https://man.plustar.jp/php/eventbufferevent.sslerror.html
- [similar]
- Set callback for connection close 6776
- « EventHttpConnection::makeRequest EventHttpConnection::setLocalAddress » PHP Manual EventHttpCo
...
st unclosed conections. This is a peculiarity of Libevent. The library disables Event::READ events on thi ...
code fixes such kind of orphaned connections. */ $bev = $req -> getBufferEvent (); $bev -> enable ( Even ...
explicitly. See EventHttpRequest::getConnection() $bev->free(); // we have to free it explicitly $req->ad ...
-
https://man.plustar.jp/php/eventhttpconnection.setclosecallback.html
- [similar]
PREV
1
NEXT