/usr/share/gtk-doc/html/libinfinity-0.5/InfcSessionProxy.html is in libinfinity-0.5-doc 0.5.5-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>InfcSessionProxy</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.78.1">
<link rel="home" href="index.html" title="libinfinity-0.5 Reference Manual">
<link rel="up" href="ch04.html" title="Libinfinity client side API">
<link rel="prev" href="libinfinity-0.5-InfcNotePlugin.html" title="InfcNotePlugin">
<link rel="next" href="InfcExploreRequest.html" title="InfcExploreRequest">
<meta name="generator" content="GTK-Doc V1.19 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
<tr valign="middle">
<td><a accesskey="p" href="libinfinity-0.5-InfcNotePlugin.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
<td><a accesskey="u" href="ch04.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
<th width="100%" align="center">libinfinity-0.5 Reference Manual</th>
<td><a accesskey="n" href="InfcExploreRequest.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
</tr>
<tr><td colspan="5" class="shortcuts">
<a href="#InfcSessionProxy.synopsis" class="shortcut">Top</a>
|
<a href="#InfcSessionProxy.description" class="shortcut">Description</a>
|
<a href="#InfcSessionProxy.object-hierarchy" class="shortcut">Object Hierarchy</a>
|
<a href="#InfcSessionProxy.implemented-interfaces" class="shortcut">Implemented Interfaces</a>
|
<a href="#InfcSessionProxy.properties" class="shortcut">Properties</a>
</td></tr>
</table>
<div class="refentry">
<a name="InfcSessionProxy"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="InfcSessionProxy.top_of_page"></a>InfcSessionProxy</span></h2>
<p>InfcSessionProxy</p>
</td>
<td valign="top" align="right"></td>
</tr></table></div>
<div class="refsynopsisdiv">
<a name="InfcSessionProxy.synopsis"></a><h2>Synopsis</h2>
<pre class="synopsis"> <a class="link" href="InfcSessionProxy.html#InfcSessionProxy-struct" title="InfcSessionProxy">InfcSessionProxy</a>;
struct <a class="link" href="InfcSessionProxy.html#InfcSessionProxyClass" title="struct InfcSessionProxyClass">InfcSessionProxyClass</a>;
<span class="returnvalue">void</span> <a class="link" href="InfcSessionProxy.html#infc-session-proxy-set-connection" title="infc_session_proxy_set_connection ()">infc_session_proxy_set_connection</a> (<em class="parameter"><code><a class="link" href="InfcSessionProxy.html" title="InfcSessionProxy"><span class="type">InfcSessionProxy</span></a> *proxy</code></em>,
<em class="parameter"><code><a class="link" href="InfCommunicationJoinedGroup.html" title="InfCommunicationJoinedGroup"><span class="type">InfCommunicationJoinedGroup</span></a> *group</code></em>,
<em class="parameter"><code><a class="link" href="InfXmlConnection.html" title="InfXmlConnection"><span class="type">InfXmlConnection</span></a> *connection</code></em>,
<em class="parameter"><code><span class="type">guint</span> seq_id</code></em>);
<a class="link" href="InfcUserRequest.html" title="InfcUserRequest"><span class="returnvalue">InfcUserRequest</span></a> * <a class="link" href="InfcSessionProxy.html#infc-session-proxy-join-user" title="infc_session_proxy_join_user ()">infc_session_proxy_join_user</a> (<em class="parameter"><code><a class="link" href="InfcSessionProxy.html" title="InfcSessionProxy"><span class="type">InfcSessionProxy</span></a> *proxy</code></em>,
<em class="parameter"><code>const <span class="type">GParameter</span> *params</code></em>,
<em class="parameter"><code><span class="type">guint</span> n_params</code></em>,
<em class="parameter"><code><span class="type">GError</span> **error</code></em>);
<a class="link" href="InfSession.html" title="InfSession"><span class="returnvalue">InfSession</span></a> * <a class="link" href="InfcSessionProxy.html#infc-session-proxy-get-session" title="infc_session_proxy_get_session ()">infc_session_proxy_get_session</a> (<em class="parameter"><code><a class="link" href="InfcSessionProxy.html" title="InfcSessionProxy"><span class="type">InfcSessionProxy</span></a> *proxy</code></em>);
<a class="link" href="InfXmlConnection.html" title="InfXmlConnection"><span class="returnvalue">InfXmlConnection</span></a> * <a class="link" href="InfcSessionProxy.html#infc-session-proxy-get-connection" title="infc_session_proxy_get_connection ()">infc_session_proxy_get_connection</a> (<em class="parameter"><code><a class="link" href="InfcSessionProxy.html" title="InfcSessionProxy"><span class="type">InfcSessionProxy</span></a> *proxy</code></em>);
<a class="link" href="InfCommunicationJoinedGroup.html" title="InfCommunicationJoinedGroup"><span class="returnvalue">InfCommunicationJoinedGroup</span></a> * <a class="link" href="InfcSessionProxy.html#infc-session-proxy-get-subscription-group" title="infc_session_proxy_get_subscription_group ()">infc_session_proxy_get_subscription_group</a>
(<em class="parameter"><code><a class="link" href="InfcSessionProxy.html" title="InfcSessionProxy"><span class="type">InfcSessionProxy</span></a> *proxy</code></em>);
</pre>
</div>
<div class="refsect1">
<a name="InfcSessionProxy.object-hierarchy"></a><h2>Object Hierarchy</h2>
<pre class="synopsis">
GObject
+----InfcSessionProxy
</pre>
</div>
<div class="refsect1">
<a name="InfcSessionProxy.implemented-interfaces"></a><h2>Implemented Interfaces</h2>
<p>
InfcSessionProxy implements
<a class="link" href="InfCommunicationObject.html" title="InfCommunicationObject">InfCommunicationObject</a>.</p>
</div>
<div class="refsect1">
<a name="InfcSessionProxy.properties"></a><h2>Properties</h2>
<pre class="synopsis">
"<a class="link" href="InfcSessionProxy.html#InfcSessionProxy--connection" title='The "connection" property'>connection</a>" <a class="link" href="InfXmlConnection.html" title="InfXmlConnection"><span class="type">InfXmlConnection</span></a>* : Read
"<a class="link" href="InfcSessionProxy.html#InfcSessionProxy--session" title='The "session" property'>session</a>" <a class="link" href="InfSession.html" title="InfSession"><span class="type">InfSession</span></a>* : Read / Write / Construct Only
"<a class="link" href="InfcSessionProxy.html#InfcSessionProxy--subscription-group" title='The "subscription-group" property'>subscription-group</a>" <a class="link" href="InfCommunicationJoinedGroup.html" title="InfCommunicationJoinedGroup"><span class="type">InfCommunicationJoinedGroup</span></a>* : Read
</pre>
</div>
<div class="refsect1">
<a name="InfcSessionProxy.description"></a><h2>Description</h2>
<p>
</p>
</div>
<div class="refsect1">
<a name="InfcSessionProxy.details"></a><h2>Details</h2>
<div class="refsect2">
<a name="InfcSessionProxy-struct"></a><h3>InfcSessionProxy</h3>
<pre class="programlisting">typedef struct _InfcSessionProxy InfcSessionProxy;</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="InfcSessionProxyClass"></a><h3>struct InfcSessionProxyClass</h3>
<pre class="programlisting">struct InfcSessionProxyClass {
GObjectClass parent_class;
GError* (*translate_error)(InfcSessionProxy* session,
GQuark domain,
guint code);
};
</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="infc-session-proxy-set-connection"></a><h3>infc_session_proxy_set_connection ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> infc_session_proxy_set_connection (<em class="parameter"><code><a class="link" href="InfcSessionProxy.html" title="InfcSessionProxy"><span class="type">InfcSessionProxy</span></a> *proxy</code></em>,
<em class="parameter"><code><a class="link" href="InfCommunicationJoinedGroup.html" title="InfCommunicationJoinedGroup"><span class="type">InfCommunicationJoinedGroup</span></a> *group</code></em>,
<em class="parameter"><code><a class="link" href="InfXmlConnection.html" title="InfXmlConnection"><span class="type">InfXmlConnection</span></a> *connection</code></em>,
<em class="parameter"><code><span class="type">guint</span> seq_id</code></em>);</pre>
<p>
Sets the subscription connection for the given session. The subscription
connection is the connection through which session requests are transmitted
during subscription.
</p>
<p>
The subscription connection might be set even if the session is in
SYNCHRONIZING state in which case the session is immediately subscribed
after synchronization. Note that no attempt is made to tell the other end
about the subscription.
</p>
<p>
<em class="parameter"><code>seq_id</code></em> should be a sequence identifier obtained from the server side. It
must be the same number that is used on the corresponding <a class="link" href="InfdSessionProxy.html" title="InfdSessionProxy"><span class="type">InfdSessionProxy</span></a>
on the remote side, see <a class="link" href="InfdSessionProxy.html#infd-session-proxy-subscribe-to" title="infd_session_proxy_subscribe_to ()"><code class="function">infd_session_proxy_subscribe_to()</code></a>. Normally
<a class="link" href="InfdDirectory.html" title="InfdDirectory"><span class="type">InfdDirectory</span></a> or <a class="link" href="InfcBrowser.html" title="InfcBrowser"><span class="type">InfcBrowser</span></a>, respectively, take care of passing the
correct sequence identifier.
</p>
<p>
When the subscription connection is being closed or replaced (by a
subsequent call to this function), all pending requests are dropped and
all users are set to be unavailable, but the session will not be closed,
so it may be reused by setting another subscription connection. However,
the session might not be synchronized again, but it is fully okay to close
the session by hand (using inf_session_close) and create a new session
that is synchronized.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>proxy</code></em> :</span></p></td>
<td>A <a class="link" href="InfcSessionProxy.html" title="InfcSessionProxy"><span class="type">InfcSessionProxy</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>group</code></em> :</span></p></td>
<td>A <a class="link" href="InfCommunicationJoinedGroup.html" title="InfCommunicationJoinedGroup"><span class="type">InfCommunicationJoinedGroup</span></a> of subscribed connections. Ignored
if <em class="parameter"><code>connection</code></em> is <code class="literal">NULL</code>.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>connection</code></em> :</span></p></td>
<td>A <a class="link" href="InfXmlConnection.html" title="InfXmlConnection"><span class="type">InfXmlConnection</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>seq_id</code></em> :</span></p></td>
<td>A sequence identifier for <em class="parameter"><code>connection</code></em>. Ignored if <em class="parameter"><code>connection</code></em>
is <code class="literal">NULL</code>.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="infc-session-proxy-join-user"></a><h3>infc_session_proxy_join_user ()</h3>
<pre class="programlisting"><a class="link" href="InfcUserRequest.html" title="InfcUserRequest"><span class="returnvalue">InfcUserRequest</span></a> * infc_session_proxy_join_user (<em class="parameter"><code><a class="link" href="InfcSessionProxy.html" title="InfcSessionProxy"><span class="type">InfcSessionProxy</span></a> *proxy</code></em>,
<em class="parameter"><code>const <span class="type">GParameter</span> *params</code></em>,
<em class="parameter"><code><span class="type">guint</span> n_params</code></em>,
<em class="parameter"><code><span class="type">GError</span> **error</code></em>);</pre>
<p>
Requests a user join for a user with the given properties (which must not
include <a class="link" href="InfUser.html#InfUser--id" title='The "id" property'><span class="type">"id"</span></a> and <a class="link" href="InfUser.html#InfUser--flags" title='The "flags" property'><span class="type">"flags"</span></a> since these are initially set by the
server). The <a class="link" href="InfUser.html#InfUser--status" title='The "status" property'><span class="type">"status"</span></a> property is optional and defaults to
<a class="link" href="InfUser.html#INF-USER-ACTIVE:CAPS"><code class="literal">INF_USER_ACTIVE</code></a> if not given. It must not be <a class="link" href="InfUser.html#INF-USER-UNAVAILABLE:CAPS"><code class="literal">INF_USER_UNAVAILABLE</code></a>.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>proxy</code></em> :</span></p></td>
<td>A <a class="link" href="InfcSessionProxy.html" title="InfcSessionProxy"><span class="type">InfcSessionProxy</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>params</code></em> :</span></p></td>
<td>Construction properties for the InfUser (or derived) object.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>n_params</code></em> :</span></p></td>
<td>Number of parameters.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
<td>Location to store error information.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>A <a class="link" href="InfcUserRequest.html" title="InfcUserRequest"><span class="type">InfcUserRequest</span></a> object that may be used to get notified
when the request succeeds or fails.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="infc-session-proxy-get-session"></a><h3>infc_session_proxy_get_session ()</h3>
<pre class="programlisting"><a class="link" href="InfSession.html" title="InfSession"><span class="returnvalue">InfSession</span></a> * infc_session_proxy_get_session (<em class="parameter"><code><a class="link" href="InfcSessionProxy.html" title="InfcSessionProxy"><span class="type">InfcSessionProxy</span></a> *proxy</code></em>);</pre>
<p>
Returns the session proxied by <em class="parameter"><code>proxy</code></em>, or <code class="literal">NULL</code> if the session has been
closed.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>proxy</code></em> :</span></p></td>
<td>A <a class="link" href="InfcSessionProxy.html" title="InfcSessionProxy"><span class="type">InfcSessionProxy</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>A <a class="link" href="InfSession.html" title="InfSession"><span class="type">InfSession</span></a>, or <code class="literal">NULL</code>.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="infc-session-proxy-get-connection"></a><h3>infc_session_proxy_get_connection ()</h3>
<pre class="programlisting"><a class="link" href="InfXmlConnection.html" title="InfXmlConnection"><span class="returnvalue">InfXmlConnection</span></a> * infc_session_proxy_get_connection (<em class="parameter"><code><a class="link" href="InfcSessionProxy.html" title="InfcSessionProxy"><span class="type">InfcSessionProxy</span></a> *proxy</code></em>);</pre>
<p>
Returns the connection that is used to transmit requests to the publisher
of the session, or <code class="literal">NULL</code> if the session is not subscribed.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>proxy</code></em> :</span></p></td>
<td>A <a class="link" href="InfcSessionProxy.html" title="InfcSessionProxy"><span class="type">InfcSessionProxy</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>A <a class="link" href="InfXmlConnection.html" title="InfXmlConnection"><span class="type">InfXmlConnection</span></a>, or <code class="literal">NULL</code>.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="infc-session-proxy-get-subscription-group"></a><h3>infc_session_proxy_get_subscription_group ()</h3>
<pre class="programlisting"><a class="link" href="InfCommunicationJoinedGroup.html" title="InfCommunicationJoinedGroup"><span class="returnvalue">InfCommunicationJoinedGroup</span></a> * infc_session_proxy_get_subscription_group
(<em class="parameter"><code><a class="link" href="InfcSessionProxy.html" title="InfcSessionProxy"><span class="type">InfcSessionProxy</span></a> *proxy</code></em>);</pre>
<p>
</p>
</div>
</div>
<div class="refsect1">
<a name="InfcSessionProxy.property-details"></a><h2>Property Details</h2>
<div class="refsect2">
<a name="InfcSessionProxy--connection"></a><h3>The <code class="literal">"connection"</code> property</h3>
<pre class="programlisting"> "connection" <a class="link" href="InfXmlConnection.html" title="InfXmlConnection"><span class="type">InfXmlConnection</span></a>* : Read</pre>
<p>The connection with which the session communicates with the server.</p>
</div>
<hr>
<div class="refsect2">
<a name="InfcSessionProxy--session"></a><h3>The <code class="literal">"session"</code> property</h3>
<pre class="programlisting"> "session" <a class="link" href="InfSession.html" title="InfSession"><span class="type">InfSession</span></a>* : Read / Write / Construct Only</pre>
<p>The underlaying session object.</p>
</div>
<hr>
<div class="refsect2">
<a name="InfcSessionProxy--subscription-group"></a><h3>The <code class="literal">"subscription-group"</code> property</h3>
<pre class="programlisting"> "subscription-group" <a class="link" href="InfCommunicationJoinedGroup.html" title="InfCommunicationJoinedGroup"><span class="type">InfCommunicationJoinedGroup</span></a>* : Read</pre>
<p>The communication group of subscribed connections.</p>
</div>
</div>
</div>
<div class="footer">
<hr>
Generated by GTK-Doc V1.19</div>
</body>
</html>
|