<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/class.zmqdevice.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'de',
  ),
  'this' => 
  array (
    0 => 'zmqdevice.construct.php',
    1 => 'ZMQDevice::__construct',
    2 => 'Construct a new device',
  ),
  'up' => 
  array (
    0 => 'class.zmqdevice.php',
    1 => 'ZMQDevice',
  ),
  'prev' => 
  array (
    0 => 'class.zmqdevice.php',
    1 => 'ZMQDevice',
  ),
  'next' => 
  array (
    0 => 'zmqdevice.getidletimeout.php',
    1 => 'ZMQDevice::getIdleTimeout',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/zmq/zmqdevice/construct.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="zmqdevice.construct" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">ZMQDevice::__construct</h1>
  <p class="verinfo">(PECL zmq &gt;= 0.5.0)</p><p class="refpurpose"><span class="refname">ZMQDevice::__construct</span> &mdash; <span class="dc-title">Construct a new device</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-zmqdevice.construct-description">
  <h3 class="title">Beschreibung</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="methodname"><strong>ZMQDevice::__construct</strong></span>(<span class="methodparam"><span class="type"><a href="class.zmqsocket.php" class="type ZMQSocket">ZMQSocket</a></span> <code class="parameter">$frontend</code></span>, <span class="methodparam"><span class="type"><a href="class.zmqsocket.php" class="type ZMQSocket">ZMQSocket</a></span> <code class="parameter">$backend</code></span>, <span class="methodparam"><span class="type"><a href="class.zmqsocket.php" class="type ZMQSocket">ZMQSocket</a></span> <code class="parameter">$listener</code><span class="initializer"> = ?</span></span>)</div>

  <p class="para rdfs-comment">
   &quot;ØMQ devices can do intermediation of addresses, services, queues, or any other abstraction you care to define above the message and socket layers.&quot; -- zguide
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-zmqdevice.construct-parameters">
  <h3 class="title">Parameter-Liste</h3>
  <dl>
   
    <dt><code class="parameter">frontend</code></dt>
    <dd>
     <p class="para">
      Frontend parameter for the devices. Usually where there messages
      are coming.
     </p>
    </dd>
   
   
    <dt><code class="parameter">backend</code></dt>
    <dd>
     <p class="para">
       Backend parameter for the devices. Usually where there messages
       going to.
     </p>
    </dd>
   
   
    <dt><code class="parameter">listener</code></dt>
    <dd>
     <p class="para">
       Listener socket, which receives a copy of all messages going both directions.
       The type of this socket should be SUB, PULL or DEALER.
     </p>
    </dd>
   
  </dl>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-zmqdevice.construct-returnvalues">
  <h3 class="title">Rückgabewerte</h3>
  <p class="para">
   Call to this method will prepare the device. Usually devices are very long
   running processes so running this method from interactive script is not recommended. This
   method throw ZMQDeviceException if the device cannot be started.
  </p>
 </div>



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