mirror of
https://github.com/php/doc-ru.git
synced 2026-03-23 23:32:16 +01:00
* Update pattern.matching.xml to en * Update createstopped.xml to en * Update construct.xml to en * Update createstopped.xml исправил формулировку * Update createstopped.xml to en * Update construct.xml to en * Update createstopped.xml to en * Update construct.xml to en * Update construct.xml Добавил кавычки к названию страницы * Update createstopped.xml to en * Update construct.xml to en * Update createstopped.xml to en * Update createstopped.xml исправил ошибку * Update construct.xml to en * Update createstopped.xml to en * Update construct.xml to en * Update createstopped.xml to en * Update prev.xml to en * Update stat.xml to en * Update construct.xml to en * Update createstopped.xml to en * Update set.xml to en * Update clear.xml to en * Update feed.xml to en * Update invoke.xml to en * Update setcallback.xml to en * Update book.xml to en * Update event.callbacks.xml to en * Update event.constructing.signal.events.xml to en * Update event.flags.xml to en * Update event.constructing.signal.events.xml исправил формулировку * Update event.persistence.xml to en * Update event.xml to en * Update eventbase.xml to en * Update eventbuffer.xml to en * Update eventbufferevent.about.callbacks.xml to en * Update eventbufferevent.xml to en * Update eventconfig.xml to en * Update eventsslcontext.xml to en * Update eventutil.xml to en * Update setup.xml to en * Update construct.xml to en * Update free.xml to en * Update pending.xml to en * Update event.callbacks.xml исправил формулировку * Update set.xml to en * Update set.xml формулировка * Update settimer.xml to en * Update signal.xml to en * Update timer.xml to en * Update free.xml to en * Update getfeatures.xml to en * Update gotexit.xml to en * Update gotstop.xml to en * Update loop.xml to en * Update addbuffer.xml to en * Update copyout.xml to en * Update drain.xml to en * Update prependbuffer.xml to en * Update readline.xml to en * Update search.xml to en * Update searcheol.xml to en * Update search.xml исправил формулировку * Update unlock.xml to en * Update connecthost.xml to en * Update construct.xml to en * Update createpair.xml to en * Update disable.xml to en * Update enable.xml to en * Update free.xml to en * Update getdnserrorstring.xml to en * Update readbuffer.xml to en * Update setcallbacks.xml to en * Update setwatermark.xml to en * Update setwatermark.xml Исправил ошибку * Update sslfilter.xml to en * Update sslsocket.xml to en * Update avoidmethod.xml to en * Update setmaxdispatchinterval.xml to en * Update loadhosts.xml to en * Update parseresolvconf.xml to en * Update setoption.xml to en * Update accept.xml to en * Update setallowedmethods.xml to en * Update setcallback.xml to en * Update setdefaultcallback.xml to en * Update makerequest.xml to en * Update addheader.xml to en * Update findheader.xml to en * Update getconnection.xml to en * Update sendreplystart.xml to en * Update construct.xml to en * Update construct.xml to en * Update setsocketoption.xml to en * Update pattern.matching.xml to en
173 lines
5.3 KiB
XML
173 lines
5.3 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
||
<!-- EN-Revision: 23ea6be076881a34e1d454e9680968ece085f7f6 Maintainer: zors1 Status: ready -->
|
||
<!-- Reviewed: no -->
|
||
<refentry xml:id="eventbufferevent.construct" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||
<refnamediv>
|
||
<refname>EventBufferEvent::__construct</refname>
|
||
<refpurpose>Создаёт объект EventBufferEvent</refpurpose>
|
||
</refnamediv>
|
||
|
||
<refsect1 role="description">
|
||
&reftitle.description;
|
||
<methodsynopsis>
|
||
<modifier>public</modifier>
|
||
<methodname>EventBufferEvent::__construct</methodname>
|
||
<methodparam>
|
||
<type>EventBase</type>
|
||
<parameter>base</parameter>
|
||
</methodparam>
|
||
<methodparam choice="opt">
|
||
<type>mixed</type>
|
||
<parameter>socket</parameter>
|
||
<initializer>&null;</initializer>
|
||
</methodparam>
|
||
<methodparam choice="opt">
|
||
<type>int</type>
|
||
<parameter>options</parameter>
|
||
<initializer>0</initializer>
|
||
</methodparam>
|
||
<methodparam choice="opt">
|
||
<type>callable</type>
|
||
<parameter>readcb</parameter>
|
||
<initializer>&null;</initializer>
|
||
</methodparam>
|
||
<methodparam choice="opt">
|
||
<type>callable</type>
|
||
<parameter>writecb</parameter>
|
||
<initializer>&null;</initializer>
|
||
</methodparam>
|
||
<methodparam choice="opt">
|
||
<type>callable</type>
|
||
<parameter>eventcb</parameter>
|
||
<initializer>&null;</initializer>
|
||
</methodparam>
|
||
<methodparam choice="opt">
|
||
<type>mixed</type>
|
||
<parameter>arg</parameter>
|
||
<initializer>&null;</initializer>
|
||
</methodparam>
|
||
</methodsynopsis>
|
||
<para>
|
||
Метод создаёт событие буфера для сокета, потока или файлового дескриптора. Передача
|
||
значения &null; в параметр <parameter>socket</parameter> означает, что сокет требуется
|
||
создать позже, например методом
|
||
<methodname>EventBufferEvent::connect</methodname>.
|
||
</para>
|
||
</refsect1>
|
||
|
||
<refsect1 role="parameters">
|
||
&reftitle.parameters;
|
||
<variablelist>
|
||
<varlistentry>
|
||
<term>
|
||
<parameter>base</parameter>
|
||
</term>
|
||
<listitem>
|
||
<para>
|
||
База события, которая требуется связать с новым буферным событием.
|
||
</para>
|
||
</listitem>
|
||
</varlistentry>
|
||
<varlistentry>
|
||
<term>
|
||
<parameter>socket</parameter>
|
||
</term>
|
||
<listitem>
|
||
<para>
|
||
Сокет создаётся как поток и не обязательно средствами модуля
|
||
<literal>sockets</literal>.
|
||
</para>
|
||
</listitem>
|
||
</varlistentry>
|
||
<varlistentry>
|
||
<term>
|
||
<parameter>options</parameter>
|
||
</term>
|
||
<listitem>
|
||
<para>
|
||
Параметр принимает
|
||
<link linkend="eventbufferevent.constants">константу семейства EventBufferEvent::OPT_*</link>
|
||
или значение <constant>0</constant>.
|
||
</para>
|
||
</listitem>
|
||
</varlistentry>
|
||
<varlistentry>
|
||
<term>
|
||
<parameter>readcb</parameter>
|
||
</term>
|
||
<listitem>
|
||
<para>
|
||
Callback-функция события чтения. Подробнее о функция обратного вызова рассказывает раздел
|
||
«<link linkend="eventbufferevent.about.callbacks">О callback-функциях событийного буфера</link>».
|
||
</para>
|
||
</listitem>
|
||
</varlistentry>
|
||
<varlistentry>
|
||
<term>
|
||
<parameter>writecb</parameter>
|
||
</term>
|
||
<listitem>
|
||
<para>
|
||
Callback-функция события записи. Подробнее о функция обратного вызова рассказывает раздел
|
||
«<link linkend="eventbufferevent.about.callbacks">О callback-функциях событийного буфера</link>».
|
||
</para>
|
||
</listitem>
|
||
</varlistentry>
|
||
<varlistentry>
|
||
<term>
|
||
<parameter>eventcb</parameter>
|
||
</term>
|
||
<listitem>
|
||
<para>
|
||
Callback-функция события изменения статуса. Подробнее о функция обратного вызова рассказывает раздел
|
||
«<link linkend="eventbufferevent.about.callbacks">О callback-функциях событийного буфера</link>».
|
||
</para>
|
||
</listitem>
|
||
</varlistentry>
|
||
<varlistentry>
|
||
<term>
|
||
<parameter>arg</parameter>
|
||
</term>
|
||
<listitem>
|
||
<para>
|
||
Переменная, которая передаётся каждой callback-функции.
|
||
</para>
|
||
</listitem>
|
||
</varlistentry>
|
||
</variablelist>
|
||
</refsect1>
|
||
|
||
<refsect1 role="seealso">
|
||
&reftitle.seealso;
|
||
<simplelist>
|
||
<member>
|
||
<methodname>EventBufferEvent::sslFilter</methodname>
|
||
</member>
|
||
<member>
|
||
<methodname>EventBufferEvent::sslSocket</methodname>
|
||
</member>
|
||
</simplelist>
|
||
</refsect1>
|
||
|
||
</refentry>
|
||
<!-- Keep this comment at the end of the file
|
||
Local variables:
|
||
mode: sgml
|
||
sgml-omittag:t
|
||
sgml-shorttag:t
|
||
sgml-minimize-attributes:nil
|
||
sgml-always-quote-attributes:t
|
||
sgml-indent-step:1
|
||
sgml-indent-data:t
|
||
indent-tabs-mode:nil
|
||
sgml-parent-document:nil
|
||
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
|
||
sgml-exposed-tags:nil
|
||
sgml-local-catalogs:nil
|
||
sgml-local-ecat-files:nil
|
||
End:
|
||
vim600: syn=xml fen fdm=syntax fdl=2 si
|
||
vim: et tw=78 syn=sgml
|
||
vi: ts=1 sw=1
|
||
-->
|