Sophie

Sophie

distrib > Mageia > 7 > aarch64 > by-pkgid > 2b917e0437961edec048f1d15e2d7449 > files > 2205

php-manual-en-7.2.11-1.mga7.noarch.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Constructs EventHttpConnection object</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="class.eventhttpconnection.html">EventHttpConnection</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="eventhttpconnection.getbase.html">EventHttpConnection::getBase</a></div>
 <div class="up"><a href="class.eventhttpconnection.html">EventHttpConnection</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><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>
    ( <span class="methodparam">
    <span class="type"><a href="class.eventbase.html" class="type EventBase">EventBase</a></span>
     <code class="parameter">$base</code>
   </span>
   , <span class="methodparam">
    <span class="type"><a href="class.eventdnsbase.html" class="type EventDnsBase">EventDnsBase</a></span>
     <code class="parameter">$dns_base</code>
   </span>
   , <span class="methodparam">
    <span class="type">string</span>
     <code class="parameter">$address</code>
   </span>
   , <span class="methodparam">
    <span class="type">int</span>
     <code class="parameter">$port</code>
   </span>
   [, <span class="methodparam">
    <span class="type"><a href="class.eventsslcontext.html" class="type EventSslContext">EventSslContext</a></span>
     <code class="parameter">$ctx</code>
    <span class="initializer"> = <strong><code>NULL</code></strong></span>
   </span>
  ] )</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>NULL</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">
      <a href="class.eventsslcontext.html" class="classname">EventSslContext</a>
      class object. Enables OpenSSL.
     </p>
     <blockquote class="note"><p><strong class="note">Note</strong>: 
      <p class="para">
       This parameter is available only if
       <em>Event</em>
       is compiled with OpenSSL support and only with
       <em>Libevent
        2.1.0-alpha</em>
       and higher.
      </p>
     </p></blockquote>
    </dd>

   
  </dl>

 </div>

 <div class="refsect1 returnvalues" id="refsect1-eventhttpconnection.construct-returnvalues">
  <h3 class="title">Return Values</h3>
  <p class="para">
   Returns
   <a href="class.eventhttpconnection.html" class="classname">EventHttpConnection</a>
   object.
  </p>
 </div>

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

     </thead>

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

     </tbody>
    
   </table>

  </p>
 </div>

</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="class.eventhttpconnection.html">EventHttpConnection</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="eventhttpconnection.getbase.html">EventHttpConnection::getBase</a></div>
 <div class="up"><a href="class.eventhttpconnection.html">EventHttpConnection</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>