Sophie

Sophie

distrib > Mageia > 4 > x86_64 > by-pkgid > f800694edefe91adea2624f711a41a2d > files > 3488

php-manual-en-5.5.7-1.mga4.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>Maps global id on virtual local id</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="function.hw-insertobject.html">hw_InsertObject</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="function.hw-modifyobject.html">hw_Modifyobject</a></div>
 <div class="up"><a href="ref.hw.html">Hyperwave Functions</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="function.hw-mapid" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">hw_mapid</h1>
  <p class="verinfo">(PHP 4)</p><p class="refpurpose"><span class="refname">hw_mapid</span> &mdash; <span class="dc-title">Maps global id on virtual local id</span></p>

 </div>
 <div class="refsect1 description" id="refsect1-function.hw-mapid-description">
  <h3 class="title">Description</h3>
  <div class="methodsynopsis dc-description">
   <span class="type">int</span> <span class="methodname"><strong>hw_mapid</strong></span>
    ( <span class="methodparam"><span class="type">int</span> <code class="parameter">$connection</code></span>
   , <span class="methodparam"><span class="type">int</span> <code class="parameter">$server_id</code></span>
   , <span class="methodparam"><span class="type">int</span> <code class="parameter">$object_id</code></span>
   )</div>

  <p class="para rdfs-comment">
   Maps a global object id on any hyperwave server, even those you did not
   connect to with  <span class="function"><a href="function.hw-connect.html" class="function">hw_connect()</a></span>, onto a virtual object id.
  </p>
  <p class="para">
   This virtual object id can then be used as any other object id, e.g. to
   obtain the object record with  <span class="function"><a href="function.hw-getobject.html" class="function">hw_getobject()</a></span>.
  </p>
  <p class="para">
   Note: In order to use this function you will have to set the F_DISTRIBUTED
   flag, which can currently only be set at compile time in hg_comm.c. It is
   not set by default. Read the comment at the beginning of hg_comm.c
  </p>
 </div>

 <div class="refsect1 parameters" id="refsect1-function.hw-mapid-parameters">
  <h3 class="title">Parameters</h3>
  <p class="para">
   <dl>

    <dt>

     <span class="term"><em><code class="parameter">connection</code></em></span>
     <dd>

      <p class="para">
       The connection identifier.
      </p>
     </dd>

    </dt>

    <dt>

     <span class="term"><em><code class="parameter">server_id</code></em></span>
     <dd>

      <p class="para">
       The server id is the first part of the global object id (GOid) of the
       object which is actually the IP number as an integer.
      </p>
     </dd>

    </dt>

    <dt>

     <span class="term"><em><code class="parameter">object_id</code></em></span>
     <dd>

      <p class="para">
       The object identifier.
      </p>
     </dd>

    </dt>

   </dl>

  </p>
 </div>

 <div class="refsect1 returnvalues" id="refsect1-function.hw-mapid-returnvalues">
  <h3 class="title">Return Values</h3>
  <p class="para">
   Returns the virtual object id.
  </p>
 </div>

</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="function.hw-insertobject.html">hw_InsertObject</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="function.hw-modifyobject.html">hw_Modifyobject</a></div>
 <div class="up"><a href="ref.hw.html">Hyperwave Functions</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>