<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/transports.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'en',
  ),
  'this' => 
  array (
    0 => 'transports.unix.php',
    1 => 'Unix Domain: Unix and UDG',
    2 => 'Unix Domain: Unix and UDG',
  ),
  'up' => 
  array (
    0 => 'transports.php',
    1 => 'List of Supported Socket Transports',
  ),
  'prev' => 
  array (
    0 => 'transports.inet.php',
    1 => 'Internet Domain: TCP, UDP, SSL, and TLS',
  ),
  'next' => 
  array (
    0 => 'types.comparisons.php',
    1 => 'PHP type comparison tables',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'appendices/transports.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="transports.unix" class="section">
  <h2 class="title">Unix Domain: Unix and UDG</h2>
  <p class="simpara">
   <code class="literal">unix://</code> and
   <code class="literal">udg://</code>.
  </p>

  <ul class="itemizedlist">
   <li class="listitem"><span class="simpara"><code class="literal">unix:///tmp/mysock</code></span></li>
   <li class="listitem"><span class="simpara"><code class="literal">udg:///tmp/mysock</code></span></li>
  </ul>

  <p class="simpara">
   <code class="literal">unix://</code> provides access to a socket stream
   connection in the Unix domain. <code class="literal">udg://</code> provides
   an alternate transport to a Unix domain socket using the user datagram
   protocol.
  </p>

  <p class="simpara">
   Unix domain sockets, unlike Internet domain sockets, do not expect
   a port number.  In the case of <span class="function"><a href="function.fsockopen.php" class="function">fsockopen()</a></span> the
   <code class="parameter">portno</code> parameter should be set to 0.
  </p>

  <blockquote class="note"><p><strong class="note">Note</strong>: 
   <span class="simpara">
    Unix domain sockets are not supported on Windows.
   </span>
  </p></blockquote>
 </div><?php manual_footer($setup); ?>