| Current File : //usr/share/doc/dbus/api/group__DBusTransport.html |
<!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/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>D-Bus: DBusTransport object</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td style="padding-left: 0.5em;">
<div id="projectname">D-Bus
 <span id="projectnumber">1.8.20</span>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- Generated by Doxygen 1.7.6.1 -->
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main Page</span></a></li>
<li><a href="pages.html"><span>Related Pages</span></a></li>
<li><a href="modules.html"><span>Modules</span></a></li>
<li><a href="annotated.html"><span>Data Structures</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
</ul>
</div>
</div>
<div class="header">
<div class="summary">
<a href="#typedef-members">Typedefs</a> |
<a href="#func-members">Functions</a> </div>
<div class="headertitle">
<div class="title">DBusTransport object</div> </div>
<div class="ingroups"><a class="el" href="group__DBusInternals.html">D-Bus secret internal implementation details</a></div></div><!--header-->
<div class="contents">
<p>"Backend" for a <a class="el" href="structDBusConnection.html" title="Implementation details of DBusConnection.">DBusConnection</a>.
<a href="#details">More...</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="typedef-members"></a>
Typedefs</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">typedef struct <a class="el" href="structDBusTransport.html">DBusTransport</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__DBusTransport.html#gabe3ed88c096cc85cecebd4310a97ba58">DBusTransport</a></td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Opaque object representing a way message stream. <a href="#gabe3ed88c096cc85cecebd4310a97ba58"></a><br/></td></tr>
<tr><td colspan="2"><h2><a name="func-members"></a>
Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__DBusTypes.html#ga39c9cb0f3a2a8ad6f55cc4855d035349">dbus_bool_t</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__DBusTransport.html#gaa5ece78ea671fe9d9ed17fc6920c9d09">_dbus_transport_init_base</a> (<a class="el" href="structDBusTransport.html">DBusTransport</a> *transport, const <a class="el" href="structDBusTransportVTable.html">DBusTransportVTable</a> *vtable, const <a class="el" href="structDBusString.html">DBusString</a> *server_guid, const <a class="el" href="structDBusString.html">DBusString</a> *address)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Initializes the base class members of <a class="el" href="structDBusTransport.html" title="Object representing a transport such as a socket.">DBusTransport</a>. <a href="#gaa5ece78ea671fe9d9ed17fc6920c9d09"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__DBusTransport.html#gaf27a2aceb062921f3915acb1491a646a">_dbus_transport_finalize_base</a> (<a class="el" href="structDBusTransport.html">DBusTransport</a> *transport)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Finalizes base class members of <a class="el" href="structDBusTransport.html" title="Object representing a transport such as a socket.">DBusTransport</a>. <a href="#gaf27a2aceb062921f3915acb1491a646a"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="structDBusTransport.html">DBusTransport</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__DBusTransport.html#ga0893897223056c89f33b2641a7b21cf8">_dbus_transport_open</a> (<a class="el" href="structDBusAddressEntry.html">DBusAddressEntry</a> *entry, <a class="el" href="structDBusError.html">DBusError</a> *error)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Try to open a new transport for the given address entry. <a href="#ga0893897223056c89f33b2641a7b21cf8"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="structDBusTransport.html">DBusTransport</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__DBusTransport.html#ga31d6dbc864c9ea643d72521bbb1b7c56">_dbus_transport_ref</a> (<a class="el" href="structDBusTransport.html">DBusTransport</a> *transport)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Increments the reference count for the transport. <a href="#ga31d6dbc864c9ea643d72521bbb1b7c56"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__DBusTransport.html#gab7c53c32a2320c81aae8ce4345762e73">_dbus_transport_unref</a> (<a class="el" href="structDBusTransport.html">DBusTransport</a> *transport)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Decrements the reference count for the transport. <a href="#gab7c53c32a2320c81aae8ce4345762e73"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__DBusTransport.html#ga78444dd8f6c6d6b429433ad81c3e318a">_dbus_transport_disconnect</a> (<a class="el" href="structDBusTransport.html">DBusTransport</a> *transport)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Closes our end of the connection to a remote application. <a href="#ga78444dd8f6c6d6b429433ad81c3e318a"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__DBusTypes.html#ga39c9cb0f3a2a8ad6f55cc4855d035349">dbus_bool_t</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__DBusTransport.html#gaceee4b098b0177870ad934daad90a9c6">_dbus_transport_get_is_connected</a> (<a class="el" href="structDBusTransport.html">DBusTransport</a> *transport)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns <a class="el" href="group__DBusMacros.html#gaa8cecfc5c5c054d2875c03e77b7be15d" title="Expands to "1".">TRUE</a> if the transport has not been disconnected. <a href="#gaceee4b098b0177870ad934daad90a9c6"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__DBusTypes.html#ga39c9cb0f3a2a8ad6f55cc4855d035349">dbus_bool_t</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__DBusTransport.html#ga59ed246ec0ef9c64bc4684fc17726c1d">_dbus_transport_peek_is_authenticated</a> (<a class="el" href="structDBusTransport.html">DBusTransport</a> *transport)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns <a class="el" href="group__DBusMacros.html#gaa8cecfc5c5c054d2875c03e77b7be15d" title="Expands to "1".">TRUE</a> if we have been authenticated. <a href="#ga59ed246ec0ef9c64bc4684fc17726c1d"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__DBusTypes.html#ga39c9cb0f3a2a8ad6f55cc4855d035349">dbus_bool_t</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__DBusTransport.html#gabe774b134a4bf8c8fc09e6186470874f">_dbus_transport_try_to_authenticate</a> (<a class="el" href="structDBusTransport.html">DBusTransport</a> *transport)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns <a class="el" href="group__DBusMacros.html#gaa8cecfc5c5c054d2875c03e77b7be15d" title="Expands to "1".">TRUE</a> if we have been authenticated. <a href="#gabe774b134a4bf8c8fc09e6186470874f"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__DBusTypes.html#ga39c9cb0f3a2a8ad6f55cc4855d035349">dbus_bool_t</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__DBusTransport.html#gaf0588dd4a6d1c556dd885d4c67622399">_dbus_transport_get_is_anonymous</a> (<a class="el" href="structDBusTransport.html">DBusTransport</a> *transport)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">See <a class="el" href="group__DBusConnection.html#gaa6c5d523e16d8a5b9316c92d9ff1ac17" title="Gets whether the connection is not authenticated as a specific user.">dbus_connection_get_is_anonymous()</a>. <a href="#gaf0588dd4a6d1c556dd885d4c67622399"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__DBusTypes.html#ga39c9cb0f3a2a8ad6f55cc4855d035349">dbus_bool_t</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__DBusTransport.html#gab98dc7cad59472a4513489628f1393f1">_dbus_transport_can_pass_unix_fd</a> (<a class="el" href="structDBusTransport.html">DBusTransport</a> *transport)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns TRUE if the transport supports sending unix fds. <a href="#gab98dc7cad59472a4513489628f1393f1"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">const char * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__DBusTransport.html#gac7e53868392b5e550454f47a1bc0a737">_dbus_transport_get_address</a> (<a class="el" href="structDBusTransport.html">DBusTransport</a> *transport)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Gets the address of a transport. <a href="#gac7e53868392b5e550454f47a1bc0a737"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">const char * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__DBusTransport.html#ga920abde00e77a970330fa3fc552fe7ea">_dbus_transport_get_server_id</a> (<a class="el" href="structDBusTransport.html">DBusTransport</a> *transport)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Gets the id of the server we are connected to (see <a class="el" href="group__DBusServer.html#ga3b2920b3c65836113781d9dd00d1e139" title="Returns the unique ID of the server, as a newly-allocated string which must be freed by the caller...">dbus_server_get_id()</a>). <a href="#ga920abde00e77a970330fa3fc552fe7ea"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__DBusTypes.html#ga39c9cb0f3a2a8ad6f55cc4855d035349">dbus_bool_t</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__DBusTransport.html#ga4a010098fe079eb6f201ff034d15fdff">_dbus_transport_handle_watch</a> (<a class="el" href="structDBusTransport.html">DBusTransport</a> *transport, <a class="el" href="structDBusWatch.html">DBusWatch</a> *watch, unsigned int condition)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Handles a watch by reading data, writing data, or disconnecting the transport, as appropriate for the given condition. <a href="#ga4a010098fe079eb6f201ff034d15fdff"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__DBusTypes.html#ga39c9cb0f3a2a8ad6f55cc4855d035349">dbus_bool_t</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__DBusTransport.html#ga9aaa3f8bf429c94d4ed180dff36c503c">_dbus_transport_set_connection</a> (<a class="el" href="structDBusTransport.html">DBusTransport</a> *transport, <a class="el" href="structDBusConnection.html">DBusConnection</a> *connection)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Sets the connection using this transport. <a href="#ga9aaa3f8bf429c94d4ed180dff36c503c"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__DBusTypes.html#ga39c9cb0f3a2a8ad6f55cc4855d035349">dbus_bool_t</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__DBusTransport.html#gac58d38eb19b39774f89271fc6472e087">_dbus_transport_get_socket_fd</a> (<a class="el" href="structDBusTransport.html">DBusTransport</a> *transport, int *fd_p)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the socket file descriptor, if any. <a href="#gac58d38eb19b39774f89271fc6472e087"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__DBusTransport.html#gac5e6d7a01debcf852b8d5a2fbc666fde">_dbus_transport_do_iteration</a> (<a class="el" href="structDBusTransport.html">DBusTransport</a> *transport, unsigned int flags, int timeout_milliseconds)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Performs a single poll()/select() on the transport's file descriptors and then reads/writes data as appropriate, queueing incoming messages and sending outgoing messages. <a href="#gac5e6d7a01debcf852b8d5a2fbc666fde"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__DBusConnection.html#gabf250a32ff740b2a8c99136e0142d8d2">DBusDispatchStatus</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__DBusTransport.html#ga32153a834758b5a88d7bde8f7a205c71">_dbus_transport_get_dispatch_status</a> (<a class="el" href="structDBusTransport.html">DBusTransport</a> *transport)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Reports our current dispatch status (whether there's buffered data to be queued as messages, or not, or we need memory). <a href="#ga32153a834758b5a88d7bde8f7a205c71"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__DBusTypes.html#ga39c9cb0f3a2a8ad6f55cc4855d035349">dbus_bool_t</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__DBusTransport.html#ga4046f36ecbdb75219f2b667f92e75a2b">_dbus_transport_queue_messages</a> (<a class="el" href="structDBusTransport.html">DBusTransport</a> *transport)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Processes data we've read while handling a watch, potentially converting some of it to messages and queueing those messages on the connection. <a href="#ga4046f36ecbdb75219f2b667f92e75a2b"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__DBusTransport.html#ga03ea875260e71f59af708146cabf95ab">_dbus_transport_set_max_message_size</a> (<a class="el" href="structDBusTransport.html">DBusTransport</a> *transport, long size)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">See <a class="el" href="group__DBusConnection.html#ga0d783462274a6c71d3767f5821c29ce9" title="Specifies the maximum size message this connection is allowed to receive.">dbus_connection_set_max_message_size()</a>. <a href="#ga03ea875260e71f59af708146cabf95ab"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__DBusTransport.html#gad005fffd646202e74a789765ae82a40f">_dbus_transport_set_max_message_unix_fds</a> (<a class="el" href="structDBusTransport.html">DBusTransport</a> *transport, long n)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">See <a class="el" href="group__DBusConnection.html#ga2aadce7d15c0e11983363912292b3fcd" title="Specifies the maximum number of unix fds a message on this connection is allowed to receive...">dbus_connection_set_max_message_unix_fds()</a>. <a href="#gad005fffd646202e74a789765ae82a40f"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">long </td><td class="memItemRight" valign="bottom"><a class="el" href="group__DBusTransport.html#gae36d2a90bad6ef13c0379fa9864ff68e">_dbus_transport_get_max_message_size</a> (<a class="el" href="structDBusTransport.html">DBusTransport</a> *transport)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">See <a class="el" href="group__DBusConnection.html#ga7a459e64d7dca7b592136cec0a73422c" title="Gets the value set by dbus_connection_set_max_message_size().">dbus_connection_get_max_message_size()</a>. <a href="#gae36d2a90bad6ef13c0379fa9864ff68e"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">long </td><td class="memItemRight" valign="bottom"><a class="el" href="group__DBusTransport.html#gaa28e8edd4d849108b158d95eb7da812d">_dbus_transport_get_max_message_unix_fds</a> (<a class="el" href="structDBusTransport.html">DBusTransport</a> *transport)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">See <a class="el" href="group__DBusConnection.html#ga18abaca9a512dbb7b6f921c3df6875d9" title="Gets the value set by dbus_connection_set_max_message_unix_fds().">dbus_connection_get_max_message_unix_fds()</a>. <a href="#gaa28e8edd4d849108b158d95eb7da812d"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__DBusTransport.html#ga08e0368732df5f4e58a2c838fe4484f6">_dbus_transport_set_max_received_size</a> (<a class="el" href="structDBusTransport.html">DBusTransport</a> *transport, long size)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">See <a class="el" href="group__DBusConnection.html#ga6565d75f16e6e803372b2ae3d94d991b" title="Sets the maximum total number of bytes that can be used for all messages received on this connection...">dbus_connection_set_max_received_size()</a>. <a href="#ga08e0368732df5f4e58a2c838fe4484f6"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__DBusTransport.html#gaae297c86eb0b79b6cef4a1f7e4b50356">_dbus_transport_set_max_received_unix_fds</a> (<a class="el" href="structDBusTransport.html">DBusTransport</a> *transport, long n)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">See <a class="el" href="group__DBusConnection.html#ga81e63dc6d9298e8a7f92c0d93d0e80b3" title="Sets the maximum total number of unix fds that can be used for all messages received on this connecti...">dbus_connection_set_max_received_unix_fds()</a>. <a href="#gaae297c86eb0b79b6cef4a1f7e4b50356"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">long </td><td class="memItemRight" valign="bottom"><a class="el" href="group__DBusTransport.html#ga8992b33d9060a103bd38705462a0ea96">_dbus_transport_get_max_received_size</a> (<a class="el" href="structDBusTransport.html">DBusTransport</a> *transport)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">See <a class="el" href="group__DBusConnection.html#ga376529acf41d1d34b4f46c0d9d515c85" title="Gets the value set by dbus_connection_set_max_received_size().">dbus_connection_get_max_received_size()</a>. <a href="#ga8992b33d9060a103bd38705462a0ea96"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">long </td><td class="memItemRight" valign="bottom"><a class="el" href="group__DBusTransport.html#gacd0b2e68c65dc3b0c1cfdf3fb8358a44">_dbus_transport_get_max_received_unix_fds</a> (<a class="el" href="structDBusTransport.html">DBusTransport</a> *transport)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">See <a class="el" href="group__DBusConnection.html#ga81e63dc6d9298e8a7f92c0d93d0e80b3" title="Sets the maximum total number of unix fds that can be used for all messages received on this connecti...">dbus_connection_set_max_received_unix_fds()</a>. <a href="#gacd0b2e68c65dc3b0c1cfdf3fb8358a44"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__DBusTypes.html#ga39c9cb0f3a2a8ad6f55cc4855d035349">dbus_bool_t</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__DBusTransport.html#gaf3c4a47f73bd584a9fda1e5e7a825da9">_dbus_transport_get_unix_user</a> (<a class="el" href="structDBusTransport.html">DBusTransport</a> *transport, unsigned long *uid)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">See <a class="el" href="group__DBusConnection.html#gaef670c3a8170ab9c719ec955252459d0" title="Gets the UNIX user ID of the connection if known.">dbus_connection_get_unix_user()</a>. <a href="#gaf3c4a47f73bd584a9fda1e5e7a825da9"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__DBusTypes.html#ga39c9cb0f3a2a8ad6f55cc4855d035349">dbus_bool_t</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__DBusTransport.html#gae66bc81abe904a4b3ab32d8920c8fe1e">_dbus_transport_get_unix_process_id</a> (<a class="el" href="structDBusTransport.html">DBusTransport</a> *transport, unsigned long *pid)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">See <a class="el" href="group__DBusConnection.html#gaeebeadcafa87e2d30eed4296f26fb73c" title="Gets the process ID of the connection if any.">dbus_connection_get_unix_process_id()</a>. <a href="#gae66bc81abe904a4b3ab32d8920c8fe1e"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__DBusTypes.html#ga39c9cb0f3a2a8ad6f55cc4855d035349">dbus_bool_t</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__DBusTransport.html#ga36ccd8321491895ca632e744028eea42">_dbus_transport_get_adt_audit_session_data</a> (<a class="el" href="structDBusTransport.html">DBusTransport</a> *transport, void **data, int *data_size)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">See <a class="el" href="group__DBusConnection.html#ga969b9dafe806c9fe0a54c9d8a565c2e1" title="Gets the ADT audit data of the connection if any.">dbus_connection_get_adt_audit_session_data()</a>. <a href="#ga36ccd8321491895ca632e744028eea42"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__DBusTransport.html#ga9f0ab472678a107c2ebe7f1da0754c44">_dbus_transport_set_unix_user_function</a> (<a class="el" href="structDBusTransport.html">DBusTransport</a> *transport, <a class="el" href="group__DBusConnection.html#ga36419a145848f3b234b3ba5640b0a3d0">DBusAllowUnixUserFunction</a> function, void *data, <a class="el" href="group__DBusMemory.html#ga061bcded226d76c7d7de35beaa165cb5">DBusFreeFunction</a> free_data_function, void **old_data, <a class="el" href="group__DBusMemory.html#ga061bcded226d76c7d7de35beaa165cb5">DBusFreeFunction</a> *old_free_data_function)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">See <a class="el" href="group__DBusConnection.html#ga6b78379badb4c5804344f4f3d87a958a" title="Sets a predicate function used to determine whether a given user ID is allowed to connect...">dbus_connection_set_unix_user_function()</a>. <a href="#ga9f0ab472678a107c2ebe7f1da0754c44"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__DBusTypes.html#ga39c9cb0f3a2a8ad6f55cc4855d035349">dbus_bool_t</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__DBusTransport.html#ga3f4f4ce9eaef18567fd21f5c6a1fde99">_dbus_transport_get_windows_user</a> (<a class="el" href="structDBusTransport.html">DBusTransport</a> *transport, char **windows_sid_p)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">See <a class="el" href="group__DBusConnection.html#ga2b3cb488f1922aeecdeafdcb110e91a8" title="Gets the Windows user SID of the connection if known.">dbus_connection_get_windows_user()</a>. <a href="#ga3f4f4ce9eaef18567fd21f5c6a1fde99"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__DBusTransport.html#gadbf528ef41efde73d0bc386d10b7f5b1">_dbus_transport_set_windows_user_function</a> (<a class="el" href="structDBusTransport.html">DBusTransport</a> *transport, <a class="el" href="group__DBusConnection.html#ga47436366726762688036c600d651bab6">DBusAllowWindowsUserFunction</a> function, void *data, <a class="el" href="group__DBusMemory.html#ga061bcded226d76c7d7de35beaa165cb5">DBusFreeFunction</a> free_data_function, void **old_data, <a class="el" href="group__DBusMemory.html#ga061bcded226d76c7d7de35beaa165cb5">DBusFreeFunction</a> *old_free_data_function)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">See <a class="el" href="group__DBusConnection.html#gaa35ced9ccd29d3366749ae383b120f9c" title="Sets a predicate function used to determine whether a given user ID is allowed to connect...">dbus_connection_set_windows_user_function()</a>. <a href="#gadbf528ef41efde73d0bc386d10b7f5b1"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__DBusTypes.html#ga39c9cb0f3a2a8ad6f55cc4855d035349">dbus_bool_t</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__DBusTransport.html#ga345827326824547201e8c517474af135">_dbus_transport_set_auth_mechanisms</a> (<a class="el" href="structDBusTransport.html">DBusTransport</a> *transport, const char **mechanisms)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Sets the SASL authentication mechanisms supported by this transport. <a href="#ga345827326824547201e8c517474af135"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__DBusTransport.html#ga5f4bd7eb5621003595b75cb8033463cd">_dbus_transport_set_allow_anonymous</a> (<a class="el" href="structDBusTransport.html">DBusTransport</a> *transport, <a class="el" href="group__DBusTypes.html#ga39c9cb0f3a2a8ad6f55cc4855d035349">dbus_bool_t</a> value)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">See <a class="el" href="group__DBusConnection.html#gade349ff04ed548993a8054250e317c12" title="This function must be called on the server side of a connection when the connection is first seen in ...">dbus_connection_set_allow_anonymous()</a> <a href="#ga5f4bd7eb5621003595b75cb8033463cd"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__DBusTransport.html#ga3545c064545957f73f583bf63d07c40c">_dbus_transport_get_pending_fds_count</a> (<a class="el" href="structDBusTransport.html">DBusTransport</a> *transport)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Return how many file descriptors are pending in the loader. <a href="#ga3545c064545957f73f583bf63d07c40c"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__DBusTransport.html#gad6dccbcdc149e3305101db4b2ebae6d6">_dbus_transport_set_pending_fds_function</a> (<a class="el" href="structDBusTransport.html">DBusTransport</a> *transport, void(*callback)(void *), void *data)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Register a function to be called whenever the number of pending file descriptors in the loader change. <a href="#gad6dccbcdc149e3305101db4b2ebae6d6"></a><br/></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<p>"Backend" for a <a class="el" href="structDBusConnection.html" title="Implementation details of DBusConnection.">DBusConnection</a>. </p>
<p>Types and functions related to <a class="el" href="structDBusTransport.html" title="Object representing a transport such as a socket.">DBusTransport</a>. A transport is an abstraction that can send and receive data via various kinds of network connections or other IPC mechanisms. </p>
<hr/><h2>Typedef Documentation</h2>
<a class="anchor" id="gabe3ed88c096cc85cecebd4310a97ba58"></a><!-- doxytag: member="dbus-transport.h::DBusTransport" ref="gabe3ed88c096cc85cecebd4310a97ba58" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="structDBusTransport.html">DBusTransport</a></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Opaque object representing a way message stream. </p>
<p><a class="el" href="structDBusTransport.html" title="Object representing a transport such as a socket.">DBusTransport</a> abstracts various kinds of actual transport mechanism, such as different network protocols, or encryption schemes. </p>
<p>Definition at line <a class="el" href="dbus-transport_8h_source.html#l00033">33</a> of file <a class="el" href="dbus-transport_8h_source.html">dbus-transport.h</a>.</p>
</div>
</div>
<hr/><h2>Function Documentation</h2>
<a class="anchor" id="gab98dc7cad59472a4513489628f1393f1"></a><!-- doxytag: member="dbus-transport.c::_dbus_transport_can_pass_unix_fd" ref="gab98dc7cad59472a4513489628f1393f1" args="(DBusTransport *transport)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="group__DBusTypes.html#ga39c9cb0f3a2a8ad6f55cc4855d035349">dbus_bool_t</a> <a class="el" href="group__DBusTransport.html#gab98dc7cad59472a4513489628f1393f1">_dbus_transport_can_pass_unix_fd</a> </td>
<td>(</td>
<td class="paramtype"><a class="el" href="structDBusTransport.html">DBusTransport</a> * </td>
<td class="paramname"><em>transport</em></td><td>)</td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Returns TRUE if the transport supports sending unix fds. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">transport</td><td>the transport </td></tr>
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd><a class="el" href="group__DBusMacros.html#gaa8cecfc5c5c054d2875c03e77b7be15d" title="Expands to "1".">TRUE</a> if TRUE it is possible to send unix fds across the transport. </dd></dl>
<p>Definition at line <a class="el" href="dbus-transport_8c_source.html#l00843">843</a> of file <a class="el" href="dbus-transport_8c_source.html">dbus-transport.c</a>.</p>
<p>Referenced by <a class="el" href="dbus-connection_8c_source.html#l03105">dbus_connection_can_send_type()</a>, <a class="el" href="dbus-connection_8c_source.html#l03302">dbus_connection_send()</a>, <a class="el" href="dbus-connection_8c_source.html#l03217">dbus_connection_send_preallocated()</a>, <a class="el" href="dbus-connection_8c_source.html#l03399">dbus_connection_send_with_reply()</a>, and <a class="el" href="dbus-connection_8c_source.html#l03535">dbus_connection_send_with_reply_and_block()</a>.</p>
</div>
</div>
<a class="anchor" id="ga78444dd8f6c6d6b429433ad81c3e318a"></a><!-- doxytag: member="dbus-transport.c::_dbus_transport_disconnect" ref="ga78444dd8f6c6d6b429433ad81c3e318a" args="(DBusTransport *transport)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void <a class="el" href="group__DBusTransport.html#ga78444dd8f6c6d6b429433ad81c3e318a">_dbus_transport_disconnect</a> </td>
<td>(</td>
<td class="paramtype"><a class="el" href="structDBusTransport.html">DBusTransport</a> * </td>
<td class="paramname"><em>transport</em></td><td>)</td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Closes our end of the connection to a remote application. </p>
<p>Further attempts to use this transport will fail. Only the first call to <a class="el" href="group__DBusTransport.html#ga78444dd8f6c6d6b429433ad81c3e318a" title="Closes our end of the connection to a remote application.">_dbus_transport_disconnect()</a> will have an effect.</p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">transport</td><td>the transport. </td></tr>
</table>
</dd>
</dl>
<p>Definition at line <a class="el" href="dbus-transport_8c_source.html#l00502">502</a> of file <a class="el" href="dbus-transport_8c_source.html">dbus-transport.c</a>.</p>
<p>References <a class="el" href="dbus-transport-protected_8h_source.html#l00053">DBusTransportVTable::disconnect</a>, <a class="el" href="dbus-transport-protected_8h_source.html#l00113">disconnected</a>, <a class="el" href="group__DBusMacros.html#ga070d2ce7b6bb7e5c05602aa8c308d0c4">NULL</a>, <a class="el" href="group__DBusMacros.html#gaa8cecfc5c5c054d2875c03e77b7be15d">TRUE</a>, and <a class="el" href="dbus-transport-protected_8h_source.html#l00084">vtable</a>.</p>
<p>Referenced by <a class="el" href="dbus-transport_8c_source.html#l00216">_dbus_transport_finalize_base()</a>, <a class="el" href="dbus-transport_8c_source.html#l01140">_dbus_transport_queue_messages()</a>, and <a class="el" href="dbus-transport_8c_source.html#l00724">_dbus_transport_try_to_authenticate()</a>.</p>
</div>
</div>
<a class="anchor" id="gac5e6d7a01debcf852b8d5a2fbc666fde"></a><!-- doxytag: member="dbus-transport.c::_dbus_transport_do_iteration" ref="gac5e6d7a01debcf852b8d5a2fbc666fde" args="(DBusTransport *transport, unsigned int flags, int timeout_milliseconds)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void <a class="el" href="group__DBusTransport.html#gac5e6d7a01debcf852b8d5a2fbc666fde">_dbus_transport_do_iteration</a> </td>
<td>(</td>
<td class="paramtype"><a class="el" href="structDBusTransport.html">DBusTransport</a> * </td>
<td class="paramname"><em>transport</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">unsigned int </td>
<td class="paramname"><em>flags</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>timeout_milliseconds</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Performs a single poll()/select() on the transport's file descriptors and then reads/writes data as appropriate, queueing incoming messages and sending outgoing messages. </p>
<p>This is the backend for _dbus_connection_do_iteration(). See _dbus_connection_do_iteration() for full details.</p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">transport</td><td>the transport. </td></tr>
<tr><td class="paramname">flags</td><td>indicates whether to read or write, and whether to block. </td></tr>
<tr><td class="paramname">timeout_milliseconds</td><td>if blocking, timeout or -1 for no timeout. </td></tr>
</table>
</dd>
</dl>
<p>Definition at line <a class="el" href="dbus-transport_8c_source.html#l00984">984</a> of file <a class="el" href="dbus-transport_8c_source.html">dbus-transport.c</a>.</p>
<p>References <a class="el" href="dbus-transport_8c_source.html#l00460">_dbus_transport_ref()</a>, <a class="el" href="dbus-transport_8c_source.html#l00477">_dbus_transport_unref()</a>, <a class="el" href="dbus-transport-protected_8h_source.html#l00113">disconnected</a>, <a class="el" href="dbus-transport-protected_8h_source.html#l00059">DBusTransportVTable::do_iteration</a>, <a class="el" href="group__DBusMacros.html#ga070d2ce7b6bb7e5c05602aa8c308d0c4">NULL</a>, and <a class="el" href="dbus-transport-protected_8h_source.html#l00084">vtable</a>.</p>
<p>Referenced by <a class="el" href="dbus-connection_8c_source.html#l01198">_dbus_connection_do_iteration_unlocked()</a>.</p>
</div>
</div>
<a class="anchor" id="gaf27a2aceb062921f3915acb1491a646a"></a><!-- doxytag: member="dbus-transport.c::_dbus_transport_finalize_base" ref="gaf27a2aceb062921f3915acb1491a646a" args="(DBusTransport *transport)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void <a class="el" href="group__DBusTransport.html#gaf27a2aceb062921f3915acb1491a646a">_dbus_transport_finalize_base</a> </td>
<td>(</td>
<td class="paramtype"><a class="el" href="structDBusTransport.html">DBusTransport</a> * </td>
<td class="paramname"><em>transport</em></td><td>)</td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Finalizes base class members of <a class="el" href="structDBusTransport.html" title="Object representing a transport such as a socket.">DBusTransport</a>. </p>
<p>Chained up to from subclass finalizers.</p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">transport</td><td>the transport. </td></tr>
</table>
</dd>
</dl>
<p>Definition at line <a class="el" href="dbus-transport_8c_source.html#l00216">216</a> of file <a class="el" href="dbus-transport_8c_source.html">dbus-transport.c</a>.</p>
<p>References <a class="el" href="dbus-auth_8c_source.html#l02346">_dbus_auth_unref()</a>, <a class="el" href="dbus-resources_8c_source.html#l00303">_dbus_counter_set_notify()</a>, <a class="el" href="dbus-resources_8c_source.html#l00136">_dbus_counter_unref()</a>, <a class="el" href="dbus-credentials_8c_source.html#l00128">_dbus_credentials_unref()</a>, <a class="el" href="dbus-message_8c_source.html#l03925">_dbus_message_loader_unref()</a>, <a class="el" href="dbus-transport_8c_source.html#l00502">_dbus_transport_disconnect()</a>, <a class="el" href="dbus-transport-protected_8h_source.html#l00099">address</a>, <a class="el" href="dbus-transport-protected_8h_source.html#l00090">auth</a>, <a class="el" href="dbus-transport-protected_8h_source.html#l00092">credentials</a>, <a class="el" href="dbus-memory_8c_source.html#l00701">dbus_free()</a>, <a class="el" href="dbus-transport-protected_8h_source.html#l00113">disconnected</a>, <a class="el" href="dbus-transport-protected_8h_source.html#l00101">expected_guid</a>, <a class="el" href="dbus-transport-protected_8h_source.html#l00106">free_unix_user_data</a>, <a class="el" href="dbus-transport-protected_8h_source.html#l00111">free_windows_user_data</a>, <a class="el" href="dbus-transport-protected_8h_source.html#l00097">live_messages</a>, <a class="el" href="dbus-transport-protected_8h_source.html#l00088">loader</a>, <a class="el" href="group__DBusMacros.html#ga070d2ce7b6bb7e5c05602aa8c308d0c4">NULL</a>, <a class="el" href="dbus-transport-protected_8h_source.html#l00104">unix_user_data</a>, and <a class="el" href="dbus-transport-protected_8h_source.html#l00109">windows_user_data</a>.</p>
</div>
</div>
<a class="anchor" id="gac7e53868392b5e550454f47a1bc0a737"></a><!-- doxytag: member="dbus-transport.c::_dbus_transport_get_address" ref="gac7e53868392b5e550454f47a1bc0a737" args="(DBusTransport *transport)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">const char* <a class="el" href="group__DBusTransport.html#gac7e53868392b5e550454f47a1bc0a737">_dbus_transport_get_address</a> </td>
<td>(</td>
<td class="paramtype"><a class="el" href="structDBusTransport.html">DBusTransport</a> * </td>
<td class="paramname"><em>transport</em></td><td>)</td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Gets the address of a transport. </p>
<p>It will be <a class="el" href="group__DBusMacros.html#ga070d2ce7b6bb7e5c05602aa8c308d0c4" title="A null pointer, defined appropriately for C or C++.">NULL</a> for a server-side transport.</p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">transport</td><td>the transport </td></tr>
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>transport's address </dd></dl>
<p>Definition at line <a class="el" href="dbus-transport_8c_source.html#l00856">856</a> of file <a class="el" href="dbus-transport_8c_source.html">dbus-transport.c</a>.</p>
<p>References <a class="el" href="dbus-transport-protected_8h_source.html#l00099">address</a>.</p>
</div>
</div>
<a class="anchor" id="ga36ccd8321491895ca632e744028eea42"></a><!-- doxytag: member="dbus-transport.c::_dbus_transport_get_adt_audit_session_data" ref="ga36ccd8321491895ca632e744028eea42" args="(DBusTransport *transport, void **data, int *data_size)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="group__DBusTypes.html#ga39c9cb0f3a2a8ad6f55cc4855d035349">dbus_bool_t</a> <a class="el" href="group__DBusTransport.html#ga36ccd8321491895ca632e744028eea42">_dbus_transport_get_adt_audit_session_data</a> </td>
<td>(</td>
<td class="paramtype"><a class="el" href="structDBusTransport.html">DBusTransport</a> * </td>
<td class="paramname"><em>transport</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">void ** </td>
<td class="paramname"><em>data</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int * </td>
<td class="paramname"><em>data_size</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>See <a class="el" href="group__DBusConnection.html#ga969b9dafe806c9fe0a54c9d8a565c2e1" title="Gets the ADT audit data of the connection if any.">dbus_connection_get_adt_audit_session_data()</a>. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">transport</td><td>the transport </td></tr>
<tr><td class="paramname">data</td><td>return location for the ADT audit data </td></tr>
<tr><td class="paramname">data_size</td><td>return length of audit data </td></tr>
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd><a class="el" href="group__DBusMacros.html#gaa8cecfc5c5c054d2875c03e77b7be15d" title="Expands to "1".">TRUE</a> if audit data is filled in with a valid ucred </dd></dl>
<p>Definition at line <a class="el" href="dbus-transport_8c_source.html#l01377">1377</a> of file <a class="el" href="dbus-transport_8c_source.html">dbus-transport.c</a>.</p>
<p>References <a class="el" href="dbus-auth_8c_source.html#l02731">_dbus_auth_get_identity()</a>, <a class="el" href="dbus-credentials_8c_source.html#l00294">_dbus_credentials_get_adt_audit_data()</a>, <a class="el" href="dbus-credentials_8c_source.html#l00307">_dbus_credentials_get_adt_audit_data_size()</a>, <a class="el" href="dbus-credentials_8c_source.html#l00228">_dbus_credentials_include()</a>, <a class="el" href="dbus-transport-protected_8h_source.html#l00090">auth</a>, <a class="el" href="dbus-transport-protected_8h_source.html#l00114">authenticated</a>, <a class="el" href="group__DBusMacros.html#gaa93f0eb578d23995850d61f7d61c55c1">FALSE</a>, <a class="el" href="group__DBusMacros.html#ga070d2ce7b6bb7e5c05602aa8c308d0c4">NULL</a>, and <a class="el" href="group__DBusMacros.html#gaa8cecfc5c5c054d2875c03e77b7be15d">TRUE</a>.</p>
<p>Referenced by <a class="el" href="dbus-connection_8c_source.html#l05259">dbus_connection_get_adt_audit_session_data()</a>.</p>
</div>
</div>
<a class="anchor" id="ga32153a834758b5a88d7bde8f7a205c71"></a><!-- doxytag: member="dbus-transport.c::_dbus_transport_get_dispatch_status" ref="ga32153a834758b5a88d7bde8f7a205c71" args="(DBusTransport *transport)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="group__DBusConnection.html#gabf250a32ff740b2a8c99136e0142d8d2">DBusDispatchStatus</a> <a class="el" href="group__DBusTransport.html#ga32153a834758b5a88d7bde8f7a205c71">_dbus_transport_get_dispatch_status</a> </td>
<td>(</td>
<td class="paramtype"><a class="el" href="structDBusTransport.html">DBusTransport</a> * </td>
<td class="paramname"><em>transport</em></td><td>)</td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Reports our current dispatch status (whether there's buffered data to be queued as messages, or not, or we need memory). </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">transport</td><td>the transport </td></tr>
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>current status </dd></dl>
<p>Definition at line <a class="el" href="dbus-transport_8c_source.html#l01101">1101</a> of file <a class="el" href="dbus-transport_8c_source.html">dbus-transport.c</a>.</p>
<p>References <a class="el" href="dbus-auth_8c_source.html#l02431">_dbus_auth_do_work()</a>, <a class="el" href="dbus-resources_8c_source.html#l00274">_dbus_counter_get_size_value()</a>, <a class="el" href="dbus-resources_8c_source.html#l00286">_dbus_counter_get_unix_fd_value()</a>, <a class="el" href="dbus-message_8c_source.html#l04365">_dbus_message_loader_peek_message()</a>, <a class="el" href="dbus-message_8c_source.html#l04302">_dbus_message_loader_queue_messages()</a>, <a class="el" href="dbus-transport_8c_source.html#l00724">_dbus_transport_try_to_authenticate()</a>, <a class="el" href="dbus-transport-protected_8h_source.html#l00090">auth</a>, <a class="el" href="dbus-connection_8h_source.html#l00082">DBUS_DISPATCH_COMPLETE</a>, <a class="el" href="dbus-connection_8h_source.html#l00081">DBUS_DISPATCH_DATA_REMAINS</a>, <a class="el" href="dbus-connection_8h_source.html#l00083">DBUS_DISPATCH_NEED_MEMORY</a>, <a class="el" href="dbus-transport-protected_8h_source.html#l00097">live_messages</a>, <a class="el" href="dbus-transport-protected_8h_source.html#l00088">loader</a>, <a class="el" href="dbus-transport-protected_8h_source.html#l00094">max_live_messages_size</a>, <a class="el" href="dbus-transport-protected_8h_source.html#l00095">max_live_messages_unix_fds</a>, <a class="el" href="group__DBusMacros.html#ga070d2ce7b6bb7e5c05602aa8c308d0c4">NULL</a>, <a class="el" href="group__DBusMacros.html#gaa8cecfc5c5c054d2875c03e77b7be15d">TRUE</a>, and <a class="el" href="dbus-transport-protected_8h_source.html#l00118">unused_bytes_recovered</a>.</p>
<p>Referenced by <a class="el" href="dbus-transport_8c_source.html#l01140">_dbus_transport_queue_messages()</a>.</p>
</div>
</div>
<a class="anchor" id="gaf0588dd4a6d1c556dd885d4c67622399"></a><!-- doxytag: member="dbus-transport.c::_dbus_transport_get_is_anonymous" ref="gaf0588dd4a6d1c556dd885d4c67622399" args="(DBusTransport *transport)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="group__DBusTypes.html#ga39c9cb0f3a2a8ad6f55cc4855d035349">dbus_bool_t</a> <a class="el" href="group__DBusTransport.html#gaf0588dd4a6d1c556dd885d4c67622399">_dbus_transport_get_is_anonymous</a> </td>
<td>(</td>
<td class="paramtype"><a class="el" href="structDBusTransport.html">DBusTransport</a> * </td>
<td class="paramname"><em>transport</em></td><td>)</td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>See <a class="el" href="group__DBusConnection.html#gaa6c5d523e16d8a5b9316c92d9ff1ac17" title="Gets whether the connection is not authenticated as a specific user.">dbus_connection_get_is_anonymous()</a>. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">transport</td><td>the transport </td></tr>
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd><a class="el" href="group__DBusMacros.html#gaa8cecfc5c5c054d2875c03e77b7be15d" title="Expands to "1".">TRUE</a> if not authenticated or authenticated as anonymous </dd></dl>
<p>Definition at line <a class="el" href="dbus-transport_8c_source.html#l00821">821</a> of file <a class="el" href="dbus-transport_8c_source.html">dbus-transport.c</a>.</p>
<p>References <a class="el" href="dbus-auth_8c_source.html#l02731">_dbus_auth_get_identity()</a>, <a class="el" href="dbus-credentials_8c_source.html#l00361">_dbus_credentials_are_anonymous()</a>, <a class="el" href="dbus-transport-protected_8h_source.html#l00090">auth</a>, <a class="el" href="dbus-transport-protected_8h_source.html#l00114">authenticated</a>, <a class="el" href="group__DBusMacros.html#gaa93f0eb578d23995850d61f7d61c55c1">FALSE</a>, and <a class="el" href="group__DBusMacros.html#gaa8cecfc5c5c054d2875c03e77b7be15d">TRUE</a>.</p>
<p>Referenced by <a class="el" href="dbus-connection_8c_source.html#l03029">dbus_connection_get_is_anonymous()</a>.</p>
</div>
</div>
<a class="anchor" id="gaceee4b098b0177870ad934daad90a9c6"></a><!-- doxytag: member="dbus-transport.c::_dbus_transport_get_is_connected" ref="gaceee4b098b0177870ad934daad90a9c6" args="(DBusTransport *transport)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="group__DBusTypes.html#ga39c9cb0f3a2a8ad6f55cc4855d035349">dbus_bool_t</a> <a class="el" href="group__DBusTransport.html#gaceee4b098b0177870ad934daad90a9c6">_dbus_transport_get_is_connected</a> </td>
<td>(</td>
<td class="paramtype"><a class="el" href="structDBusTransport.html">DBusTransport</a> * </td>
<td class="paramname"><em>transport</em></td><td>)</td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Returns <a class="el" href="group__DBusMacros.html#gaa8cecfc5c5c054d2875c03e77b7be15d" title="Expands to "1".">TRUE</a> if the transport has not been disconnected. </p>
<p>Disconnection can result from <a class="el" href="group__DBusTransport.html#ga78444dd8f6c6d6b429433ad81c3e318a" title="Closes our end of the connection to a remote application.">_dbus_transport_disconnect()</a> or because the server drops its end of the connection.</p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">transport</td><td>the transport. </td></tr>
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>whether we're connected </dd></dl>
<p>Definition at line <a class="el" href="dbus-transport_8c_source.html#l00527">527</a> of file <a class="el" href="dbus-transport_8c_source.html">dbus-transport.c</a>.</p>
<p>References <a class="el" href="dbus-transport-protected_8h_source.html#l00113">disconnected</a>.</p>
<p>Referenced by <a class="el" href="dbus-connection_8c_source.html#l02817">dbus_connection_unref()</a>.</p>
</div>
</div>
<a class="anchor" id="gae36d2a90bad6ef13c0379fa9864ff68e"></a><!-- doxytag: member="dbus-transport.c::_dbus_transport_get_max_message_size" ref="gae36d2a90bad6ef13c0379fa9864ff68e" args="(DBusTransport *transport)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">long <a class="el" href="group__DBusTransport.html#gae36d2a90bad6ef13c0379fa9864ff68e">_dbus_transport_get_max_message_size</a> </td>
<td>(</td>
<td class="paramtype"><a class="el" href="structDBusTransport.html">DBusTransport</a> * </td>
<td class="paramname"><em>transport</em></td><td>)</td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>See <a class="el" href="group__DBusConnection.html#ga7a459e64d7dca7b592136cec0a73422c" title="Gets the value set by dbus_connection_set_max_message_size().">dbus_connection_get_max_message_size()</a>. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">transport</td><td>the transport </td></tr>
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>max message size </dd></dl>
<p>Definition at line <a class="el" href="dbus-transport_8c_source.html#l01225">1225</a> of file <a class="el" href="dbus-transport_8c_source.html">dbus-transport.c</a>.</p>
<p>References <a class="el" href="dbus-message_8c_source.html#l04472">_dbus_message_loader_get_max_message_size()</a>, and <a class="el" href="dbus-transport-protected_8h_source.html#l00088">loader</a>.</p>
<p>Referenced by <a class="el" href="dbus-connection_8c_source.html#l06075">dbus_connection_get_max_message_size()</a>.</p>
</div>
</div>
<a class="anchor" id="gaa28e8edd4d849108b158d95eb7da812d"></a><!-- doxytag: member="dbus-transport.c::_dbus_transport_get_max_message_unix_fds" ref="gaa28e8edd4d849108b158d95eb7da812d" args="(DBusTransport *transport)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">long <a class="el" href="group__DBusTransport.html#gaa28e8edd4d849108b158d95eb7da812d">_dbus_transport_get_max_message_unix_fds</a> </td>
<td>(</td>
<td class="paramtype"><a class="el" href="structDBusTransport.html">DBusTransport</a> * </td>
<td class="paramname"><em>transport</em></td><td>)</td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>See <a class="el" href="group__DBusConnection.html#ga18abaca9a512dbb7b6f921c3df6875d9" title="Gets the value set by dbus_connection_set_max_message_unix_fds().">dbus_connection_get_max_message_unix_fds()</a>. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">transport</td><td>the transport </td></tr>
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>max message unix fds </dd></dl>
<p>Definition at line <a class="el" href="dbus-transport_8c_source.html#l01237">1237</a> of file <a class="el" href="dbus-transport_8c_source.html">dbus-transport.c</a>.</p>
<p>References <a class="el" href="dbus-message_8c_source.html#l04503">_dbus_message_loader_get_max_message_unix_fds()</a>, and <a class="el" href="dbus-transport-protected_8h_source.html#l00088">loader</a>.</p>
<p>Referenced by <a class="el" href="dbus-connection_8c_source.html#l06114">dbus_connection_get_max_message_unix_fds()</a>.</p>
</div>
</div>
<a class="anchor" id="ga8992b33d9060a103bd38705462a0ea96"></a><!-- doxytag: member="dbus-transport.c::_dbus_transport_get_max_received_size" ref="ga8992b33d9060a103bd38705462a0ea96" args="(DBusTransport *transport)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">long <a class="el" href="group__DBusTransport.html#ga8992b33d9060a103bd38705462a0ea96">_dbus_transport_get_max_received_size</a> </td>
<td>(</td>
<td class="paramtype"><a class="el" href="structDBusTransport.html">DBusTransport</a> * </td>
<td class="paramname"><em>transport</em></td><td>)</td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>See <a class="el" href="group__DBusConnection.html#ga376529acf41d1d34b4f46c0d9d515c85" title="Gets the value set by dbus_connection_set_max_received_size().">dbus_connection_get_max_received_size()</a>. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">transport</td><td>the transport </td></tr>
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>max bytes for all live messages </dd></dl>
<p>Definition at line <a class="el" href="dbus-transport_8c_source.html#l01285">1285</a> of file <a class="el" href="dbus-transport_8c_source.html">dbus-transport.c</a>.</p>
<p>References <a class="el" href="dbus-transport-protected_8h_source.html#l00094">max_live_messages_size</a>.</p>
<p>Referenced by <a class="el" href="dbus-connection_8c_source.html#l06170">dbus_connection_get_max_received_size()</a>.</p>
</div>
</div>
<a class="anchor" id="gacd0b2e68c65dc3b0c1cfdf3fb8358a44"></a><!-- doxytag: member="dbus-transport.c::_dbus_transport_get_max_received_unix_fds" ref="gacd0b2e68c65dc3b0c1cfdf3fb8358a44" args="(DBusTransport *transport)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">long <a class="el" href="group__DBusTransport.html#gacd0b2e68c65dc3b0c1cfdf3fb8358a44">_dbus_transport_get_max_received_unix_fds</a> </td>
<td>(</td>
<td class="paramtype"><a class="el" href="structDBusTransport.html">DBusTransport</a> * </td>
<td class="paramname"><em>transport</em></td><td>)</td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>See <a class="el" href="group__DBusConnection.html#ga81e63dc6d9298e8a7f92c0d93d0e80b3" title="Sets the maximum total number of unix fds that can be used for all messages received on this connecti...">dbus_connection_set_max_received_unix_fds()</a>. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">transport</td><td>the transport </td></tr>
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>max unix fds for all live messages </dd></dl>
<p>Definition at line <a class="el" href="dbus-transport_8c_source.html#l01297">1297</a> of file <a class="el" href="dbus-transport_8c_source.html">dbus-transport.c</a>.</p>
<p>References <a class="el" href="dbus-transport-protected_8h_source.html#l00095">max_live_messages_unix_fds</a>.</p>
<p>Referenced by <a class="el" href="dbus-connection_8c_source.html#l06212">dbus_connection_get_max_received_unix_fds()</a>.</p>
</div>
</div>
<a class="anchor" id="ga3545c064545957f73f583bf63d07c40c"></a><!-- doxytag: member="dbus-transport.c::_dbus_transport_get_pending_fds_count" ref="ga3545c064545957f73f583bf63d07c40c" args="(DBusTransport *transport)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int <a class="el" href="group__DBusTransport.html#ga3545c064545957f73f583bf63d07c40c">_dbus_transport_get_pending_fds_count</a> </td>
<td>(</td>
<td class="paramtype"><a class="el" href="structDBusTransport.html">DBusTransport</a> * </td>
<td class="paramname"><em>transport</em></td><td>)</td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Return how many file descriptors are pending in the loader. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">transport</td><td>the transport </td></tr>
</table>
</dd>
</dl>
<p>Definition at line <a class="el" href="dbus-transport_8c_source.html#l01521">1521</a> of file <a class="el" href="dbus-transport_8c_source.html">dbus-transport.c</a>.</p>
<p>References <a class="el" href="dbus-message_8c_source.html#l04514">_dbus_message_loader_get_pending_fds_count()</a>, and <a class="el" href="dbus-transport-protected_8h_source.html#l00088">loader</a>.</p>
<p>Referenced by <a class="el" href="dbus-connection_8c_source.html#l02558">_dbus_connection_get_pending_fds_count()</a>.</p>
</div>
</div>
<a class="anchor" id="ga920abde00e77a970330fa3fc552fe7ea"></a><!-- doxytag: member="dbus-transport.c::_dbus_transport_get_server_id" ref="ga920abde00e77a970330fa3fc552fe7ea" args="(DBusTransport *transport)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">const char* <a class="el" href="group__DBusTransport.html#ga920abde00e77a970330fa3fc552fe7ea">_dbus_transport_get_server_id</a> </td>
<td>(</td>
<td class="paramtype"><a class="el" href="structDBusTransport.html">DBusTransport</a> * </td>
<td class="paramname"><em>transport</em></td><td>)</td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Gets the id of the server we are connected to (see <a class="el" href="group__DBusServer.html#ga3b2920b3c65836113781d9dd00d1e139" title="Returns the unique ID of the server, as a newly-allocated string which must be freed by the caller...">dbus_server_get_id()</a>). </p>
<p>Only works on client side.</p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">transport</td><td>the transport </td></tr>
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>transport's server's id or <a class="el" href="group__DBusMacros.html#ga070d2ce7b6bb7e5c05602aa8c308d0c4" title="A null pointer, defined appropriately for C or C++.">NULL</a> if we are the server side </dd></dl>
<p>Definition at line <a class="el" href="dbus-transport_8c_source.html#l00869">869</a> of file <a class="el" href="dbus-transport_8c_source.html">dbus-transport.c</a>.</p>
<p>References <a class="el" href="dbus-auth_8c_source.html#l02755">_dbus_auth_get_guid_from_server()</a>, <a class="el" href="dbus-transport-protected_8h_source.html#l00090">auth</a>, <a class="el" href="dbus-transport-protected_8h_source.html#l00114">authenticated</a>, <a class="el" href="dbus-transport-protected_8h_source.html#l00101">expected_guid</a>, <a class="el" href="dbus-transport-protected_8h_source.html#l00117">is_server</a>, and <a class="el" href="group__DBusMacros.html#ga070d2ce7b6bb7e5c05602aa8c308d0c4">NULL</a>.</p>
<p>Referenced by <a class="el" href="dbus-connection_8c_source.html#l03074">dbus_connection_get_server_id()</a>.</p>
</div>
</div>
<a class="anchor" id="gac58d38eb19b39774f89271fc6472e087"></a><!-- doxytag: member="dbus-transport.c::_dbus_transport_get_socket_fd" ref="gac58d38eb19b39774f89271fc6472e087" args="(DBusTransport *transport, int *fd_p)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="group__DBusTypes.html#ga39c9cb0f3a2a8ad6f55cc4855d035349">dbus_bool_t</a> <a class="el" href="group__DBusTransport.html#gac58d38eb19b39774f89271fc6472e087">_dbus_transport_get_socket_fd</a> </td>
<td>(</td>
<td class="paramtype"><a class="el" href="structDBusTransport.html">DBusTransport</a> * </td>
<td class="paramname"><em>transport</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int * </td>
<td class="paramname"><em>fd_p</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Get the socket file descriptor, if any. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">transport</td><td>the transport </td></tr>
<tr><td class="paramname">fd_p</td><td>pointer to fill in with the descriptor </td></tr>
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd><a class="el" href="group__DBusMacros.html#gaa8cecfc5c5c054d2875c03e77b7be15d" title="Expands to "1".">TRUE</a> if a descriptor was available </dd></dl>
<p>Definition at line <a class="el" href="dbus-transport_8c_source.html#l00951">951</a> of file <a class="el" href="dbus-transport_8c_source.html">dbus-transport.c</a>.</p>
<p>References <a class="el" href="dbus-transport_8c_source.html#l00460">_dbus_transport_ref()</a>, <a class="el" href="dbus-transport_8c_source.html#l00477">_dbus_transport_unref()</a>, <a class="el" href="dbus-transport-protected_8h_source.html#l00113">disconnected</a>, <a class="el" href="group__DBusMacros.html#gaa93f0eb578d23995850d61f7d61c55c1">FALSE</a>, <a class="el" href="dbus-transport-protected_8h_source.html#l00069">DBusTransportVTable::get_socket_fd</a>, <a class="el" href="group__DBusMacros.html#ga070d2ce7b6bb7e5c05602aa8c308d0c4">NULL</a>, and <a class="el" href="dbus-transport-protected_8h_source.html#l00084">vtable</a>.</p>
<p>Referenced by <a class="el" href="dbus-connection_8c_source.html#l05148">dbus_connection_get_socket()</a>.</p>
</div>
</div>
<a class="anchor" id="gae66bc81abe904a4b3ab32d8920c8fe1e"></a><!-- doxytag: member="dbus-transport.c::_dbus_transport_get_unix_process_id" ref="gae66bc81abe904a4b3ab32d8920c8fe1e" args="(DBusTransport *transport, unsigned long *pid)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="group__DBusTypes.html#ga39c9cb0f3a2a8ad6f55cc4855d035349">dbus_bool_t</a> <a class="el" href="group__DBusTransport.html#gae66bc81abe904a4b3ab32d8920c8fe1e">_dbus_transport_get_unix_process_id</a> </td>
<td>(</td>
<td class="paramtype"><a class="el" href="structDBusTransport.html">DBusTransport</a> * </td>
<td class="paramname"><em>transport</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">unsigned long * </td>
<td class="paramname"><em>pid</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>See <a class="el" href="group__DBusConnection.html#gaeebeadcafa87e2d30eed4296f26fb73c" title="Gets the process ID of the connection if any.">dbus_connection_get_unix_process_id()</a>. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">transport</td><td>the transport </td></tr>
<tr><td class="paramname">pid</td><td>return location for the process ID </td></tr>
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd><a class="el" href="group__DBusMacros.html#gaa8cecfc5c5c054d2875c03e77b7be15d" title="Expands to "1".">TRUE</a> if uid is filled in with a valid process ID </dd></dl>
<p>Definition at line <a class="el" href="dbus-transport_8c_source.html#l01343">1343</a> of file <a class="el" href="dbus-transport_8c_source.html">dbus-transport.c</a>.</p>
<p>References <a class="el" href="dbus-auth_8c_source.html#l02731">_dbus_auth_get_identity()</a>, <a class="el" href="dbus-credentials_8c_source.html#l00255">_dbus_credentials_get_pid()</a>, <a class="el" href="dbus-credentials_8c_source.html#l00228">_dbus_credentials_include()</a>, <a class="el" href="dbus-transport-protected_8h_source.html#l00090">auth</a>, <a class="el" href="dbus-transport-protected_8h_source.html#l00114">authenticated</a>, <a class="el" href="dbus-sysdeps_8h_source.html#l00102">DBUS_PID_UNSET</a>, <a class="el" href="group__DBusMacros.html#gaa93f0eb578d23995850d61f7d61c55c1">FALSE</a>, and <a class="el" href="group__DBusMacros.html#gaa8cecfc5c5c054d2875c03e77b7be15d">TRUE</a>.</p>
<p>Referenced by <a class="el" href="dbus-connection_8c_source.html#l05226">dbus_connection_get_unix_process_id()</a>.</p>
</div>
</div>
<a class="anchor" id="gaf3c4a47f73bd584a9fda1e5e7a825da9"></a><!-- doxytag: member="dbus-transport.c::_dbus_transport_get_unix_user" ref="gaf3c4a47f73bd584a9fda1e5e7a825da9" args="(DBusTransport *transport, unsigned long *uid)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="group__DBusTypes.html#ga39c9cb0f3a2a8ad6f55cc4855d035349">dbus_bool_t</a> <a class="el" href="group__DBusTransport.html#gaf3c4a47f73bd584a9fda1e5e7a825da9">_dbus_transport_get_unix_user</a> </td>
<td>(</td>
<td class="paramtype"><a class="el" href="structDBusTransport.html">DBusTransport</a> * </td>
<td class="paramname"><em>transport</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">unsigned long * </td>
<td class="paramname"><em>uid</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>See <a class="el" href="group__DBusConnection.html#gaef670c3a8170ab9c719ec955252459d0" title="Gets the UNIX user ID of the connection if known.">dbus_connection_get_unix_user()</a>. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">transport</td><td>the transport </td></tr>
<tr><td class="paramname">uid</td><td>return location for the user ID </td></tr>
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd><a class="el" href="group__DBusMacros.html#gaa8cecfc5c5c054d2875c03e77b7be15d" title="Expands to "1".">TRUE</a> if uid is filled in with a valid user ID </dd></dl>
<p>Definition at line <a class="el" href="dbus-transport_8c_source.html#l01310">1310</a> of file <a class="el" href="dbus-transport_8c_source.html">dbus-transport.c</a>.</p>
<p>References <a class="el" href="dbus-auth_8c_source.html#l02731">_dbus_auth_get_identity()</a>, <a class="el" href="dbus-credentials_8c_source.html#l00268">_dbus_credentials_get_unix_uid()</a>, <a class="el" href="dbus-credentials_8c_source.html#l00228">_dbus_credentials_include()</a>, <a class="el" href="dbus-transport-protected_8h_source.html#l00090">auth</a>, <a class="el" href="dbus-transport-protected_8h_source.html#l00114">authenticated</a>, <a class="el" href="group__DBusMacros.html#gaa93f0eb578d23995850d61f7d61c55c1">FALSE</a>, and <a class="el" href="group__DBusMacros.html#gaa8cecfc5c5c054d2875c03e77b7be15d">TRUE</a>.</p>
<p>Referenced by <a class="el" href="dbus-connection_8c_source.html#l05190">dbus_connection_get_unix_user()</a>.</p>
</div>
</div>
<a class="anchor" id="ga3f4f4ce9eaef18567fd21f5c6a1fde99"></a><!-- doxytag: member="dbus-transport.c::_dbus_transport_get_windows_user" ref="ga3f4f4ce9eaef18567fd21f5c6a1fde99" args="(DBusTransport *transport, char **windows_sid_p)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="group__DBusTypes.html#ga39c9cb0f3a2a8ad6f55cc4855d035349">dbus_bool_t</a> <a class="el" href="group__DBusTransport.html#ga3f4f4ce9eaef18567fd21f5c6a1fde99">_dbus_transport_get_windows_user</a> </td>
<td>(</td>
<td class="paramtype"><a class="el" href="structDBusTransport.html">DBusTransport</a> * </td>
<td class="paramname"><em>transport</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">char ** </td>
<td class="paramname"><em>windows_sid_p</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>See <a class="el" href="group__DBusConnection.html#ga2b3cb488f1922aeecdeafdcb110e91a8" title="Gets the Windows user SID of the connection if known.">dbus_connection_get_windows_user()</a>. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">transport</td><td>the transport </td></tr>
<tr><td class="paramname">windows_sid_p</td><td>return location for the user ID </td></tr>
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd><a class="el" href="group__DBusMacros.html#gaa8cecfc5c5c054d2875c03e77b7be15d" title="Expands to "1".">TRUE</a> if user is available; the returned value may still be <a class="el" href="group__DBusMacros.html#ga070d2ce7b6bb7e5c05602aa8c308d0c4" title="A null pointer, defined appropriately for C or C++.">NULL</a> if no memory to copy it </dd></dl>
<p>Definition at line <a class="el" href="dbus-transport_8c_source.html#l01436">1436</a> of file <a class="el" href="dbus-transport_8c_source.html">dbus-transport.c</a>.</p>
<p>References <a class="el" href="dbus-auth_8c_source.html#l02731">_dbus_auth_get_identity()</a>, <a class="el" href="dbus-credentials_8c_source.html#l00281">_dbus_credentials_get_windows_sid()</a>, <a class="el" href="dbus-credentials_8c_source.html#l00228">_dbus_credentials_include()</a>, <a class="el" href="dbus-internals_8c_source.html#l00527">_dbus_strdup()</a>, <a class="el" href="dbus-transport-protected_8h_source.html#l00090">auth</a>, <a class="el" href="dbus-transport-protected_8h_source.html#l00114">authenticated</a>, <a class="el" href="group__DBusMacros.html#gaa93f0eb578d23995850d61f7d61c55c1">FALSE</a>, <a class="el" href="group__DBusMacros.html#ga070d2ce7b6bb7e5c05602aa8c308d0c4">NULL</a>, and <a class="el" href="group__DBusMacros.html#gaa8cecfc5c5c054d2875c03e77b7be15d">TRUE</a>.</p>
<p>Referenced by <a class="el" href="dbus-connection_8c_source.html#l05357">dbus_connection_get_windows_user()</a>.</p>
</div>
</div>
<a class="anchor" id="ga4a010098fe079eb6f201ff034d15fdff"></a><!-- doxytag: member="dbus-transport.c::_dbus_transport_handle_watch" ref="ga4a010098fe079eb6f201ff034d15fdff" args="(DBusTransport *transport, DBusWatch *watch, unsigned int condition)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="group__DBusTypes.html#ga39c9cb0f3a2a8ad6f55cc4855d035349">dbus_bool_t</a> <a class="el" href="group__DBusTransport.html#ga4a010098fe079eb6f201ff034d15fdff">_dbus_transport_handle_watch</a> </td>
<td>(</td>
<td class="paramtype"><a class="el" href="structDBusTransport.html">DBusTransport</a> * </td>
<td class="paramname"><em>transport</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="structDBusWatch.html">DBusWatch</a> * </td>
<td class="paramname"><em>watch</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">unsigned int </td>
<td class="paramname"><em>condition</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Handles a watch by reading data, writing data, or disconnecting the transport, as appropriate for the given condition. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">transport</td><td>the transport. </td></tr>
<tr><td class="paramname">watch</td><td>the watch. </td></tr>
<tr><td class="paramname">condition</td><td>the current state of the watched file descriptor. </td></tr>
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd><a class="el" href="group__DBusMacros.html#gaa93f0eb578d23995850d61f7d61c55c1" title="Expands to "0".">FALSE</a> if not enough memory to fully handle the watch </dd></dl>
<p>Definition at line <a class="el" href="dbus-transport_8c_source.html#l00889">889</a> of file <a class="el" href="dbus-transport_8c_source.html">dbus-transport.c</a>.</p>
<p>References <a class="el" href="dbus-transport_8c_source.html#l00460">_dbus_transport_ref()</a>, <a class="el" href="dbus-transport_8c_source.html#l00477">_dbus_transport_unref()</a>, <a class="el" href="dbus-internals_8c_source.html#l00258">_dbus_warn_check_failed()</a>, <a class="el" href="dbus-watch_8c_source.html#l00124">_dbus_watch_ref()</a>, <a class="el" href="dbus-watch_8c_source.html#l00185">_dbus_watch_sanitize_condition()</a>, <a class="el" href="dbus-watch_8c_source.html#l00138">_dbus_watch_unref()</a>, <a class="el" href="dbus-watch_8c_source.html#l00586">dbus_watch_get_socket()</a>, <a class="el" href="dbus-transport-protected_8h_source.html#l00113">disconnected</a>, <a class="el" href="dbus-transport-protected_8h_source.html#l00046">DBusTransportVTable::handle_watch</a>, <a class="el" href="group__DBusMacros.html#ga070d2ce7b6bb7e5c05602aa8c308d0c4">NULL</a>, <a class="el" href="group__DBusMacros.html#gaa8cecfc5c5c054d2875c03e77b7be15d">TRUE</a>, and <a class="el" href="dbus-transport-protected_8h_source.html#l00084">vtable</a>.</p>
<p>Referenced by <a class="el" href="dbus-connection_8c_source.html#l01486">_dbus_connection_handle_watch()</a>.</p>
</div>
</div>
<a class="anchor" id="gaa5ece78ea671fe9d9ed17fc6920c9d09"></a><!-- doxytag: member="dbus-transport.c::_dbus_transport_init_base" ref="gaa5ece78ea671fe9d9ed17fc6920c9d09" args="(DBusTransport *transport, const DBusTransportVTable *vtable, const DBusString *server_guid, const DBusString *address)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="group__DBusTypes.html#ga39c9cb0f3a2a8ad6f55cc4855d035349">dbus_bool_t</a> <a class="el" href="group__DBusTransport.html#gaa5ece78ea671fe9d9ed17fc6920c9d09">_dbus_transport_init_base</a> </td>
<td>(</td>
<td class="paramtype"><a class="el" href="structDBusTransport.html">DBusTransport</a> * </td>
<td class="paramname"><em>transport</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="el" href="structDBusTransportVTable.html">DBusTransportVTable</a> * </td>
<td class="paramname"><em>vtable</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="el" href="structDBusString.html">DBusString</a> * </td>
<td class="paramname"><em>server_guid</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="el" href="structDBusString.html">DBusString</a> * </td>
<td class="paramname"><em>address</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Initializes the base class members of <a class="el" href="structDBusTransport.html" title="Object representing a transport such as a socket.">DBusTransport</a>. </p>
<p>Chained up to by subclasses in their constructor. The server GUID is the globally unique ID for the server creating this connection and will be <a class="el" href="group__DBusMacros.html#ga070d2ce7b6bb7e5c05602aa8c308d0c4" title="A null pointer, defined appropriately for C or C++.">NULL</a> for the client side of a connection. The GUID is in hex format.</p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">transport</td><td>the transport being created. </td></tr>
<tr><td class="paramname">vtable</td><td>the subclass vtable. </td></tr>
<tr><td class="paramname">server_guid</td><td>non-<a class="el" href="group__DBusMacros.html#ga070d2ce7b6bb7e5c05602aa8c308d0c4" title="A null pointer, defined appropriately for C or C++.">NULL</a> if this transport is on the server side of a connection </td></tr>
<tr><td class="paramname">address</td><td>the address of the transport </td></tr>
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd><a class="el" href="group__DBusMacros.html#gaa8cecfc5c5c054d2875c03e77b7be15d" title="Expands to "1".">TRUE</a> on success. </dd></dl>
<p>Definition at line <a class="el" href="dbus-transport_8c_source.html#l00102">102</a> of file <a class="el" href="dbus-transport_8c_source.html">dbus-transport.c</a>.</p>
<p>References <a class="el" href="dbus-auth_8c_source.html#l02293">_dbus_auth_client_new()</a>, <a class="el" href="dbus-auth_8c_source.html#l02247">_dbus_auth_server_new()</a>, <a class="el" href="dbus-auth_8c_source.html#l02346">_dbus_auth_unref()</a>, <a class="el" href="dbus-resources_8c_source.html#l00089">_dbus_counter_new()</a>, <a class="el" href="dbus-resources_8c_source.html#l00303">_dbus_counter_set_notify()</a>, <a class="el" href="dbus-resources_8c_source.html#l00136">_dbus_counter_unref()</a>, <a class="el" href="dbus-credentials_8c_source.html#l00070">_dbus_credentials_new()</a>, <a class="el" href="dbus-credentials_8c_source.html#l00128">_dbus_credentials_unref()</a>, <a class="el" href="dbus-message_8c_source.html#l03863">_dbus_message_loader_new()</a>, <a class="el" href="dbus-message_8c_source.html#l03925">_dbus_message_loader_unref()</a>, <a class="el" href="dbus-string_8c_source.html#l00655">_dbus_string_copy_data()</a>, <a class="el" href="dbus-transport-protected_8h_source.html#l00099">address</a>, <a class="el" href="dbus-transport-protected_8h_source.html#l00090">auth</a>, <a class="el" href="dbus-transport-protected_8h_source.html#l00114">authenticated</a>, <a class="el" href="dbus-transport-protected_8h_source.html#l00092">credentials</a>, <a class="el" href="dbus-transport-protected_8h_source.html#l00113">disconnected</a>, <a class="el" href="dbus-transport-protected_8h_source.html#l00101">expected_guid</a>, <a class="el" href="group__DBusMacros.html#gaa93f0eb578d23995850d61f7d61c55c1">FALSE</a>, <a class="el" href="dbus-transport-protected_8h_source.html#l00106">free_unix_user_data</a>, <a class="el" href="dbus-transport-protected_8h_source.html#l00111">free_windows_user_data</a>, <a class="el" href="dbus-transport-protected_8h_source.html#l00117">is_server</a>, <a class="el" href="dbus-transport-protected_8h_source.html#l00097">live_messages</a>, <a class="el" href="dbus-transport-protected_8h_source.html#l00088">loader</a>, <a class="el" href="dbus-transport-protected_8h_source.html#l00094">max_live_messages_size</a>, <a class="el" href="dbus-transport-protected_8h_source.html#l00095">max_live_messages_unix_fds</a>, <a class="el" href="group__DBusMacros.html#ga070d2ce7b6bb7e5c05602aa8c308d0c4">NULL</a>, <a class="el" href="dbus-transport-protected_8h_source.html#l00116">receive_credentials_pending</a>, <a class="el" href="dbus-transport-protected_8h_source.html#l00082">refcount</a>, <a class="el" href="dbus-transport-protected_8h_source.html#l00115">send_credentials_pending</a>, <a class="el" href="group__DBusMacros.html#gaa8cecfc5c5c054d2875c03e77b7be15d">TRUE</a>, <a class="el" href="dbus-transport-protected_8h_source.html#l00104">unix_user_data</a>, <a class="el" href="dbus-transport-protected_8h_source.html#l00103">unix_user_function</a>, <a class="el" href="dbus-transport-protected_8h_source.html#l00084">vtable</a>, <a class="el" href="dbus-transport-protected_8h_source.html#l00109">windows_user_data</a>, and <a class="el" href="dbus-transport-protected_8h_source.html#l00108">windows_user_function</a>.</p>
<p>Referenced by <a class="el" href="dbus-transport-socket_8c_source.html#l01256">_dbus_transport_new_for_socket()</a>.</p>
</div>
</div>
<a class="anchor" id="ga0893897223056c89f33b2641a7b21cf8"></a><!-- doxytag: member="dbus-transport.c::_dbus_transport_open" ref="ga0893897223056c89f33b2641a7b21cf8" args="(DBusAddressEntry *entry, DBusError *error)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="structDBusTransport.html">DBusTransport</a>* <a class="el" href="group__DBusTransport.html#ga0893897223056c89f33b2641a7b21cf8">_dbus_transport_open</a> </td>
<td>(</td>
<td class="paramtype"><a class="el" href="structDBusAddressEntry.html">DBusAddressEntry</a> * </td>
<td class="paramname"><em>entry</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="structDBusError.html">DBusError</a> * </td>
<td class="paramname"><em>error</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Try to open a new transport for the given address entry. </p>
<p>(This opens a client-side-of-the-connection transport.)</p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">entry</td><td>the address entry </td></tr>
<tr><td class="paramname">error</td><td>location to store reason for failure. </td></tr>
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>new transport of <a class="el" href="group__DBusMacros.html#ga070d2ce7b6bb7e5c05602aa8c308d0c4" title="A null pointer, defined appropriately for C or C++.">NULL</a> on failure. </dd></dl>
<p>Definition at line <a class="el" href="dbus-transport_8c_source.html#l00367">367</a> of file <a class="el" href="dbus-transport_8c_source.html">dbus-transport.c</a>.</p>
<p>References <a class="el" href="dbus-address_8c_source.html#l00065">_dbus_set_bad_address()</a>, <a class="el" href="dbus-internals_8c_source.html#l00527">_dbus_strdup()</a>, <a class="el" href="dbus-address_8c_source.html#l00244">dbus_address_entry_get_value()</a>, <a class="el" href="dbus-errors_8h_source.html#l00062">DBUS_ERROR_INIT</a>, <a class="el" href="dbus-errors_8c_source.html#l00329">dbus_error_is_set()</a>, <a class="el" href="dbus-memory_8c_source.html#l00701">dbus_free()</a>, <a class="el" href="dbus-errors_8c_source.html#l00279">dbus_move_error()</a>, <a class="el" href="dbus-transport-protected_8h_source.html#l00101">expected_guid</a>, and <a class="el" href="group__DBusMacros.html#ga070d2ce7b6bb7e5c05602aa8c308d0c4">NULL</a>.</p>
</div>
</div>
<a class="anchor" id="ga59ed246ec0ef9c64bc4684fc17726c1d"></a><!-- doxytag: member="dbus-transport.c::_dbus_transport_peek_is_authenticated" ref="ga59ed246ec0ef9c64bc4684fc17726c1d" args="(DBusTransport *transport)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="group__DBusTypes.html#ga39c9cb0f3a2a8ad6f55cc4855d035349">dbus_bool_t</a> <a class="el" href="group__DBusTransport.html#ga59ed246ec0ef9c64bc4684fc17726c1d">_dbus_transport_peek_is_authenticated</a> </td>
<td>(</td>
<td class="paramtype"><a class="el" href="structDBusTransport.html">DBusTransport</a> * </td>
<td class="paramname"><em>transport</em></td><td>)</td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Returns <a class="el" href="group__DBusMacros.html#gaa8cecfc5c5c054d2875c03e77b7be15d" title="Expands to "1".">TRUE</a> if we have been authenticated. </p>
<p>It will return <a class="el" href="group__DBusMacros.html#gaa8cecfc5c5c054d2875c03e77b7be15d" title="Expands to "1".">TRUE</a> even if the transport is now disconnected, but was ever authenticated before disconnecting.</p>
<p>This replaces the older _dbus_transport_get_is_authenticated() which had side-effects.</p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">transport</td><td>the transport </td></tr>
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>whether we're authenticated </dd></dl>
<p>Definition at line <a class="el" href="dbus-transport_8c_source.html#l00701">701</a> of file <a class="el" href="dbus-transport_8c_source.html">dbus-transport.c</a>.</p>
<p>References <a class="el" href="dbus-transport-protected_8h_source.html#l00114">authenticated</a>.</p>
<p>Referenced by <a class="el" href="dbus-connection_8c_source.html#l00480">_dbus_connection_queue_received_message_link()</a>.</p>
</div>
</div>
<a class="anchor" id="ga4046f36ecbdb75219f2b667f92e75a2b"></a><!-- doxytag: member="dbus-transport.c::_dbus_transport_queue_messages" ref="ga4046f36ecbdb75219f2b667f92e75a2b" args="(DBusTransport *transport)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="group__DBusTypes.html#ga39c9cb0f3a2a8ad6f55cc4855d035349">dbus_bool_t</a> <a class="el" href="group__DBusTransport.html#ga4046f36ecbdb75219f2b667f92e75a2b">_dbus_transport_queue_messages</a> </td>
<td>(</td>
<td class="paramtype"><a class="el" href="structDBusTransport.html">DBusTransport</a> * </td>
<td class="paramname"><em>transport</em></td><td>)</td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Processes data we've read while handling a watch, potentially converting some of it to messages and queueing those messages on the connection. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">transport</td><td>the transport </td></tr>
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd><a class="el" href="group__DBusMacros.html#gaa8cecfc5c5c054d2875c03e77b7be15d" title="Expands to "1".">TRUE</a> if we had enough memory to queue all messages </dd></dl>
<p>Definition at line <a class="el" href="dbus-transport_8c_source.html#l01140">1140</a> of file <a class="el" href="dbus-transport_8c_source.html">dbus-transport.c</a>.</p>
<p>References <a class="el" href="dbus-connection_8c_source.html#l00480">_dbus_connection_queue_received_message_link()</a>, <a class="el" href="dbus-message_8c_source.html#l00329">_dbus_message_add_counter()</a>, <a class="el" href="dbus-message_8c_source.html#l04424">_dbus_message_loader_get_is_corrupted()</a>, <a class="el" href="dbus-message_8c_source.html#l04396">_dbus_message_loader_pop_message_link()</a>, <a class="el" href="dbus-message_8c_source.html#l04408">_dbus_message_loader_putback_message_link()</a>, <a class="el" href="dbus-transport_8c_source.html#l00502">_dbus_transport_disconnect()</a>, <a class="el" href="dbus-transport_8c_source.html#l01101">_dbus_transport_get_dispatch_status()</a>, <a class="el" href="dbus-transport-protected_8h_source.html#l00086">connection</a>, <a class="el" href="dbus-list_8h_source.html#l00038">DBusList::data</a>, <a class="el" href="dbus-connection_8h_source.html#l00081">DBUS_DISPATCH_DATA_REMAINS</a>, <a class="el" href="dbus-connection_8h_source.html#l00083">DBUS_DISPATCH_NEED_MEMORY</a>, <a class="el" href="dbus-transport-protected_8h_source.html#l00097">live_messages</a>, <a class="el" href="dbus-transport-protected_8h_source.html#l00066">DBusTransportVTable::live_messages_changed</a>, <a class="el" href="dbus-transport-protected_8h_source.html#l00088">loader</a>, <a class="el" href="group__DBusMacros.html#ga070d2ce7b6bb7e5c05602aa8c308d0c4">NULL</a>, and <a class="el" href="dbus-transport-protected_8h_source.html#l00084">vtable</a>.</p>
</div>
</div>
<a class="anchor" id="ga31d6dbc864c9ea643d72521bbb1b7c56"></a><!-- doxytag: member="dbus-transport.c::_dbus_transport_ref" ref="ga31d6dbc864c9ea643d72521bbb1b7c56" args="(DBusTransport *transport)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="structDBusTransport.html">DBusTransport</a>* <a class="el" href="group__DBusTransport.html#ga31d6dbc864c9ea643d72521bbb1b7c56">_dbus_transport_ref</a> </td>
<td>(</td>
<td class="paramtype"><a class="el" href="structDBusTransport.html">DBusTransport</a> * </td>
<td class="paramname"><em>transport</em></td><td>)</td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Increments the reference count for the transport. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">transport</td><td>the transport. </td></tr>
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>the transport. </dd></dl>
<p>Definition at line <a class="el" href="dbus-transport_8c_source.html#l00460">460</a> of file <a class="el" href="dbus-transport_8c_source.html">dbus-transport.c</a>.</p>
<p>References <a class="el" href="dbus-transport-protected_8h_source.html#l00082">refcount</a>.</p>
<p>Referenced by <a class="el" href="dbus-connection_8c_source.html#l01249">_dbus_connection_new_for_transport()</a>, <a class="el" href="dbus-transport_8c_source.html#l00984">_dbus_transport_do_iteration()</a>, <a class="el" href="dbus-transport_8c_source.html#l00951">_dbus_transport_get_socket_fd()</a>, <a class="el" href="dbus-transport_8c_source.html#l00889">_dbus_transport_handle_watch()</a>, and <a class="el" href="dbus-transport_8c_source.html#l00927">_dbus_transport_set_connection()</a>.</p>
</div>
</div>
<a class="anchor" id="ga5f4bd7eb5621003595b75cb8033463cd"></a><!-- doxytag: member="dbus-transport.c::_dbus_transport_set_allow_anonymous" ref="ga5f4bd7eb5621003595b75cb8033463cd" args="(DBusTransport *transport, dbus_bool_t value)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void <a class="el" href="group__DBusTransport.html#ga5f4bd7eb5621003595b75cb8033463cd">_dbus_transport_set_allow_anonymous</a> </td>
<td>(</td>
<td class="paramtype"><a class="el" href="structDBusTransport.html">DBusTransport</a> * </td>
<td class="paramname"><em>transport</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__DBusTypes.html#ga39c9cb0f3a2a8ad6f55cc4855d035349">dbus_bool_t</a> </td>
<td class="paramname"><em>value</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>See <a class="el" href="group__DBusConnection.html#gade349ff04ed548993a8054250e317c12" title="This function must be called on the server side of a connection when the connection is first seen in ...">dbus_connection_set_allow_anonymous()</a> </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">transport</td><td>the transport </td></tr>
<tr><td class="paramname">value</td><td><a class="el" href="group__DBusMacros.html#gaa8cecfc5c5c054d2875c03e77b7be15d" title="Expands to "1".">TRUE</a> to allow anonymous connection </td></tr>
</table>
</dd>
</dl>
<p>Definition at line <a class="el" href="dbus-transport_8c_source.html#l01509">1509</a> of file <a class="el" href="dbus-transport_8c_source.html">dbus-transport.c</a>.</p>
<p>References <a class="el" href="dbus-transport-protected_8h_source.html#l00119">allow_anonymous</a>, and <a class="el" href="group__DBusMacros.html#gaa93f0eb578d23995850d61f7d61c55c1">FALSE</a>.</p>
<p>Referenced by <a class="el" href="dbus-connection_8c_source.html#l05451">dbus_connection_set_allow_anonymous()</a>.</p>
</div>
</div>
<a class="anchor" id="ga345827326824547201e8c517474af135"></a><!-- doxytag: member="dbus-transport.c::_dbus_transport_set_auth_mechanisms" ref="ga345827326824547201e8c517474af135" args="(DBusTransport *transport, const char **mechanisms)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="group__DBusTypes.html#ga39c9cb0f3a2a8ad6f55cc4855d035349">dbus_bool_t</a> <a class="el" href="group__DBusTransport.html#ga345827326824547201e8c517474af135">_dbus_transport_set_auth_mechanisms</a> </td>
<td>(</td>
<td class="paramtype"><a class="el" href="structDBusTransport.html">DBusTransport</a> * </td>
<td class="paramname"><em>transport</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const char ** </td>
<td class="paramname"><em>mechanisms</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Sets the SASL authentication mechanisms supported by this transport. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">transport</td><td>the transport </td></tr>
<tr><td class="paramname">mechanisms</td><td>the <a class="el" href="group__DBusMacros.html#ga070d2ce7b6bb7e5c05602aa8c308d0c4" title="A null pointer, defined appropriately for C or C++.">NULL</a>-terminated array of mechanisms</td></tr>
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd><a class="el" href="group__DBusMacros.html#gaa93f0eb578d23995850d61f7d61c55c1" title="Expands to "0".">FALSE</a> if no memory </dd></dl>
<p>Definition at line <a class="el" href="dbus-transport_8c_source.html#l01496">1496</a> of file <a class="el" href="dbus-transport_8c_source.html">dbus-transport.c</a>.</p>
<p>References <a class="el" href="dbus-auth_8c_source.html#l02396">_dbus_auth_set_mechanisms()</a>, and <a class="el" href="dbus-transport-protected_8h_source.html#l00090">auth</a>.</p>
</div>
</div>
<a class="anchor" id="ga9aaa3f8bf429c94d4ed180dff36c503c"></a><!-- doxytag: member="dbus-transport.c::_dbus_transport_set_connection" ref="ga9aaa3f8bf429c94d4ed180dff36c503c" args="(DBusTransport *transport, DBusConnection *connection)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="group__DBusTypes.html#ga39c9cb0f3a2a8ad6f55cc4855d035349">dbus_bool_t</a> <a class="el" href="group__DBusTransport.html#ga9aaa3f8bf429c94d4ed180dff36c503c">_dbus_transport_set_connection</a> </td>
<td>(</td>
<td class="paramtype"><a class="el" href="structDBusTransport.html">DBusTransport</a> * </td>
<td class="paramname"><em>transport</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="structDBusConnection.html">DBusConnection</a> * </td>
<td class="paramname"><em>connection</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Sets the connection using this transport. </p>
<p>Allows the transport to add watches to the connection, queue incoming messages, and pull outgoing messages.</p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">transport</td><td>the transport. </td></tr>
<tr><td class="paramname">connection</td><td>the connection. </td></tr>
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd><a class="el" href="group__DBusMacros.html#gaa93f0eb578d23995850d61f7d61c55c1" title="Expands to "0".">FALSE</a> if not enough memory </dd></dl>
<p>Definition at line <a class="el" href="dbus-transport_8c_source.html#l00927">927</a> of file <a class="el" href="dbus-transport_8c_source.html">dbus-transport.c</a>.</p>
<p>References <a class="el" href="dbus-transport_8c_source.html#l00460">_dbus_transport_ref()</a>, <a class="el" href="dbus-transport_8c_source.html#l00477">_dbus_transport_unref()</a>, <a class="el" href="dbus-transport-protected_8h_source.html#l00086">connection</a>, <a class="el" href="dbus-transport-protected_8h_source.html#l00056">DBusTransportVTable::connection_set</a>, <a class="el" href="group__DBusMacros.html#ga070d2ce7b6bb7e5c05602aa8c308d0c4">NULL</a>, and <a class="el" href="dbus-transport-protected_8h_source.html#l00084">vtable</a>.</p>
<p>Referenced by <a class="el" href="dbus-connection_8c_source.html#l01249">_dbus_connection_new_for_transport()</a>.</p>
</div>
</div>
<a class="anchor" id="ga03ea875260e71f59af708146cabf95ab"></a><!-- doxytag: member="dbus-transport.c::_dbus_transport_set_max_message_size" ref="ga03ea875260e71f59af708146cabf95ab" args="(DBusTransport *transport, long size)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void <a class="el" href="group__DBusTransport.html#ga03ea875260e71f59af708146cabf95ab">_dbus_transport_set_max_message_size</a> </td>
<td>(</td>
<td class="paramtype"><a class="el" href="structDBusTransport.html">DBusTransport</a> * </td>
<td class="paramname"><em>transport</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">long </td>
<td class="paramname"><em>size</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>See <a class="el" href="group__DBusConnection.html#ga0d783462274a6c71d3767f5821c29ce9" title="Specifies the maximum size message this connection is allowed to receive.">dbus_connection_set_max_message_size()</a>. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">transport</td><td>the transport </td></tr>
<tr><td class="paramname">size</td><td>the max size of a single message </td></tr>
</table>
</dd>
</dl>
<p>Definition at line <a class="el" href="dbus-transport_8c_source.html#l01199">1199</a> of file <a class="el" href="dbus-transport_8c_source.html">dbus-transport.c</a>.</p>
<p>References <a class="el" href="dbus-message_8c_source.html#l04453">_dbus_message_loader_set_max_message_size()</a>, and <a class="el" href="dbus-transport-protected_8h_source.html#l00088">loader</a>.</p>
<p>Referenced by <a class="el" href="dbus-connection_8c_source.html#l06057">dbus_connection_set_max_message_size()</a>.</p>
</div>
</div>
<a class="anchor" id="gad005fffd646202e74a789765ae82a40f"></a><!-- doxytag: member="dbus-transport.c::_dbus_transport_set_max_message_unix_fds" ref="gad005fffd646202e74a789765ae82a40f" args="(DBusTransport *transport, long n)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void <a class="el" href="group__DBusTransport.html#gad005fffd646202e74a789765ae82a40f">_dbus_transport_set_max_message_unix_fds</a> </td>
<td>(</td>
<td class="paramtype"><a class="el" href="structDBusTransport.html">DBusTransport</a> * </td>
<td class="paramname"><em>transport</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">long </td>
<td class="paramname"><em>n</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>See <a class="el" href="group__DBusConnection.html#ga2aadce7d15c0e11983363912292b3fcd" title="Specifies the maximum number of unix fds a message on this connection is allowed to receive...">dbus_connection_set_max_message_unix_fds()</a>. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">transport</td><td>the transport </td></tr>
<tr><td class="paramname">n</td><td>the max number of unix fds of a single message </td></tr>
</table>
</dd>
</dl>
<p>Definition at line <a class="el" href="dbus-transport_8c_source.html#l01212">1212</a> of file <a class="el" href="dbus-transport_8c_source.html">dbus-transport.c</a>.</p>
<p>References <a class="el" href="dbus-message_8c_source.html#l04484">_dbus_message_loader_set_max_message_unix_fds()</a>, and <a class="el" href="dbus-transport-protected_8h_source.html#l00088">loader</a>.</p>
<p>Referenced by <a class="el" href="dbus-connection_8c_source.html#l06096">dbus_connection_set_max_message_unix_fds()</a>.</p>
</div>
</div>
<a class="anchor" id="ga08e0368732df5f4e58a2c838fe4484f6"></a><!-- doxytag: member="dbus-transport.c::_dbus_transport_set_max_received_size" ref="ga08e0368732df5f4e58a2c838fe4484f6" args="(DBusTransport *transport, long size)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void <a class="el" href="group__DBusTransport.html#ga08e0368732df5f4e58a2c838fe4484f6">_dbus_transport_set_max_received_size</a> </td>
<td>(</td>
<td class="paramtype"><a class="el" href="structDBusTransport.html">DBusTransport</a> * </td>
<td class="paramname"><em>transport</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">long </td>
<td class="paramname"><em>size</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>See <a class="el" href="group__DBusConnection.html#ga6565d75f16e6e803372b2ae3d94d991b" title="Sets the maximum total number of bytes that can be used for all messages received on this connection...">dbus_connection_set_max_received_size()</a>. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">transport</td><td>the transport </td></tr>
<tr><td class="paramname">size</td><td>the max size of all incoming messages </td></tr>
</table>
</dd>
</dl>
<p>Definition at line <a class="el" href="dbus-transport_8c_source.html#l01249">1249</a> of file <a class="el" href="dbus-transport_8c_source.html">dbus-transport.c</a>.</p>
<p>References <a class="el" href="dbus-resources_8c_source.html#l00303">_dbus_counter_set_notify()</a>, <a class="el" href="dbus-transport-protected_8h_source.html#l00097">live_messages</a>, <a class="el" href="dbus-transport-protected_8h_source.html#l00094">max_live_messages_size</a>, and <a class="el" href="dbus-transport-protected_8h_source.html#l00095">max_live_messages_unix_fds</a>.</p>
<p>Referenced by <a class="el" href="dbus-connection_8c_source.html#l06152">dbus_connection_set_max_received_size()</a>.</p>
</div>
</div>
<a class="anchor" id="gaae297c86eb0b79b6cef4a1f7e4b50356"></a><!-- doxytag: member="dbus-transport.c::_dbus_transport_set_max_received_unix_fds" ref="gaae297c86eb0b79b6cef4a1f7e4b50356" args="(DBusTransport *transport, long n)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void <a class="el" href="group__DBusTransport.html#gaae297c86eb0b79b6cef4a1f7e4b50356">_dbus_transport_set_max_received_unix_fds</a> </td>
<td>(</td>
<td class="paramtype"><a class="el" href="structDBusTransport.html">DBusTransport</a> * </td>
<td class="paramname"><em>transport</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">long </td>
<td class="paramname"><em>n</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>See <a class="el" href="group__DBusConnection.html#ga81e63dc6d9298e8a7f92c0d93d0e80b3" title="Sets the maximum total number of unix fds that can be used for all messages received on this connecti...">dbus_connection_set_max_received_unix_fds()</a>. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">transport</td><td>the transport </td></tr>
<tr><td class="paramname">n</td><td>the max unix fds of all incoming messages </td></tr>
</table>
</dd>
</dl>
<p>Definition at line <a class="el" href="dbus-transport_8c_source.html#l01267">1267</a> of file <a class="el" href="dbus-transport_8c_source.html">dbus-transport.c</a>.</p>
<p>References <a class="el" href="dbus-resources_8c_source.html#l00303">_dbus_counter_set_notify()</a>, <a class="el" href="dbus-transport-protected_8h_source.html#l00097">live_messages</a>, <a class="el" href="dbus-transport-protected_8h_source.html#l00094">max_live_messages_size</a>, and <a class="el" href="dbus-transport-protected_8h_source.html#l00095">max_live_messages_unix_fds</a>.</p>
<p>Referenced by <a class="el" href="dbus-connection_8c_source.html#l06194">dbus_connection_set_max_received_unix_fds()</a>.</p>
</div>
</div>
<a class="anchor" id="gad6dccbcdc149e3305101db4b2ebae6d6"></a><!-- doxytag: member="dbus-transport.c::_dbus_transport_set_pending_fds_function" ref="gad6dccbcdc149e3305101db4b2ebae6d6" args="(DBusTransport *transport, void(*callback)(void *), void *data)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void <a class="el" href="group__DBusTransport.html#gad6dccbcdc149e3305101db4b2ebae6d6">_dbus_transport_set_pending_fds_function</a> </td>
<td>(</td>
<td class="paramtype"><a class="el" href="structDBusTransport.html">DBusTransport</a> * </td>
<td class="paramname"><em>transport</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">void(*)(void *) </td>
<td class="paramname"><em>callback</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">void * </td>
<td class="paramname"><em>data</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Register a function to be called whenever the number of pending file descriptors in the loader change. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">transport</td><td>the transport </td></tr>
<tr><td class="paramname">callback</td><td>the callback </td></tr>
</table>
</dd>
</dl>
<p>Definition at line <a class="el" href="dbus-transport_8c_source.html#l01534">1534</a> of file <a class="el" href="dbus-transport_8c_source.html">dbus-transport.c</a>.</p>
<p>References <a class="el" href="dbus-message_8c_source.html#l04532">_dbus_message_loader_set_pending_fds_function()</a>, and <a class="el" href="dbus-transport-protected_8h_source.html#l00088">loader</a>.</p>
<p>Referenced by <a class="el" href="dbus-connection_8c_source.html#l02571">_dbus_connection_set_pending_fds_function()</a>.</p>
</div>
</div>
<a class="anchor" id="ga9f0ab472678a107c2ebe7f1da0754c44"></a><!-- doxytag: member="dbus-transport.c::_dbus_transport_set_unix_user_function" ref="ga9f0ab472678a107c2ebe7f1da0754c44" args="(DBusTransport *transport, DBusAllowUnixUserFunction function, void *data, DBusFreeFunction free_data_function, void **old_data, DBusFreeFunction *old_free_data_function)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void <a class="el" href="group__DBusTransport.html#ga9f0ab472678a107c2ebe7f1da0754c44">_dbus_transport_set_unix_user_function</a> </td>
<td>(</td>
<td class="paramtype"><a class="el" href="structDBusTransport.html">DBusTransport</a> * </td>
<td class="paramname"><em>transport</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__DBusConnection.html#ga36419a145848f3b234b3ba5640b0a3d0">DBusAllowUnixUserFunction</a> </td>
<td class="paramname"><em>function</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">void * </td>
<td class="paramname"><em>data</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__DBusMemory.html#ga061bcded226d76c7d7de35beaa165cb5">DBusFreeFunction</a> </td>
<td class="paramname"><em>free_data_function</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">void ** </td>
<td class="paramname"><em>old_data</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__DBusMemory.html#ga061bcded226d76c7d7de35beaa165cb5">DBusFreeFunction</a> * </td>
<td class="paramname"><em>old_free_data_function</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>See <a class="el" href="group__DBusConnection.html#ga6b78379badb4c5804344f4f3d87a958a" title="Sets a predicate function used to determine whether a given user ID is allowed to connect...">dbus_connection_set_unix_user_function()</a>. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">transport</td><td>the transport </td></tr>
<tr><td class="paramname">function</td><td>the predicate </td></tr>
<tr><td class="paramname">data</td><td>data to pass to the predicate </td></tr>
<tr><td class="paramname">free_data_function</td><td>function to free the data </td></tr>
<tr><td class="paramname">old_data</td><td>the old user data to be freed </td></tr>
<tr><td class="paramname">old_free_data_function</td><td>old free data function to free it with </td></tr>
</table>
</dd>
</dl>
<p>Definition at line <a class="el" href="dbus-transport_8c_source.html#l01413">1413</a> of file <a class="el" href="dbus-transport_8c_source.html">dbus-transport.c</a>.</p>
<p>References <a class="el" href="dbus-transport-protected_8h_source.html#l00106">free_unix_user_data</a>, <a class="el" href="dbus-transport-protected_8h_source.html#l00104">unix_user_data</a>, and <a class="el" href="dbus-transport-protected_8h_source.html#l00103">unix_user_function</a>.</p>
<p>Referenced by <a class="el" href="dbus-connection_8c_source.html#l05305">dbus_connection_set_unix_user_function()</a>.</p>
</div>
</div>
<a class="anchor" id="gadbf528ef41efde73d0bc386d10b7f5b1"></a><!-- doxytag: member="dbus-transport.c::_dbus_transport_set_windows_user_function" ref="gadbf528ef41efde73d0bc386d10b7f5b1" args="(DBusTransport *transport, DBusAllowWindowsUserFunction function, void *data, DBusFreeFunction free_data_function, void **old_data, DBusFreeFunction *old_free_data_function)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void <a class="el" href="group__DBusTransport.html#gadbf528ef41efde73d0bc386d10b7f5b1">_dbus_transport_set_windows_user_function</a> </td>
<td>(</td>
<td class="paramtype"><a class="el" href="structDBusTransport.html">DBusTransport</a> * </td>
<td class="paramname"><em>transport</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__DBusConnection.html#ga47436366726762688036c600d651bab6">DBusAllowWindowsUserFunction</a> </td>
<td class="paramname"><em>function</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">void * </td>
<td class="paramname"><em>data</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__DBusMemory.html#ga061bcded226d76c7d7de35beaa165cb5">DBusFreeFunction</a> </td>
<td class="paramname"><em>free_data_function</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">void ** </td>
<td class="paramname"><em>old_data</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__DBusMemory.html#ga061bcded226d76c7d7de35beaa165cb5">DBusFreeFunction</a> * </td>
<td class="paramname"><em>old_free_data_function</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>See <a class="el" href="group__DBusConnection.html#gaa35ced9ccd29d3366749ae383b120f9c" title="Sets a predicate function used to determine whether a given user ID is allowed to connect...">dbus_connection_set_windows_user_function()</a>. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">transport</td><td>the transport </td></tr>
<tr><td class="paramname">function</td><td>the predicate </td></tr>
<tr><td class="paramname">data</td><td>data to pass to the predicate </td></tr>
<tr><td class="paramname">free_data_function</td><td>function to free the data </td></tr>
<tr><td class="paramname">old_data</td><td>the old user data to be freed </td></tr>
<tr><td class="paramname">old_free_data_function</td><td>old free data function to free it with </td></tr>
</table>
</dd>
</dl>
<p>Definition at line <a class="el" href="dbus-transport_8c_source.html#l01472">1472</a> of file <a class="el" href="dbus-transport_8c_source.html">dbus-transport.c</a>.</p>
<p>References <a class="el" href="dbus-transport-protected_8h_source.html#l00111">free_windows_user_data</a>, <a class="el" href="dbus-transport-protected_8h_source.html#l00109">windows_user_data</a>, and <a class="el" href="dbus-transport-protected_8h_source.html#l00108">windows_user_function</a>.</p>
<p>Referenced by <a class="el" href="dbus-connection_8c_source.html#l05404">dbus_connection_set_windows_user_function()</a>.</p>
</div>
</div>
<a class="anchor" id="gabe774b134a4bf8c8fc09e6186470874f"></a><!-- doxytag: member="dbus-transport.c::_dbus_transport_try_to_authenticate" ref="gabe774b134a4bf8c8fc09e6186470874f" args="(DBusTransport *transport)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="group__DBusTypes.html#ga39c9cb0f3a2a8ad6f55cc4855d035349">dbus_bool_t</a> <a class="el" href="group__DBusTransport.html#gabe774b134a4bf8c8fc09e6186470874f">_dbus_transport_try_to_authenticate</a> </td>
<td>(</td>
<td class="paramtype"><a class="el" href="structDBusTransport.html">DBusTransport</a> * </td>
<td class="paramname"><em>transport</em></td><td>)</td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Returns <a class="el" href="group__DBusMacros.html#gaa8cecfc5c5c054d2875c03e77b7be15d" title="Expands to "1".">TRUE</a> if we have been authenticated. </p>
<p>It will return <a class="el" href="group__DBusMacros.html#gaa8cecfc5c5c054d2875c03e77b7be15d" title="Expands to "1".">TRUE</a> even if the transport is now disconnected, but was ever authenticated before disconnecting.</p>
<p>If we have not finished authenticating, but we have enough buffered input to finish the job, then this function will do so before it returns.</p>
<p>This used to be called _dbus_transport_get_is_authenticated(), but that name seems inappropriate for a function with side-effects.</p>
<dl class="todo"><dt><b><a class="el" href="todo.html#_todo000067">Todo:</a></b></dt><dd>we drop connection->mutex when calling the unix_user_function, and windows_user_function, which may not be safe really.</dd></dl>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">transport</td><td>the transport </td></tr>
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>whether we're authenticated </dd></dl>
<p>Definition at line <a class="el" href="dbus-transport_8c_source.html#l00724">724</a> of file <a class="el" href="dbus-transport_8c_source.html">dbus-transport.c</a>.</p>
<p>References <a class="el" href="dbus-auth_8c_source.html#l02431">_dbus_auth_do_work()</a>, <a class="el" href="dbus-auth_8c_source.html#l02755">_dbus_auth_get_guid_from_server()</a>, <a class="el" href="dbus-auth_8c_source.html#l02731">_dbus_auth_get_identity()</a>, <a class="el" href="dbus-connection_8c_source.html#l01419">_dbus_connection_ref_unlocked()</a>, <a class="el" href="dbus-connection_8c_source.html#l01442">_dbus_connection_unref_unlocked()</a>, <a class="el" href="dbus-credentials_8c_source.html#l00228">_dbus_credentials_include()</a>, <a class="el" href="dbus-transport_8c_source.html#l00502">_dbus_transport_disconnect()</a>, <a class="el" href="dbus-transport-protected_8h_source.html#l00090">auth</a>, <a class="el" href="dbus-transport-protected_8h_source.html#l00114">authenticated</a>, <a class="el" href="dbus-transport-protected_8h_source.html#l00086">connection</a>, <a class="el" href="dbus-transport-protected_8h_source.html#l00113">disconnected</a>, <a class="el" href="dbus-transport-protected_8h_source.html#l00101">expected_guid</a>, <a class="el" href="group__DBusMacros.html#gaa93f0eb578d23995850d61f7d61c55c1">FALSE</a>, <a class="el" href="dbus-transport-protected_8h_source.html#l00117">is_server</a>, <a class="el" href="group__DBusMacros.html#ga070d2ce7b6bb7e5c05602aa8c308d0c4">NULL</a>, <a class="el" href="dbus-transport-protected_8h_source.html#l00116">receive_credentials_pending</a>, <a class="el" href="dbus-transport-protected_8h_source.html#l00115">send_credentials_pending</a>, <a class="el" href="group__DBusMacros.html#gaa8cecfc5c5c054d2875c03e77b7be15d">TRUE</a>, <a class="el" href="dbus-transport-protected_8h_source.html#l00103">unix_user_function</a>, and <a class="el" href="dbus-transport-protected_8h_source.html#l00108">windows_user_function</a>.</p>
<p>Referenced by <a class="el" href="dbus-transport_8c_source.html#l01101">_dbus_transport_get_dispatch_status()</a>, <a class="el" href="dbus-connection_8c_source.html#l05259">dbus_connection_get_adt_audit_session_data()</a>, <a class="el" href="dbus-connection_8c_source.html#l02995">dbus_connection_get_is_authenticated()</a>, <a class="el" href="dbus-connection_8c_source.html#l05226">dbus_connection_get_unix_process_id()</a>, <a class="el" href="dbus-connection_8c_source.html#l05190">dbus_connection_get_unix_user()</a>, and <a class="el" href="dbus-connection_8c_source.html#l05357">dbus_connection_get_windows_user()</a>.</p>
</div>
</div>
<a class="anchor" id="gab7c53c32a2320c81aae8ce4345762e73"></a><!-- doxytag: member="dbus-transport.c::_dbus_transport_unref" ref="gab7c53c32a2320c81aae8ce4345762e73" args="(DBusTransport *transport)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void <a class="el" href="group__DBusTransport.html#gab7c53c32a2320c81aae8ce4345762e73">_dbus_transport_unref</a> </td>
<td>(</td>
<td class="paramtype"><a class="el" href="structDBusTransport.html">DBusTransport</a> * </td>
<td class="paramname"><em>transport</em></td><td>)</td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Decrements the reference count for the transport. </p>
<p>Disconnects and finalizes the transport if the reference count reaches zero.</p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">transport</td><td>the transport. </td></tr>
</table>
</dd>
</dl>
<p>Definition at line <a class="el" href="dbus-transport_8c_source.html#l00477">477</a> of file <a class="el" href="dbus-transport_8c_source.html">dbus-transport.c</a>.</p>
<p>References <a class="el" href="dbus-transport-protected_8h_source.html#l00043">DBusTransportVTable::finalize</a>, <a class="el" href="group__DBusMacros.html#ga070d2ce7b6bb7e5c05602aa8c308d0c4">NULL</a>, <a class="el" href="dbus-transport-protected_8h_source.html#l00082">refcount</a>, and <a class="el" href="dbus-transport-protected_8h_source.html#l00084">vtable</a>.</p>
<p>Referenced by <a class="el" href="dbus-transport_8c_source.html#l00984">_dbus_transport_do_iteration()</a>, <a class="el" href="dbus-transport_8c_source.html#l00951">_dbus_transport_get_socket_fd()</a>, <a class="el" href="dbus-transport_8c_source.html#l00889">_dbus_transport_handle_watch()</a>, and <a class="el" href="dbus-transport_8c_source.html#l00927">_dbus_transport_set_connection()</a>.</p>
</div>
</div>
</div><!-- contents -->
<hr class="footer"/><address class="footer"><small>
Generated on Thu Mar 3 2016 17:50:34 for D-Bus by  <a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.6.1
</small></address>
</body>
</html>