Sophie

Sophie

distrib > Mageia > 4 > x86_64 > by-pkgid > c3732731228538f6126cae930c10ad71 > files > 180

python-pyro4-4.21-3.mga4.noarch.rpm



<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">


<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    
    <title>Pyro4.naming — Pyro name server &mdash; Pyro 4.21 documentation</title>
    
    <link rel="stylesheet" href="../_static/default.css" type="text/css" />
    <link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
    
    <script type="text/javascript">
      var DOCUMENTATION_OPTIONS = {
        URL_ROOT:    '../',
        VERSION:     '4.21',
        COLLAPSE_INDEX: false,
        FILE_SUFFIX: '.html',
        HAS_SOURCE:  true
      };
    </script>
    <script type="text/javascript" src="../_static/jquery.js"></script>
    <script type="text/javascript" src="../_static/underscore.js"></script>
    <script type="text/javascript" src="../_static/doctools.js"></script>
    <link rel="top" title="Pyro 4.21 documentation" href="../index.html" />
    <link rel="up" title="Pyro4 library API" href="../api.html" />
    <link rel="next" title="Pyro4.util — Utilities" href="util.html" />
    <link rel="prev" title="Pyro4.core — core Pyro logic" href="core.html" /> 
  </head>
  <body>
    <div class="related">
      <h3>Navigation</h3>
      <ul>
        <li class="right" style="margin-right: 10px">
          <a href="../genindex.html" title="General Index"
             accesskey="I">index</a></li>
        <li class="right" >
          <a href="util.html" title="Pyro4.util — Utilities"
             accesskey="N">next</a> |</li>
        <li class="right" >
          <a href="core.html" title="Pyro4.core — core Pyro logic"
             accesskey="P">previous</a> |</li>
        <li><a href="../index.html">Pyro 4.21 documentation</a> &raquo;</li>
          <li><a href="../api.html" accesskey="U">Pyro4 library API</a> &raquo;</li> 
      </ul>
    </div>  

    <div class="document">
      <div class="documentwrapper">
        <div class="bodywrapper">
          <div class="body">
            
  <div class="section" id="module-Pyro4.naming">
<span id="pyro4-naming-pyro-name-server"></span><h1><a class="reference internal" href="#module-Pyro4.naming" title="Pyro4.naming"><tt class="xref py py-mod docutils literal"><span class="pre">Pyro4.naming</span></tt></a> &#8212; Pyro name server<a class="headerlink" href="#module-Pyro4.naming" title="Permalink to this headline">¶</a></h1>
<p>Name Server and helper functions.</p>
<dl class="function">
<dt id="Pyro4.naming.locateNS">
<tt class="descclassname">Pyro4.naming.</tt><tt class="descname">locateNS</tt><big>(</big><em>host=None</em>, <em>port=None</em><big>)</big><a class="headerlink" href="#Pyro4.naming.locateNS" title="Permalink to this definition">¶</a></dt>
<dd><p>Get a proxy for a name server somewhere in the network.</p>
</dd></dl>

<dl class="function">
<dt id="Pyro4.naming.resolve">
<tt class="descclassname">Pyro4.naming.</tt><tt class="descname">resolve</tt><big>(</big><em>uri</em><big>)</big><a class="headerlink" href="#Pyro4.naming.resolve" title="Permalink to this definition">¶</a></dt>
<dd><p>Resolve a &#8216;magic&#8217; uri (PYRONAME) into the direct PYRO uri.</p>
</dd></dl>

<dl class="function">
<dt id="Pyro4.naming.startNS">
<tt class="descclassname">Pyro4.naming.</tt><tt class="descname">startNS</tt><big>(</big><em>host=None</em>, <em>port=None</em>, <em>enableBroadcast=True</em>, <em>bchost=None</em>, <em>bcport=None</em>, <em>unixsocket=None</em>, <em>nathost=None</em>, <em>natport=None</em><big>)</big><a class="headerlink" href="#Pyro4.naming.startNS" title="Permalink to this definition">¶</a></dt>
<dd><p>utility fuction to quickly get a Name server daemon to be used in your own event loops.
Returns (nameserverUri, nameserverDaemon, broadcastServer).</p>
</dd></dl>

<dl class="class">
<dt id="Pyro4.naming.NameServer">
<em class="property">class </em><tt class="descclassname">Pyro4.naming.</tt><tt class="descname">NameServer</tt><a class="headerlink" href="#Pyro4.naming.NameServer" title="Permalink to this definition">¶</a></dt>
<dd><p>Pyro name server. Provides a simple flat name space to map logical object names to Pyro URIs.</p>
<dl class="method">
<dt id="Pyro4.naming.NameServer.list">
<tt class="descname">list</tt><big>(</big><em>prefix=None</em>, <em>regex=None</em><big>)</big><a class="headerlink" href="#Pyro4.naming.NameServer.list" title="Permalink to this definition">¶</a></dt>
<dd><p>Retrieve the registered items as a dictionary name-to-URI. The URIs
in the resulting dict are strings, not URI objects.
You can filter by prefix or by regex.</p>
</dd></dl>

<dl class="method">
<dt id="Pyro4.naming.NameServer.lookup">
<tt class="descname">lookup</tt><big>(</big><em>name</em><big>)</big><a class="headerlink" href="#Pyro4.naming.NameServer.lookup" title="Permalink to this definition">¶</a></dt>
<dd><p>Lookup the given name, returns an URI if found</p>
</dd></dl>

<dl class="method">
<dt id="Pyro4.naming.NameServer.ping">
<tt class="descname">ping</tt><big>(</big><big>)</big><a class="headerlink" href="#Pyro4.naming.NameServer.ping" title="Permalink to this definition">¶</a></dt>
<dd><p>A simple test method to check if the name server is running correctly.</p>
</dd></dl>

<dl class="method">
<dt id="Pyro4.naming.NameServer.register">
<tt class="descname">register</tt><big>(</big><em>name</em>, <em>uri</em>, <em>safe=False</em><big>)</big><a class="headerlink" href="#Pyro4.naming.NameServer.register" title="Permalink to this definition">¶</a></dt>
<dd><p>Register a name with an URI. If safe is true, name cannot be registered twice.
The uri can be a string or an URI object.</p>
</dd></dl>

<dl class="method">
<dt id="Pyro4.naming.NameServer.remove">
<tt class="descname">remove</tt><big>(</big><em>name=None</em>, <em>prefix=None</em>, <em>regex=None</em><big>)</big><a class="headerlink" href="#Pyro4.naming.NameServer.remove" title="Permalink to this definition">¶</a></dt>
<dd><p>Remove a registration. returns the number of items removed.</p>
</dd></dl>

</dd></dl>

</div>


          </div>
        </div>
      </div>
      <div class="sphinxsidebar">
        <div class="sphinxsidebarwrapper">
            <p class="logo"><a href="../index.html">
              <img class="logo" src="../_static/pyro.png" alt="Logo"/>
            </a></p>
  <h4>Previous topic</h4>
  <p class="topless"><a href="core.html"
                        title="previous chapter"><tt class="docutils literal"><span class="pre">Pyro4.core</span></tt> &#8212; core Pyro logic</a></p>
  <h4>Next topic</h4>
  <p class="topless"><a href="util.html"
                        title="next chapter"><tt class="docutils literal"><span class="pre">Pyro4.util</span></tt> &#8212; Utilities</a></p>
<div id="searchbox" style="display: none">
  <h3>Quick search</h3>
    <form class="search" action="../search.html" method="get">
      <input type="text" name="q" />
      <input type="submit" value="Go" />
      <input type="hidden" name="check_keywords" value="yes" />
      <input type="hidden" name="area" value="default" />
    </form>
    <p class="searchtip" style="font-size: 90%">
    Enter search terms or a module, class or function name.
    </p>
</div>
<script type="text/javascript">$('#searchbox').show(0);</script>
        </div>
      </div>
      <div class="clearer"></div>
    </div>
    <div class="related">
      <h3>Navigation</h3>
      <ul>
        <li class="right" style="margin-right: 10px">
          <a href="../genindex.html" title="General Index"
             >index</a></li>
        <li class="right" >
          <a href="util.html" title="Pyro4.util — Utilities"
             >next</a> |</li>
        <li class="right" >
          <a href="core.html" title="Pyro4.core — core Pyro logic"
             >previous</a> |</li>
        <li><a href="../index.html">Pyro 4.21 documentation</a> &raquo;</li>
          <li><a href="../api.html" >Pyro4 library API</a> &raquo;</li> 
      </ul>
    </div>
    <div class="footer">
        &copy; Copyright Irmen de Jong.
      Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.1.3.
    </div>
  </body>
</html>