mirror of
https://github.com/php/doc-ru.git
synced 2026-03-24 07:42:22 +01:00
147 lines
3.7 KiB
XML
147 lines
3.7 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
||
<!-- EN-Revision: a47dff201e3f65c07f6c84a535951632771cf72d Maintainer: lex Status: ready -->
|
||
<!-- Reviewed: no -->
|
||
<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xml:id="eventhttpconnection.construct">
|
||
<refnamediv>
|
||
<refname>EventHttpConnection::__construct</refname>
|
||
<refpurpose>Создаёт объект EventHttpConnection</refpurpose>
|
||
</refnamediv>
|
||
<refsect1 role="description">
|
||
&reftitle.description;
|
||
<methodsynopsis>
|
||
<modifier>public</modifier>
|
||
<methodname>EventHttpConnection::__construct</methodname>
|
||
<methodparam>
|
||
<type>EventBase</type>
|
||
<parameter>base</parameter>
|
||
</methodparam>
|
||
<methodparam>
|
||
<type>EventDnsBase</type>
|
||
<parameter>dns_base</parameter>
|
||
</methodparam>
|
||
<methodparam>
|
||
<type>string</type>
|
||
<parameter>address</parameter>
|
||
</methodparam>
|
||
<methodparam>
|
||
<type>int</type>
|
||
<parameter>port</parameter>
|
||
</methodparam>
|
||
<methodparam choice="opt">
|
||
<type>EventSslContext</type>
|
||
<parameter>ctx</parameter>
|
||
<initializer>&null;</initializer>
|
||
</methodparam>
|
||
</methodsynopsis>
|
||
<para>
|
||
Создаёт объект EventHttpConnection.
|
||
</para>
|
||
</refsect1>
|
||
<refsect1 role="parameters">
|
||
&reftitle.parameters;
|
||
<variablelist>
|
||
<varlistentry>
|
||
<term>
|
||
<parameter>base</parameter>
|
||
</term>
|
||
<listitem>
|
||
<para>
|
||
Связанная база событий.
|
||
</para>
|
||
</listitem>
|
||
</varlistentry>
|
||
<varlistentry>
|
||
<term>
|
||
<parameter>dns_base</parameter>
|
||
</term>
|
||
<listitem>
|
||
<para>
|
||
Если параметр <parameter>dns_base</parameter> равен &null;,
|
||
разрешение имени хоста будет заблокировано.
|
||
</para>
|
||
</listitem>
|
||
</varlistentry>
|
||
<varlistentry>
|
||
<term>
|
||
<parameter>address</parameter>
|
||
</term>
|
||
<listitem>
|
||
<para>
|
||
Адрес для подключения.
|
||
</para>
|
||
</listitem>
|
||
</varlistentry>
|
||
<varlistentry>
|
||
<term>
|
||
<parameter>port</parameter>
|
||
</term>
|
||
<listitem>
|
||
<para>
|
||
Порт для подключения.
|
||
</para>
|
||
</listitem>
|
||
</varlistentry>
|
||
<varlistentry>
|
||
<term>
|
||
<parameter>ctx</parameter>
|
||
</term>
|
||
<listitem>
|
||
<para>
|
||
Объект класса <classname>EventSslContext</classname>.
|
||
Включает OpenSSL.
|
||
</para>
|
||
<note>
|
||
<para>
|
||
Параметр доступен, только
|
||
если модуль <literal>Event</literal> скомпилирован с поддержкой библиотеки OpenSSL и только
|
||
с модулем <literal>Libevent 2.1.0-alpha</literal> и выше.
|
||
</para>
|
||
</note>
|
||
</listitem>
|
||
</varlistentry>
|
||
</variablelist>
|
||
</refsect1>
|
||
|
||
<refsect1 role="changelog">
|
||
&reftitle.changelog;
|
||
<informaltable>
|
||
<tgroup cols="2">
|
||
<thead>
|
||
<row>
|
||
<entry>&Version;</entry>
|
||
<entry>&Description;</entry>
|
||
</row>
|
||
</thead>
|
||
<tbody>
|
||
<row>
|
||
<entry>PECL event 1.9.0</entry>
|
||
<entry>
|
||
Добавлена поддержка библиотеки OpenSSL (<parameter>ctx</parameter>).
|
||
</entry>
|
||
</row>
|
||
</tbody>
|
||
</tgroup>
|
||
</informaltable>
|
||
</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
|
||
-->
|