« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 10 of about 37 for Libevent (0.001 sec.)
EventConfig::setMaxDispatchInterval — Prevents priority inversion | PHP 8.3 11539
EventConfig::setMaxDispatchInterval (PECL event >= 2.1.0-alpha) EventConfig::setMaxDispatchInterval — Prevents priority inversion 説明 public function EventConfig::setMaxDispatchInterval ( int $max_interval , int $max_callbacks , int $min_p ... how many low-priority event callbacks can be invoked before checking for more high-priority events. 注意 : Available since libevent 2.1.0-alpha . パラメータ max_interval An interval after which Libevent should stop running callbacks and check for more ev ... ents, or 0 , if there should be no such interval. max_callbacks A number of callbacks after which Libevent should stop running callbacks and check for more events, or -1 , if there should be no such limit. min_priority A priority ...
https://man.mtool.work/php/8.3/eventconfig.setmaxdispatchinterval.html
eio_get_event_stream — 内部での libeio との通信に使う変数を表すストリームを取得... 11539
eio_get_event_stream (PECL eio >= 0.3.1b) eio_get_event_stream — 内部での libeio との通信に使う変数を表すストリームを取得する 説明 function eio_get_event_stream (): mixed eio_get_event_stream() は、内部での libeio との通信に使う変数を表すス ... トリームを取得します。 他の PECL 拡張モジュール、たとえば libevent にバインドさせたりして使うことができます。 パラメータ この関数にはパラメータはありません。 戻り値 eio_get_event_stream() は ... 、成功した場合にストリームを返します。それ以外の場合に null を返します。 例 例1 eio を libevent とともに使う <?php function my_eio_poll ( $fd , $events , $arg ) { /* Some libevent regulation might go here .. */ if ( ei ... able event event_add ( $event ); // start event loop event_base_loop ( $base ); /* The same will be available via buffered libevent interface */ ?> 上の例の出力は、 たとえば以下のようになります。 int(3) int(0) string(8) "nop data" int(0) string(10) "mkdi ...
https://man.mtool.work/php/8.3/function.eio-get-event-stream.html
要件 | PHP 8.3 11365
要件 This extension requires » libevent library. Most modern distributions provide packages for libevent. OpenSSL features require » OpenSSL library. 他のマニュアルの関連ページ Linux JM libc(7) Linux JM glibc(7) DuckDB jemalloc DuckDB Vorte ...
https://man.mtool.work/php/8.3/event.requirements.html
Event::getSupportedMethods — Returns array of the names of the methods supporte... 10497
Event::getSupportedMethods (PECL event >= 1.2.6-beta) Event::getSupportedMethods — Returns array of the names of the methods supported in this version of Libevent 説明 public static function Event::getSupportedMethods (): array Returns arra ... y of the names of the methods(backends) supported in this version of Libevent. パラメータ この関数にはパラメータはありません。 戻り値 Returns array. 参考 EventConfig 他のマニュアルの関連ページ Django ...
https://man.mtool.work/php/8.3/event.getsupportedmethods.html
EventConfig::avoidMethod — Tells libevent to avoid specific event method | PHP ... 10150
EventConfig::avoidMethod (PECL event >= 1.2.6-beta) EventConfig::avoidMethod — Tells libevent to avoid specific event method 説明 public function EventConfig::avoidMethod ( string $method ): bool Tells libevent to avoid specific event metho ...
https://man.mtool.work/php/8.3/eventconfig.avoidmethod.html
The EventListener class | PHP 8.3 9976
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 ... iptor of the underlying socket. (Added in event-1.6.0 .) 定義済み定数 EventListener::OPT_LEAVE_SOCKETS_BLOCKING By default Libevent turns underlying file descriptors, or sockets, to non-blocking mode. This flag tells Libevent to leave them in blocking mo ... a listener socket is closed, no other socket can bind to the same port until a while has passed. Setting this option makes Libevent mark the socket as reusable, so that once it is closed, another socket can be opened to listen on the same port. EventList ...
https://man.mtool.work/php/8.3/class.eventlistener.html
The EventBase class | PHP 8.3 9282
The EventBase class (PECL event >= 1.2.6-beta) はじめに EventBase class represents libevent's event base structure. It holds a set of events and can poll to determine which events are active. Each event base has a method , or a backend that ... nction stop (): bool } 定義済み定数 EventBase::LOOP_ONCE Flag used with EventBase::loop() method which means: "block until libevent has an active event, then exit once all active events have had their callbacks run". EventBase::LOOP_NONBLOCK Flag used wi ... timeout callback. EventBase::EPOLL_USE_CHANGELIST If we are using the epoll backend, this flag says that it is safe to use Libevent's internal change-list code to batch up adds and deletes in order to try to do as few syscalls as possible. Setting this f ...
https://man.mtool.work/php/8.3/class.eventbase.html
The EventBufferEvent class | PHP 8.3 9282
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 ... have more data to write, wait for the connection to become writable again. This buffered I/O pattern is common enough that Libevent provides a generic mechanism for it. A "buffer event" consists of an underlying transport (like a socket), a read buffer, ... n this flag is set, the bufferevent defers all of its callbacks. See » Fast portable non-blocking network programming with Libevent, Deferred callbacks . EventBufferEvent::OPT_UNLOCK_CALLBACKS By default, when the bufferevent is set up to be threadsafe, ... the buffer event's locks are held whenever the any user-provided callback is invoked. Setting this option makes Libevent release the buffer event's lock when it's invoking the callbacks. EventBufferEvent::SSL_OPEN The SSL handshake is done Eve ...
https://man.mtool.work/php/8.3/class.eventbufferevent.html
Eio | PHP 8.3 8934
Eio はじめに この拡張モジュールは、非同期 POSIX I/O 機能を提供します。 Marc Lehmann による » libeio C ライブラリを利用します。 注意 : この拡張モジュールは Windows 環境では利用できません。 警告 注意すべき点は、個々のリクエストが単一のスレッド ... 数を使うと、他の拡張モジュールでサポートしている イベントループにバインドできます。 シンプルなイベントループを作って、eio と libevent を一緒に動かしたりできるのです。 例4 eio と libevent を組み合わせる例 <?php function my_eio_poll ( $fd , $events , $arg ) ... { /* libevent の設定があればここに書きます .. */ if ( eio_nreqs ()) { eio_poll (); } /* .. そしてここにも書きます */ } function my_res_c ... d , $r ) { var_dump ( $r ); var_dump ( $d ); } $base = event_base_new (); $event = event_new (); // このストリームを使って libevent にバインドします $fd = eio_get_event_stream (); eio_nop ( EIO_PRI_DEFAULT , "my_res_cb" , "nop data" ); eio_mkdir ( "/tmp/ ...
https://man.mtool.work/php/8.3/book.eio.html
Event | PHP 8.3 8587
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 ... duced in event-1.9.0 . Version 1.0.0 introduces new object-oriented API (breaking backwards compatibility), and support of libevent 2+ including HTTP, DNS, OpenSSL and the event listener. 注意 : Note, event-1.0.0 and greater is not compatible with previo ... located for this event Event::getSupportedMethods — Returns array of the names of the methods supported in this version of Libevent Event::pending — Detects whether event is pending or scheduled Event::set — Re-configures event Event::setPriority — Set e ... er event's output buffer About buffer event callbacks EventConfig — The EventConfig class EventConfig::avoidMethod — Tells libevent to avoid specific event method EventConfig::__construct — Constructs EventConfig object EventConfig::requireFeatures — Ent ...
https://man.mtool.work/php/8.3/book.event.html
PREV 1 2 3 4 NEXT