<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/class.eventhttpconnection.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'en',
  ),
  'this' => 
  array (
    0 => 'eventhttpconnection.construct.php',
    1 => 'EventHttpConnection::__construct',
    2 => 'Constructs EventHttpConnection object',
  ),
  'up' => 
  array (
    0 => 'class.eventhttpconnection.php',
    1 => 'EventHttpConnection',
  ),
  'prev' => 
  array (
    0 => 'class.eventhttpconnection.php',
    1 => 'EventHttpConnection',
  ),
  'next' => 
  array (
    0 => 'eventhttpconnection.getbase.php',
    1 => 'EventHttpConnection::getBase',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/event/eventhttpconnection/construct.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="eventhttpconnection.construct" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">EventHttpConnection::__construct</h1>
  <p class="verinfo">(PECL event &gt;= 1.2.6-beta)</p><p class="refpurpose"><span class="refname">EventHttpConnection::__construct</span> &mdash; <span class="dc-title">Constructs EventHttpConnection object</span></p>

 </div>
 <div class="refsect1 description" id="refsect1-eventhttpconnection.construct-description">
  <h3 class="title">Description</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span>
   <span class="methodname"><strong>EventHttpConnection::__construct</strong></span>(<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam">
    
    <span class="type"><a href="class.eventbase.php" class="type EventBase">EventBase</a></span> <code class="parameter">$base</code>
   </span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam">
    
    <span class="type"><a href="class.eventdnsbase.php" class="type EventDnsBase">EventDnsBase</a></span> <code class="parameter">$dns_base</code>
   </span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam">
    
    <span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$address</code>
   </span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam">
    
    <span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$port</code>
   </span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam">
    
    <span class="type"><a href="class.eventsslcontext.php" class="type EventSslContext">EventSslContext</a></span> <code class="parameter">$ctx</code>
    <span class="initializer"> = <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong></span>
   </span><br>)</div>

  <p class="para rdfs-comment">
   Constructs EventHttpConnection object.
  </p>
 </div>

 <div class="refsect1 parameters" id="refsect1-eventhttpconnection.construct-parameters">
  <h3 class="title">Parameters</h3>
  <dl>
   
    <dt>
     <code class="parameter">base</code>
    </dt>
    <dd>
     <p class="para">
      Associated event base.
     </p>
    </dd>
   
   
    <dt>
     <code class="parameter">dns_base</code>
    </dt>
    <dd>
     <p class="para">
      If
      <code class="parameter">dns_base</code>
      is <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong>, hostname resolution will block.
     </p>
    </dd>
   
   
    <dt>
     <code class="parameter">address</code>
    </dt>
    <dd>
     <p class="para">
      The address to connect to.
     </p>
    </dd>
   
   
    <dt>
     <code class="parameter">port</code>
    </dt>
    <dd>
     <p class="para">
      The port to connect to.
     </p>
    </dd>
   
   
    <dt>
     <code class="parameter">ctx</code>
    </dt>
    <dd>
     <p class="para">
      <span class="classname"><a href="class.eventsslcontext.php" class="classname">EventSslContext</a></span>
      class object. Enables OpenSSL.
     </p>
     <blockquote class="note"><p><strong class="note">Note</strong>: 
      <p class="para">
       This parameter is available only if
       <code class="literal">Event</code>
       is compiled with OpenSSL support and only with
       <code class="literal">Libevent
        2.1.0-alpha</code>
       and higher.
      </p>
     </p></blockquote>
    </dd>
   
  </dl>
 </div>

 <div class="refsect1 changelog" id="refsect1-eventhttpconnection.construct-changelog">
  <h3 class="title">Changelog</h3>
  <table class="doctable informaltable">
   
    <thead>
     <tr>
      <th>Version</th>
      <th>Description</th>
     </tr>

    </thead>

    <tbody class="tbody">
     <tr>
      <td>PECL event 1.9.0</td>
      <td>
       OpenSSL support (<code class="parameter">ctx</code>) added.
      </td>
     </tr>

    </tbody>
   
  </table>

 </div>

</div><?php manual_footer($setup); ?>