Sophie

Sophie

distrib > Mandriva > 2007.0 > x86_64 > media > main-release > by-pkgid > 926d2d1e3111287cee1b0a4fad4fb4f6 > files > 205

lib64dbus-1_3-devel-0.92-6mdv2007.0.x86_64.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>DBusServer implementations for UNIX</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.2.15 -->
<center>
<a class="qindex" href="index.html">Main Page</a> &nbsp; <a class="qindex" href="modules.html">Modules</a> &nbsp; <a class="qindex" href="annotated.html">Data Structures</a> &nbsp; <a class="qindex" href="files.html">File List</a> &nbsp; <a class="qindex" href="functions.html">Data Fields</a> &nbsp; <a class="qindex" href="pages.html">Related Pages</a> &nbsp; </center>
<hr><h1>DBusServer implementations for UNIX<br>
<small>
[<a class="el" href="group__DBusInternals.html">D-BUS internal implementation details</a>]</small>
</h1>Implementation details of <a class="el" href="structDBusServer.html">DBusServer</a> on UNIX. 
<a href="#_details">More...</a><table border=0 cellpadding=0 cellspacing=0>
<tr><td colspan=2><br><h2>Data Structures</h2></td></tr>
<tr><td nowrap align=right valign=top>struct &nbsp;</td><td valign=bottom><a class="el" href="structDBusServerUnix.html">DBusServerUnix</a></td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Implementation details of DBusServerUnix.</em> <a href="structDBusServerUnix.html#_details">More...</a><em></em></font><br><br></td></tr>
<tr><td colspan=2><br><h2>Typedefs</h2></td></tr>
<tr><td nowrap align=right valign=top><a name="a0" doxytag="DBusServerUnix::DBusServerUnix"></a>
typedef DBusServerUnix&nbsp;</td><td valign=bottom><a class="el" href="group__DBusServerUnix.html#a0">DBusServerUnix</a></td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Opaque object representing a Unix server implementation.</em></font><br><br></td></tr>
<tr><td colspan=2><br><h2>Functions</h2></td></tr>
<tr><td nowrap align=right valign=top><a class="el" href="structDBusServer.html">DBusServer</a> *&nbsp;</td><td valign=bottom><a class="el" href="group__DBusServerUnix.html#a6">_dbus_server_new_for_fd</a> (int <a class="el" href="structDBusServerUnix.html#m1">fd</a>, const <a class="el" href="structDBusString.html">DBusString</a> *address)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Creates a new server listening on the given file descriptor.</em> <a href="#a6">More...</a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top><a class="el" href="structDBusServer.html">DBusServer</a> *&nbsp;</td><td valign=bottom><a class="el" href="group__DBusServerUnix.html#a7">_dbus_server_new_for_domain_socket</a> (const char *path, <a class="el" href="group__DBusTypes.html#a2">dbus_bool_t</a> abstract, <a class="el" href="structDBusError.html">DBusError</a> *error)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Creates a new server listening on the given Unix domain socket.</em> <a href="#a7">More...</a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top><a class="el" href="structDBusServer.html">DBusServer</a> *&nbsp;</td><td valign=bottom><a class="el" href="group__DBusServerUnix.html#a8">_dbus_server_new_for_tcp_socket</a> (const char *host, <a class="el" href="group__DBusTypes.html#a3">dbus_uint32_t</a> port, <a class="el" href="structDBusError.html">DBusError</a> *error)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Creates a new server listening on the given hostname and port.</em> <a href="#a8">More...</a><em></em></font><br><br></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
Implementation details of <a class="el" href="structDBusServer.html">DBusServer</a> on UNIX.
<p>

<p>
 <hr><h2>Function Documentation</h2>
<a name="a7" doxytag="dbus-server-unix.c::_dbus_server_new_for_domain_socket"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> <a class="el" href="structDBusServer.html">DBusServer</a>* _dbus_server_new_for_domain_socket </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">const char *&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>path</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap><a class="el" href="group__DBusTypes.html#a2">dbus_bool_t</a>&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>abstract</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap><a class="el" href="structDBusError.html">DBusError</a> *&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>error</em></td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Creates a new server listening on the given Unix domain socket.
<p>
<dl compact><dt><b>
Parameters: </b><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em>path</em>&nbsp;</td><td>
the path for the domain socket. </td></tr>
<tr><td valign=top><em>abstract</em>&nbsp;</td><td>
<a class="el" href="group__DBusMacros.html#a2">TRUE</a> to use abstract socket namespace </td></tr>
<tr><td valign=top><em>error</em>&nbsp;</td><td>
location to store reason for failure. </td></tr>
</table>
</dl><dl compact><dt><b>
Returns: </b><dd>
the new server, or <a class="el" href="group__DBusMacros.html#a4">NULL</a> on failure. </dl>
<p>
Definition at line <a class="el" href="dbus-server-unix_8c-source.html#l00274">274</a> of file <a class="el" href="dbus-server-unix_8c-source.html">dbus-server-unix.c</a>.
<p>
References <a class="el" href="dbus-server-unix_8c-source.html#l00054">socket_name</a>.    </td>
  </tr>
</table>
<a name="a6" doxytag="dbus-server-unix.c::_dbus_server_new_for_fd"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> <a class="el" href="structDBusServer.html">DBusServer</a>* _dbus_server_new_for_fd </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">int&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>fd</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>const <a class="el" href="structDBusString.html">DBusString</a> *&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>address</em></td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Creates a new server listening on the given file descriptor.
<p>
The file descriptor should be nonblocking (use <a class="el" href="group__DBusInternalsUtils.html#a103">_dbus_set_fd_nonblocking</a>() to make it so). The file descriptor should be listening for connections, that is, listen() should have been successfully invoked on it. The server will use accept() to accept new client connections.<dl compact><dt><b>
Parameters: </b><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em>fd</em>&nbsp;</td><td>
the file descriptor. </td></tr>
<tr><td valign=top><em>address</em>&nbsp;</td><td>
the server's address </td></tr>
</table>
</dl><dl compact><dt><b>
Returns: </b><dd>
the new server, or <a class="el" href="group__DBusMacros.html#a4">NULL</a> if no memory. </dl>
<p>
Definition at line <a class="el" href="dbus-server-unix_8c-source.html#l00221">221</a> of file <a class="el" href="dbus-server-unix_8c-source.html">dbus-server-unix.c</a>.
<p>
References <a class="el" href="dbus-server-unix_8c-source.html#l00051">base</a>, <a class="el" href="dbus-server-unix_8c-source.html#l00052">fd</a>, and <a class="el" href="dbus-server-unix_8c-source.html#l00053">watch</a>.    </td>
  </tr>
</table>
<a name="a8" doxytag="dbus-server-unix.c::_dbus_server_new_for_tcp_socket"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> <a class="el" href="structDBusServer.html">DBusServer</a>* _dbus_server_new_for_tcp_socket </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">const char *&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>host</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap><a class="el" href="group__DBusTypes.html#a3">dbus_uint32_t</a>&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>port</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap><a class="el" href="structDBusError.html">DBusError</a> *&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>error</em></td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Creates a new server listening on the given hostname and port.
<p>
If the hostname is NULL, listens on localhost.<dl compact><dt><b>
Parameters: </b><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em>host</em>&nbsp;</td><td>
the hostname to listen on. </td></tr>
<tr><td valign=top><em>port</em>&nbsp;</td><td>
the port to listen on. </td></tr>
<tr><td valign=top><em>error</em>&nbsp;</td><td>
location to store reason for failure. </td></tr>
</table>
</dl><dl compact><dt><b>
Returns: </b><dd>
the new server, or <a class="el" href="group__DBusMacros.html#a4">NULL</a> on failure. </dl>
<p>
Definition at line <a class="el" href="dbus-server-unix_8c-source.html#l00352">352</a> of file <a class="el" href="dbus-server-unix_8c-source.html">dbus-server-unix.c</a>.    </td>
  </tr>
</table>
<hr><address align="right"><small>Generated on Wed Jun 9 05:01:28 2004 for D-BUS by
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border=0 
width=110 height=53></a>1.2.15 </small></address>
</body>
</html>