<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<refentry xml:id="eventhttpconnection.construct" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
 <refnamediv>
  <refname>EventHttpConnection::__construct</refname>
  <refpurpose>Constructs EventHttpConnection object</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>
   Constructs EventHttpConnection object.
  </para>
 </refsect1>
 <refsect1 role="parameters">
  &reftitle.parameters;
  <variablelist>
   <varlistentry>
    <term>
     <parameter>base</parameter>
    </term>
    <listitem>
     <para>
      Associated event base.
     </para>
    </listitem>
   </varlistentry>
   <varlistentry>
    <term>
     <parameter>dns_base</parameter>
    </term>
    <listitem>
     <para>
      If
      <parameter>dns_base</parameter>
      is &null;, hostname resolution will block.
     </para>
    </listitem>
   </varlistentry>
   <varlistentry>
    <term>
     <parameter>address</parameter>
    </term>
    <listitem>
     <para>
      The address to connect to.
     </para>
    </listitem>
   </varlistentry>
   <varlistentry>
    <term>
     <parameter>port</parameter>
    </term>
    <listitem>
     <para>
      The port to connect to.
     </para>
    </listitem>
   </varlistentry>
   <varlistentry>
    <term>
     <parameter>ctx</parameter>
    </term>
    <listitem>
     <para>
      <classname>EventSslContext</classname>
      class object. Enables OpenSSL.
     </para>
     <note>
      <para>
       This parameter is available only if
       <literal>Event</literal>
       is compiled with OpenSSL support and only with
       <literal>Libevent
        2.1.0-alpha</literal>
       and higher.
      </para>
     </note>
    </listitem>
   </varlistentry>
  </variablelist>
 </refsect1>
 <refsect1 role="returnvalues">
  &reftitle.returnvalues;
  <para>
   Returns
   <classname>EventHttpConnection</classname>
   object.
  </para>
 </refsect1>
 <refsect1 role="changelog">
  &reftitle.changelog;
  <para>
   <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 support (<parameter>ctx</parameter>) added.
       </entry>
      </row>
     </tbody>
    </tgroup>
   </informaltable>
  </para>
 </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
-->
