This file is indexed.

/usr/share/gtk-doc/html/dee-1.0/DeePeer.html is in libdee-doc 1.0.10-3.

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
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>DeePeer</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
<link rel="home" href="index.html" title="Dee Reference Manual">
<link rel="up" href="ch01.html" title="Peer Discovery">
<link rel="prev" href="DeeClient.html" title="DeeClient">
<link rel="next" href="DeeServer.html" title="DeeServer">
<meta name="generator" content="GTK-Doc V1.18 (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="DeeClient.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
<td><a accesskey="u" href="ch01.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">Dee Reference Manual</th>
<td><a accesskey="n" href="DeeServer.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
</tr>
<tr><td colspan="5" class="shortcuts">
<a href="#DeePeer.synopsis" class="shortcut">Top</a>
                   | 
                  <a href="#DeePeer.description" class="shortcut">Description</a>
                   | 
                  <a href="#DeePeer.object-hierarchy" class="shortcut">Object Hierarchy</a>
                   | 
                  <a href="#DeePeer.properties" class="shortcut">Properties</a>
                   | 
                  <a href="#DeePeer.signals" class="shortcut">Signals</a>
</td></tr>
</table>
<div class="refentry">
<a name="DeePeer"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="DeePeer.top_of_page"></a>DeePeer</span></h2>
<p>DeePeer — Finds other objects with the same swarm-name on the bus.</p>
</td>
<td valign="top" align="right"></td>
</tr></table></div>
<div class="refsynopsisdiv">
<a name="DeePeer.synopsis"></a><h2>Synopsis</h2>
<pre class="synopsis">
#include &lt;dee.h&gt;

#define             <a class="link" href="DeePeer.html#DEE-PEER-DBUS-IFACE:CAPS" title="DEE_PEER_DBUS_IFACE">DEE_PEER_DBUS_IFACE</a>
struct              <a class="link" href="DeePeer.html#DeePeer-struct" title="struct DeePeer">DeePeer</a>;
struct              <a class="link" href="DeePeer.html#DeePeerClass" title="struct DeePeerClass">DeePeerClass</a>;
<span class="returnvalue">GSList</span> *            <a class="link" href="DeePeer.html#dee-peer-get-connections" title="dee_peer_get_connections ()">dee_peer_get_connections</a>            (<em class="parameter"><code><a class="link" href="DeePeer.html" title="DeePeer"><span class="type">DeePeer</span></a> *self</code></em>);
const <span class="returnvalue">gchar</span> *       <a class="link" href="DeePeer.html#dee-peer-get-swarm-leader" title="dee_peer_get_swarm_leader ()">dee_peer_get_swarm_leader</a>           (<em class="parameter"><code><a class="link" href="DeePeer.html" title="DeePeer"><span class="type">DeePeer</span></a> *self</code></em>);
const <span class="returnvalue">gchar</span> *       <a class="link" href="DeePeer.html#dee-peer-get-swarm-name" title="dee_peer_get_swarm_name ()">dee_peer_get_swarm_name</a>             (<em class="parameter"><code><a class="link" href="DeePeer.html" title="DeePeer"><span class="type">DeePeer</span></a> *self</code></em>);
<span class="returnvalue">gboolean</span>            <a class="link" href="DeePeer.html#dee-peer-is-swarm-leader" title="dee_peer_is_swarm_leader ()">dee_peer_is_swarm_leader</a>            (<em class="parameter"><code><a class="link" href="DeePeer.html" title="DeePeer"><span class="type">DeePeer</span></a> *self</code></em>);
<span class="returnvalue">gboolean</span>            <a class="link" href="DeePeer.html#dee-peer-is-swarm-owner" title="dee_peer_is_swarm_owner ()">dee_peer_is_swarm_owner</a>             (<em class="parameter"><code><a class="link" href="DeePeer.html" title="DeePeer"><span class="type">DeePeer</span></a> *self</code></em>);
<span class="returnvalue">gchar</span> **            <a class="link" href="DeePeer.html#dee-peer-list-peers" title="dee_peer_list_peers ()">dee_peer_list_peers</a>                 (<em class="parameter"><code><a class="link" href="DeePeer.html" title="DeePeer"><span class="type">DeePeer</span></a> *self</code></em>);
<a class="link" href="DeePeer.html" title="DeePeer"><span class="returnvalue">DeePeer</span></a> *           <a class="link" href="DeePeer.html#dee-peer-new" title="dee_peer_new ()">dee_peer_new</a>                        (<em class="parameter"><code>const <span class="type">gchar</span> *swarm_name</code></em>);
</pre>
</div>
<div class="refsect1">
<a name="DeePeer.object-hierarchy"></a><h2>Object Hierarchy</h2>
<pre class="synopsis">
  GObject
   +----DeePeer
         +----<a class="link" href="DeeClient.html" title="DeeClient">DeeClient</a>
         +----<a class="link" href="DeeServer.html" title="DeeServer">DeeServer</a>
</pre>
</div>
<div class="refsect1">
<a name="DeePeer.properties"></a><h2>Properties</h2>
<pre class="synopsis">
  "<a class="link" href="DeePeer.html#DeePeer--swarm-leader" title='The "swarm-leader" property'>swarm-leader</a>"             <span class="type">gchar</span>*                : Read
  "<a class="link" href="DeePeer.html#DeePeer--swarm-name" title='The "swarm-name" property'>swarm-name</a>"               <span class="type">gchar</span>*                : Read / Write / Construct
  "<a class="link" href="DeePeer.html#DeePeer--swarm-owner" title='The "swarm-owner" property'>swarm-owner</a>"              <span class="type">gboolean</span>              : Read / Write / Construct Only
</pre>
</div>
<div class="refsect1">
<a name="DeePeer.signals"></a><h2>Signals</h2>
<pre class="synopsis">
  "<a class="link" href="DeePeer.html#DeePeer-connection-acquired" title='The "connection-acquired" signal'>connection-acquired</a>"                            : <code class="literal">Run Last</code>
  "<a class="link" href="DeePeer.html#DeePeer-connection-closed" title='The "connection-closed" signal'>connection-closed</a>"                              : <code class="literal">Run Last</code>
  "<a class="link" href="DeePeer.html#DeePeer-peer-found" title='The "peer-found" signal'>peer-found</a>"                                     : <code class="literal">Run Last</code>
  "<a class="link" href="DeePeer.html#DeePeer-peer-lost" title='The "peer-lost" signal'>peer-lost</a>"                                      : <code class="literal">Run Last</code>
</pre>
</div>
<div class="refsect1">
<a name="DeePeer.description"></a><h2>Description</h2>
<p>
<a class="link" href="DeePeer.html" title="DeePeer"><span class="type">DeePeer</span></a> allows you to build objects that can rendevouz on DBus
without the need for an central registration service. Think of it like
peer-to-peer for your application. The DBus session bus will also implicitly
elect a swarm leader - namely the one owning the swarm name on the bus, but
it's up to the consumer of this API to determine whether swarm leadership has
any concrete responsibilities associated.
</p>
<p>
Peers find eachother through a well-known "swarm-name", which is a
well known DBus name, such as: org.myapp.MyPeers. Choose a namespaced
name that would not normally be used outside of your program.
</p>
<p>
For example:
</p>
<div class="informalexample">
  <table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
    <tbody>
      <tr>
        <td class="listing_lines" align="right"><pre>1
2
3
4
5
6
7
8
9
10
11
12</pre></td>
        <td class="listing_code"><pre class="programlisting"><span class="gtkdoc opt">{</span>
  DeePeer <span class="gtkdoc opt">*</span>peer<span class="gtkdoc opt">;</span>

  peer <span class="gtkdoc opt">=</span> <span class="function">g_object_new</span> <span class="gtkdoc opt">(</span>DBUS_TYPE_PEER<span class="gtkdoc opt">,</span>
                       <span class="string">&quot;swarm-name&quot;</span><span class="gtkdoc opt">,</span> <span class="string">&quot;org.myapp.MyPeers&quot;</span><span class="gtkdoc opt">,</span>
                       NULL<span class="gtkdoc opt">);</span>

  <span class="function">g_signal_connect</span> <span class="gtkdoc opt">(</span>peer<span class="gtkdoc opt">,</span> <span class="string">&quot;peer-found&quot;</span><span class="gtkdoc opt">,</span>
                    <span class="function">G_CALLBACK</span> <span class="gtkdoc opt">(</span>on_peer_found<span class="gtkdoc opt">),</span> NULL<span class="gtkdoc opt">);</span>
  <span class="function">g_signal_connect</span> <span class="gtkdoc opt">(</span>peer<span class="gtkdoc opt">,</span> <span class="string">&quot;peer-lost&quot;</span><span class="gtkdoc opt">,</span>
                    <span class="function">G_CALLBACK</span> <span class="gtkdoc opt">(</span>on_peer_lost<span class="gtkdoc opt">),</span> NULL<span class="gtkdoc opt">);</span>
<span class="gtkdoc opt">}</span></pre></td>
      </tr>
    </tbody>
  </table>
</div>

<p>
</p>
</div>
<div class="refsect1">
<a name="DeePeer.details"></a><h2>Details</h2>
<div class="refsect2">
<a name="DEE-PEER-DBUS-IFACE:CAPS"></a><h3>DEE_PEER_DBUS_IFACE</h3>
<pre class="programlisting">#define DEE_PEER_DBUS_IFACE "com.canonical.Dee.Peer"
</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="DeePeer-struct"></a><h3>struct DeePeer</h3>
<pre class="programlisting">struct DeePeer;</pre>
<p>
All fields in the DeePeer structure are private and should never be
accessed directly
</p>
</div>
<hr>
<div class="refsect2">
<a name="DeePeerClass"></a><h3>struct DeePeerClass</h3>
<pre class="programlisting">struct DeePeerClass {
  /*&lt; signals &gt;*/
  void (*peer_found)          (DeePeer *self, const gchar *name);
  void (*peer_lost)           (DeePeer *self, const gchar *name);
  void (*connection_acquired) (DeePeer *self, GDBusConnection *connection);
  void (*connection_closed)   (DeePeer *self, GDBusConnection *connection);

  /*&lt; vtable &gt;*/
  const gchar* (*get_swarm_leader)  (DeePeer *self);
  gboolean     (*is_swarm_leader)   (DeePeer *self);
  GSList*      (*get_connections)   (DeePeer *self);
  gchar**      (*list_peers)        (DeePeer *self);
};
</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="dee-peer-get-connections"></a><h3>dee_peer_get_connections ()</h3>
<pre class="programlisting"><span class="returnvalue">GSList</span> *            dee_peer_get_connections            (<em class="parameter"><code><a class="link" href="DeePeer.html" title="DeePeer"><span class="type">DeePeer</span></a> *self</code></em>);</pre>
<p>
Gets list of <span class="type">GDBusConnection</span> instances used by this <a class="link" href="DeePeer.html" title="DeePeer"><span class="type">DeePeer</span></a> instance.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>self</code></em> :</span></p></td>
<td>a <a class="link" href="DeePeer.html" title="DeePeer"><span class="type">DeePeer</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>List of connections. <span class="annotation">[<acronym title="Free data container after the code is done."><span class="acronym">transfer container</span></acronym>][<acronym title="Generics and defining elements of containers and arrays."><span class="acronym">element-type</span></acronym> Gio.DBusConnection]</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="dee-peer-get-swarm-leader"></a><h3>dee_peer_get_swarm_leader ()</h3>
<pre class="programlisting">const <span class="returnvalue">gchar</span> *       dee_peer_get_swarm_leader           (<em class="parameter"><code><a class="link" href="DeePeer.html" title="DeePeer"><span class="type">DeePeer</span></a> *self</code></em>);</pre>
<p>
In case this peer is connected to a message bus, gets the unique DBus
address of the current swarm leader, otherwise returns id of the leader.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>self</code></em> :</span></p></td>
<td>a <a class="link" href="DeePeer.html" title="DeePeer"><span class="type">DeePeer</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>Unique DBus address of the current swarm leader,
possibly <code class="literal">NULL</code> if the leader has not been detected yet</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="dee-peer-get-swarm-name"></a><h3>dee_peer_get_swarm_name ()</h3>
<pre class="programlisting">const <span class="returnvalue">gchar</span> *       dee_peer_get_swarm_name             (<em class="parameter"><code><a class="link" href="DeePeer.html" title="DeePeer"><span class="type">DeePeer</span></a> *self</code></em>);</pre>
<p>
Gets the unique name for this swarm. The swarm leader is the Peer owning
this name on the session bus.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>self</code></em> :</span></p></td>
<td>a <a class="link" href="DeePeer.html" title="DeePeer"><span class="type">DeePeer</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>The swarm name</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="dee-peer-is-swarm-leader"></a><h3>dee_peer_is_swarm_leader ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span>            dee_peer_is_swarm_leader            (<em class="parameter"><code><a class="link" href="DeePeer.html" title="DeePeer"><span class="type">DeePeer</span></a> *self</code></em>);</pre>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>self</code></em> :</span></p></td>
<td>a <a class="link" href="DeePeer.html" title="DeePeer"><span class="type">DeePeer</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>
<code class="literal">TRUE</code> if and only if this peer owns the swarm name on
the session bus</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="dee-peer-is-swarm-owner"></a><h3>dee_peer_is_swarm_owner ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span>            dee_peer_is_swarm_owner             (<em class="parameter"><code><a class="link" href="DeePeer.html" title="DeePeer"><span class="type">DeePeer</span></a> *self</code></em>);</pre>
<p>
Gets the value of the :swarm-owner property.
</p>
<p>
Note that this does NOT mean that the peer is leader of the swarm! Check also
<a class="link" href="DeePeer.html#dee-peer-is-swarm-leader" title="dee_peer_is_swarm_leader ()"><code class="function">dee_peer_is_swarm_leader()</code></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>self</code></em> :</span></p></td>
<td>a <a class="link" href="DeePeer.html" title="DeePeer"><span class="type">DeePeer</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>TRUE if the :swarm-owner property was set during construction.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="dee-peer-list-peers"></a><h3>dee_peer_list_peers ()</h3>
<pre class="programlisting"><span class="returnvalue">gchar</span> **            dee_peer_list_peers                 (<em class="parameter"><code><a class="link" href="DeePeer.html" title="DeePeer"><span class="type">DeePeer</span></a> *self</code></em>);</pre>
<p>
Gets list of all peers currently in this swarm.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>self</code></em> :</span></p></td>
<td>a <a class="link" href="DeePeer.html" title="DeePeer"><span class="type">DeePeer</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>List of peers (free using <code class="function">g_strfreev()</code>). <span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="dee-peer-new"></a><h3>dee_peer_new ()</h3>
<pre class="programlisting"><a class="link" href="DeePeer.html" title="DeePeer"><span class="returnvalue">DeePeer</span></a> *           dee_peer_new                        (<em class="parameter"><code>const <span class="type">gchar</span> *swarm_name</code></em>);</pre>
<p>
Create a new <a class="link" href="DeePeer.html" title="DeePeer"><span class="type">DeePeer</span></a>. The peer will immediately connect to the swarm
and start the peer discovery.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>swarm_name</code></em> :</span></p></td>
<td>The name of the swarm to join.
Fx "org.example.DataProviders"</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>A newly constructed <a class="link" href="DeePeer.html" title="DeePeer"><span class="type">DeePeer</span></a>.
Free with <code class="function">g_object_unref()</code>. <span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span>
</td>
</tr>
</tbody>
</table></div>
</div>
</div>
<div class="refsect1">
<a name="DeePeer.property-details"></a><h2>Property Details</h2>
<div class="refsect2">
<a name="DeePeer--swarm-leader"></a><h3>The <code class="literal">"swarm-leader"</code> property</h3>
<pre class="programlisting">  "swarm-leader"             <span class="type">gchar</span>*                : Read</pre>
<p>Unique DBus address of the swarm leader.</p>
<p>Default value: NULL</p>
</div>
<hr>
<div class="refsect2">
<a name="DeePeer--swarm-name"></a><h3>The <code class="literal">"swarm-name"</code> property</h3>
<pre class="programlisting">  "swarm-name"               <span class="type">gchar</span>*                : Read / Write / Construct</pre>
<p>Well-known name to find other peers with.</p>
<p>Default value: NULL</p>
</div>
<hr>
<div class="refsect2">
<a name="DeePeer--swarm-owner"></a><h3>The <code class="literal">"swarm-owner"</code> property</h3>
<pre class="programlisting">  "swarm-owner"              <span class="type">gboolean</span>              : Read / Write / Construct Only</pre>
<p>Try to assume leadership of the swarm.</p>
<p>Default value: FALSE</p>
</div>
</div>
<div class="refsect1">
<a name="DeePeer.signal-details"></a><h2>Signal Details</h2>
<div class="refsect2">
<a name="DeePeer-connection-acquired"></a><h3>The <code class="literal">"connection-acquired"</code> signal</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                user_function                      (<a class="link" href="DeePeer.html" title="DeePeer"><span class="type">DeePeer</span></a>         *deepeer,
                                                        <span class="type">GDBusConnection</span> *arg1,
                                                        <span class="type">gpointer</span>         user_data)      : <code class="literal">Run Last</code></pre>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>deepeer</code></em> :</span></p></td>
<td>the object which received the signal.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="DeePeer-connection-closed"></a><h3>The <code class="literal">"connection-closed"</code> signal</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                user_function                      (<a class="link" href="DeePeer.html" title="DeePeer"><span class="type">DeePeer</span></a>         *self,
                                                        <span class="type">GDBusConnection</span> *connection,
                                                        <span class="type">gpointer</span>         user_data)       : <code class="literal">Run Last</code></pre>
<p>
Connect to this signal to be notified when peers close
their <span class="type">GDBusConnection</span>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>self</code></em> :</span></p></td>
<td>the <a class="link" href="DeePeer.html" title="DeePeer"><span class="type">DeePeer</span></a> on which the signal is emitted</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>connection</code></em> :</span></p></td>
<td>the closed <span class="type">GDBusConnection</span>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="DeePeer-peer-found"></a><h3>The <code class="literal">"peer-found"</code> signal</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                user_function                      (<a class="link" href="DeePeer.html" title="DeePeer"><span class="type">DeePeer</span></a> *self,
                                                        <span class="type">gchar</span>   *name,
                                                        <span class="type">gpointer</span> user_data)      : <code class="literal">Run Last</code></pre>
<p>
Connect to this signal to be notified of existing and new peers that are
  in your swarm.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>self</code></em> :</span></p></td>
<td>the <a class="link" href="DeePeer.html" title="DeePeer"><span class="type">DeePeer</span></a> on which the signal is emitted</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>name</code></em> :</span></p></td>
<td>the DBus name of the object found</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="DeePeer-peer-lost"></a><h3>The <code class="literal">"peer-lost"</code> signal</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                user_function                      (<a class="link" href="DeePeer.html" title="DeePeer"><span class="type">DeePeer</span></a> *self,
                                                        <span class="type">gchar</span>   *name,
                                                        <span class="type">gpointer</span> user_data)      : <code class="literal">Run Last</code></pre>
<p>
Connect to this signal to be notified when peers disconnect from the swarm
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>self</code></em> :</span></p></td>
<td>the <a class="link" href="DeePeer.html" title="DeePeer"><span class="type">DeePeer</span></a> on which the signal is emitted</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>name</code></em> :</span></p></td>
<td>the DBus name of the object that disconnected</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
</div>
</div>
</div>
<div class="footer">
<hr>
          Generated by GTK-Doc V1.18</div>
</body>
</html>