Sophie

Sophie

distrib > Fedora > 14 > x86_64 > media > updates > by-pkgid > 71d40963b505df4524269198e237b3e3 > files > 53

virtuoso-opensource-doc-6.1.4-2.fc14.noarch.rpm

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
 <head profile="http://internetalchemy.org/2003/02/profile">
  <link rel="foaf" type="application/rdf+xml" title="FOAF" href="http://www.openlinksw.com/dataspace/uda/about.rdf" />
  <link rel="schema.dc" href="http://purl.org/dc/elements/1.1/" />
  <meta name="dc.title" content="7. Data Access Interfaces" />
  <meta name="dc.subject" content="7. Data Access Interfaces" />
  <meta name="dc.creator" content="OpenLink Software Documentation Team ;&#10;" />
  <meta name="dc.copyright" content="OpenLink Software, 1999 - 2009" />
  <link rel="top" href="index.html" title="OpenLink Virtuoso Universal Server: Documentation" />
  <link rel="search" href="/doc/adv_search.vspx" title="Search OpenLink Virtuoso Universal Server: Documentation" />
  <link rel="parent" href="accessinterfaces.html" title="Chapter Contents" />
  <link rel="prev" href="inprocess.html" title="Virtuoso In-Process Client" />
  <link rel="next" href="dataccessclientsconfailandbalance.html" title="Virtuoso Data Access Clients Connection Fail over and Load Balancing Support" />
  <link rel="shortcut icon" href="../images/misc/favicon.ico" type="image/x-icon" />
  <link rel="stylesheet" type="text/css" href="doc.css" />
  <link rel="stylesheet" type="text/css" href="/doc/translation.css" />
  <title>7. Data Access Interfaces</title>
  <meta http-equiv="Content-Type" content="text/xhtml; charset=UTF-8" />
  <meta name="author" content="OpenLink Software Documentation Team ;&#10;" />
  <meta name="copyright" content="OpenLink Software, 1999 - 2009" />
  <meta name="keywords" content="" />
  <meta name="GENERATOR" content="OpenLink XSLT Team" />
 </head>
 <body>
  <div id="header">
    <a name="accintudsockets" />
    <img src="../images/misc/logo.jpg" alt="" />
    <h1>7. Data Access Interfaces</h1>
  </div>
  <div id="navbartop">
   <div>
      <a class="link" href="accessinterfaces.html">Chapter Contents</a> | <a class="link" href="inprocess.html" title="Virtuoso In-Process Client">Prev</a> | <a class="link" href="dataccessclientsconfailandbalance.html" title="Virtuoso Data Access Clients Connection Fail over and Load Balancing Support">Next</a>
   </div>
  </div>
  <div id="currenttoc">
   <form method="post" action="/doc/adv_search.vspx">
    <div class="search">Keyword Search: <br />
        <input type="text" name="q" /> <input type="submit" name="go" value="Go" />
    </div>
   </form>
   <div>
      <a href="http://www.openlinksw.com/">www.openlinksw.com</a>
   </div>
   <div>
      <a href="http://docs.openlinksw.com/">docs.openlinksw.com</a>
   </div>
    <br />
   <div>
      <a href="index.html">Book Home</a>
   </div>
    <br />
   <div>
      <a href="contents.html">Contents</a>
   </div>
   <div>
      <a href="preface.html">Preface</a>
   </div>
    <br />
   <div class="selected">
      <a href="accessinterfaces.html">Data Access Interfaces</a>
   </div>
    <br />
   <div>
      <a href="virtclientref.html">ADO.Net Data Provider</a>
   </div>
   <div>
      <a href="isql.html">Interactive SQL Utility</a>
   </div>
   <div>
      <a href="odbcimplementation.html">Virtuoso Driver for ODBC</a>
   </div>
   <div>
      <a href="VirtuosoDriverJDBC.html">Virtuoso Driver for JDBC</a>
   </div>
   <div>
      <a href="virtoledb.html">OLE DB Provider for Virtuoso</a>
   </div>
   <div>
      <a href="inprocess.html">Virtuoso In-Process Client</a>
   </div>
   <div class="selected">
      <a href="accintudsockets.html">Unix Domain Socket Connections</a>
   </div>
   <div>
      <a href="dataccessclientsconfailandbalance.html">Virtuoso Data Access Clients Connection Fail over and Load Balancing Support</a>
   </div>
    <br />
  </div>
  <div id="text">
    <a name="accintudsockets" />
    <h2>7.7. Unix Domain Socket Connections</h2>

  <p>Client connections to Virtuoso servers running on the same Unix or Linux 
  server host can benefit from faster connections utilizing Unix Domain Sockets.  
  This does not apply to Windows platforms.</p>

 <p>By default Virtuoso will open a Unix Domain listen socket in addition 
 to the TCP listen socket.  The name of the UD socket will be:</p>

<div>
      <pre class="programlisting">
/tmp/virt-&lt;tcp-listen-port&gt;
</pre>
    </div>

  <p>When a client attempts to connect to the Virtuoso server using the 
  specific address <span class="computeroutput">localhost</span> it will 
  first try connecting to the UD socket, failing that it will silently revert 
  to the TCP socket.</p>

    <p>Unix Domain Socket connections only work if 
	<span class="computeroutput">localhost</span> is explicitly specified or the 
	host is unspecified which defaults to a localhost connection.  
	UD socket connections will <strong>not</strong> work to any other address 
	such as:</p>

<div>
      <pre class="programlisting">
virt.mydomain.com:1111
127.0.0.1:1111
</pre>
    </div>

  <p>regardless of whether that is the localhost or not.</p>

  <p>Unix Domain sockets can be disabled using the 
  <span class="computeroutput">DisableUnixSocket</span> parameter in the 
  Parameters section of the Virtuoso INI file.</p>

  <p>The <a href="">sys_connected_server_address()</a>
  function can be used to check the connection type.  It will return </p>
  <div>
      <pre class="programlisting">
/tmp/virt-&lt;tcp-listen-port&gt;
</pre>
    </div>
<p>for connections using UD sockets.</p>

<table border="0" width="90%" id="navbarbottom">
    <tr>
        <td align="left" width="33%">
          <a href="inprocess.html" title="Virtuoso In-Process Client">Previous</a>
          <br />Virtuoso In-Process Client</td>
     <td align="center" width="34%">
          <a href="accessinterfaces.html">Chapter Contents</a>
     </td>
        <td align="right" width="33%">
          <a href="dataccessclientsconfailandbalance.html" title="Virtuoso Data Access Clients Connection Fail over and Load Balancing Support">Next</a>
          <br />Virtuoso Data Access Clients Connection Fail over and Load Balancing Support</td>
    </tr>
    </table>
  </div>
  <div id="footer">
    <div>Copyright© 1999 - 2009 OpenLink Software All rights reserved.</div>
   <div id="validation">
    <a href="http://validator.w3.org/check/referer">
        <img src="http://www.w3.org/Icons/valid-xhtml10" alt="Valid XHTML 1.0!" height="31" width="88" />
    </a>
    <a href="http://jigsaw.w3.org/css-validator/">
        <img src="http://jigsaw.w3.org/css-validator/images/vcss" alt="Valid CSS!" height="31" width="88" />
    </a>
   </div>
  </div>
 </body>
</html>