journeta 0.1.7 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +8 -0
- data/Gemfile.lock +20 -0
- data/{History.txt → HISTORY} +13 -1
- data/LICENSE +51 -0
- data/License.txt +2 -2
- data/{README.txt → README.rdoc} +12 -17
- data/Rakefile +46 -112
- data/VERSION +1 -0
- data/{examples/instant_messenger.rb → bin/journeta_instant_messenger.rb} +13 -0
- data/bin/journeta_mock_peers.rb +32 -0
- data/{examples/network_status.rb → bin/journeta_network_status.rb} +0 -0
- data/bin/journeta_peer_fuzzer.rb +54 -0
- data/{examples/queue_client.rb → bin/journeta_queue_client.rb} +0 -0
- data/{examples/queue_server.rb → bin/journeta_queue_server.rb} +0 -0
- data/bin/journeta_thread_leak_check.rb +16 -0
- data/bin/journeta_top.rb +73 -0
- data/{examples/instant_messenger_gui.rb → broken/journeta_instant_messenger_gui.rb} +0 -2
- data/broken/journeta_instant_messenger_shoes.rb +52 -0
- data/lib/diff.rb +280 -0
- data/lib/journeta.rb +1 -0
- data/lib/journeta/asynchronous.rb +2 -2
- data/lib/journeta/exception.rb +8 -0
- data/lib/journeta/journeta_engine.rb +4 -5
- data/lib/journeta/logger.rb +1 -1
- data/lib/journeta/peer_connection.rb +2 -2
- data/lib/journeta/peer_listener.rb +2 -2
- data/lib/journeta/presence_broadcaster.rb +19 -5
- data/lib/journeta/presence_listener.rb +8 -4
- data/lib/journeta/version.rb +6 -4
- data/rdoc/Array.html +199 -0
- data/rdoc/Diff.html +714 -0
- data/rdoc/Diffable.html +409 -0
- data/rdoc/Journeta.html +288 -0
- data/rdoc/Journeta/Asynchronous.html +429 -0
- data/rdoc/Journeta/Common.html +205 -0
- data/rdoc/Journeta/Common/BasicMessage.html +228 -0
- data/rdoc/Journeta/Common/DummyPeerHandler.html +237 -0
- data/rdoc/Journeta/Common/Job.html +279 -0
- data/rdoc/Journeta/Common/Shutdown.html +236 -0
- data/rdoc/Journeta/DefaultPeerHandler.html +248 -0
- data/rdoc/Journeta/DefaultPeerRegisteredHandler.html +249 -0
- data/rdoc/Journeta/DefaultPeerUnregisteredHandler.html +249 -0
- data/rdoc/Journeta/DefaultPeerUpdatedHandler.html +249 -0
- data/rdoc/Journeta/Engine.html +953 -0
- data/rdoc/Journeta/Logger.html +237 -0
- data/rdoc/Journeta/NotImplementedException.html +188 -0
- data/rdoc/Journeta/PeerConnection.html +549 -0
- data/rdoc/Journeta/PeerListener.html +276 -0
- data/rdoc/Journeta/PeerRegistry.html +804 -0
- data/rdoc/Journeta/PresenceBroadcaster.html +306 -0
- data/rdoc/Journeta/PresenceListener.html +300 -0
- data/rdoc/Journeta/PresenceMessage.html +321 -0
- data/rdoc/Journeta/VERSION.html +181 -0
- data/rdoc/README_rdoc.html +196 -0
- data/rdoc/String.html +199 -0
- data/rdoc/created.rid +20 -0
- data/rdoc/index.html +212 -0
- data/rdoc/lib/diff_rb.html +52 -0
- data/rdoc/lib/journeta/asynchronous_rb.html +60 -0
- data/rdoc/lib/journeta/common/basic_message_rb.html +52 -0
- data/rdoc/lib/journeta/common/dummy_peer_handler_rb.html +52 -0
- data/rdoc/lib/journeta/common/job_rb.html +52 -0
- data/rdoc/lib/journeta/common/shutdown_rb.html +52 -0
- data/rdoc/lib/journeta/exception_rb.html +55 -0
- data/rdoc/lib/journeta/journeta_engine_rb.html +62 -0
- data/rdoc/lib/journeta/logger_rb.html +55 -0
- data/rdoc/lib/journeta/peer_connection_rb.html +58 -0
- data/rdoc/lib/journeta/peer_handler_rb.html +52 -0
- data/rdoc/lib/journeta/peer_listener_rb.html +60 -0
- data/rdoc/lib/journeta/peer_registry_rb.html +54 -0
- data/rdoc/lib/journeta/presence_broadcaster_rb.html +57 -0
- data/rdoc/lib/journeta/presence_listener_rb.html +62 -0
- data/rdoc/lib/journeta/presence_message_rb.html +52 -0
- data/rdoc/lib/journeta/version_rb.html +52 -0
- data/rdoc/lib/journeta_rb.html +91 -0
- data/rdoc/rdoc.css +706 -0
- data/test/helper.rb +19 -0
- data/test/test_lifecycle.rb +49 -9
- data/website/images/arrow.png +0 -0
- data/website/images/banner.jpg +0 -0
- data/website/images/content_shadow.png +0 -0
- data/website/images/content_side.png +0 -0
- data/website/images/header.jpg +0 -0
- data/website/images/header_side.jpg +0 -0
- data/website/index.html +1 -1
- data/website/index.txt +1 -1
- data/website/stylesheets/reset.css +30 -0
- data/website/stylesheets/screen.css +1 -1
- metadata +152 -46
- data/test/test_event_broadcaster.rb +0 -15
- data/test/test_helper.rb +0 -4
- data/test/test_journeta.rb +0 -11
@@ -0,0 +1,249 @@
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
2
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
3
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
4
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
5
|
+
<head>
|
6
|
+
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
|
7
|
+
|
8
|
+
<title>Class: Journeta::DefaultPeerUnregisteredHandler</title>
|
9
|
+
|
10
|
+
<link rel="stylesheet" href="../rdoc.css" type="text/css" media="screen" />
|
11
|
+
|
12
|
+
<script src="../js/jquery.js" type="text/javascript"
|
13
|
+
charset="utf-8"></script>
|
14
|
+
<script src="../js/thickbox-compressed.js" type="text/javascript"
|
15
|
+
charset="utf-8"></script>
|
16
|
+
<script src="../js/quicksearch.js" type="text/javascript"
|
17
|
+
charset="utf-8"></script>
|
18
|
+
<script src="../js/darkfish.js" type="text/javascript"
|
19
|
+
charset="utf-8"></script>
|
20
|
+
|
21
|
+
</head>
|
22
|
+
<body class="class">
|
23
|
+
|
24
|
+
<div id="metadata">
|
25
|
+
<div id="home-metadata">
|
26
|
+
<div id="home-section" class="section">
|
27
|
+
<h3 class="section-header">
|
28
|
+
<a href="../index.html">Home</a>
|
29
|
+
<a href="../index.html#classes">Classes</a>
|
30
|
+
<a href="../index.html#methods">Methods</a>
|
31
|
+
</h3>
|
32
|
+
</div>
|
33
|
+
</div>
|
34
|
+
|
35
|
+
<div id="file-metadata">
|
36
|
+
<div id="file-list-section" class="section">
|
37
|
+
<h3 class="section-header">In Files</h3>
|
38
|
+
<div class="section-body">
|
39
|
+
<ul>
|
40
|
+
|
41
|
+
<li><a href="../lib/journeta/peer_handler_rb.html?TB_iframe=true&height=550&width=785"
|
42
|
+
class="thickbox" title="lib/journeta/peer_handler.rb">lib/journeta/peer_handler.rb</a></li>
|
43
|
+
|
44
|
+
</ul>
|
45
|
+
</div>
|
46
|
+
</div>
|
47
|
+
|
48
|
+
|
49
|
+
</div>
|
50
|
+
|
51
|
+
<div id="class-metadata">
|
52
|
+
|
53
|
+
<!-- Parent Class -->
|
54
|
+
|
55
|
+
<div id="parent-class-section" class="section">
|
56
|
+
<h3 class="section-header">Parent</h3>
|
57
|
+
|
58
|
+
<p class="link">Object</p>
|
59
|
+
|
60
|
+
</div>
|
61
|
+
|
62
|
+
|
63
|
+
<!-- Namespace Contents -->
|
64
|
+
|
65
|
+
|
66
|
+
<!-- Method Quickref -->
|
67
|
+
|
68
|
+
<div id="method-list-section" class="section">
|
69
|
+
<h3 class="section-header">Methods</h3>
|
70
|
+
<ul class="link-list">
|
71
|
+
|
72
|
+
<li><a href="#method-i-call">#call</a></li>
|
73
|
+
|
74
|
+
</ul>
|
75
|
+
</div>
|
76
|
+
|
77
|
+
|
78
|
+
<!-- Included Modules -->
|
79
|
+
|
80
|
+
<div id="includes-section" class="section">
|
81
|
+
<h3 class="section-header">Included Modules</h3>
|
82
|
+
<ul class="link-list">
|
83
|
+
|
84
|
+
|
85
|
+
<li><span class="include">Logger</span></li>
|
86
|
+
|
87
|
+
|
88
|
+
</ul>
|
89
|
+
</div>
|
90
|
+
|
91
|
+
</div>
|
92
|
+
|
93
|
+
<div id="project-metadata">
|
94
|
+
|
95
|
+
|
96
|
+
<div id="fileindex-section" class="section project-section">
|
97
|
+
<h3 class="section-header">Files</h3>
|
98
|
+
<ul>
|
99
|
+
|
100
|
+
<li class="file"><a href="../README_rdoc.html">README.rdoc</a></li>
|
101
|
+
|
102
|
+
</ul>
|
103
|
+
</div>
|
104
|
+
|
105
|
+
|
106
|
+
<div id="classindex-section" class="section project-section">
|
107
|
+
<h3 class="section-header">Class Index
|
108
|
+
<span class="search-toggle"><img src="../images/find.png"
|
109
|
+
height="16" width="16" alt="[+]"
|
110
|
+
title="show/hide quicksearch" /></span></h3>
|
111
|
+
<form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
|
112
|
+
<fieldset>
|
113
|
+
<legend>Quicksearch</legend>
|
114
|
+
<input type="text" name="quicksearch" value=""
|
115
|
+
class="quicksearch-field" />
|
116
|
+
</fieldset>
|
117
|
+
</form>
|
118
|
+
|
119
|
+
<ul class="link-list">
|
120
|
+
|
121
|
+
<li><a href="../Journeta/Asynchronous.html">Journeta::Asynchronous</a></li>
|
122
|
+
|
123
|
+
<li><a href="../Journeta/Common.html">Journeta::Common</a></li>
|
124
|
+
|
125
|
+
<li><a href="../Journeta/Common/BasicMessage.html">Journeta::Common::BasicMessage</a></li>
|
126
|
+
|
127
|
+
<li><a href="../Journeta/Common/DummyPeerHandler.html">Journeta::Common::DummyPeerHandler</a></li>
|
128
|
+
|
129
|
+
<li><a href="../Journeta/Common/Job.html">Journeta::Common::Job</a></li>
|
130
|
+
|
131
|
+
<li><a href="../Journeta/Common/Shutdown.html">Journeta::Common::Shutdown</a></li>
|
132
|
+
|
133
|
+
<li><a href="../Journeta/DefaultPeerHandler.html">Journeta::DefaultPeerHandler</a></li>
|
134
|
+
|
135
|
+
<li><a href="../Journeta/DefaultPeerRegisteredHandler.html">Journeta::DefaultPeerRegisteredHandler</a></li>
|
136
|
+
|
137
|
+
<li><a href="../Journeta/DefaultPeerUnregisteredHandler.html">Journeta::DefaultPeerUnregisteredHandler</a></li>
|
138
|
+
|
139
|
+
<li><a href="../Journeta/DefaultPeerUpdatedHandler.html">Journeta::DefaultPeerUpdatedHandler</a></li>
|
140
|
+
|
141
|
+
<li><a href="../Journeta/Engine.html">Journeta::Engine</a></li>
|
142
|
+
|
143
|
+
<li><a href="../Journeta/Logger.html">Journeta::Logger</a></li>
|
144
|
+
|
145
|
+
<li><a href="../Journeta/NotImplementedException.html">Journeta::NotImplementedException</a></li>
|
146
|
+
|
147
|
+
<li><a href="../Journeta/PeerConnection.html">Journeta::PeerConnection</a></li>
|
148
|
+
|
149
|
+
<li><a href="../Journeta/PeerListener.html">Journeta::PeerListener</a></li>
|
150
|
+
|
151
|
+
<li><a href="../Journeta/PeerRegistry.html">Journeta::PeerRegistry</a></li>
|
152
|
+
|
153
|
+
<li><a href="../Journeta/PresenceBroadcaster.html">Journeta::PresenceBroadcaster</a></li>
|
154
|
+
|
155
|
+
<li><a href="../Journeta/PresenceListener.html">Journeta::PresenceListener</a></li>
|
156
|
+
|
157
|
+
<li><a href="../Journeta/PresenceMessage.html">Journeta::PresenceMessage</a></li>
|
158
|
+
|
159
|
+
<li><a href="../Array.html">Array</a></li>
|
160
|
+
|
161
|
+
<li><a href="../Diff.html">Diff</a></li>
|
162
|
+
|
163
|
+
<li><a href="../Diffable.html">Diffable</a></li>
|
164
|
+
|
165
|
+
<li><a href="../String.html">String</a></li>
|
166
|
+
|
167
|
+
</ul>
|
168
|
+
<div id="no-class-search-results" style="display: none;">No matching classes.</div>
|
169
|
+
</div>
|
170
|
+
|
171
|
+
|
172
|
+
</div>
|
173
|
+
</div>
|
174
|
+
|
175
|
+
<div id="documentation">
|
176
|
+
<h1 class="class">Journeta::DefaultPeerUnregisteredHandler</h1>
|
177
|
+
|
178
|
+
<div id="description">
|
179
|
+
|
180
|
+
</div>
|
181
|
+
|
182
|
+
<!-- Constants -->
|
183
|
+
|
184
|
+
|
185
|
+
<!-- Attributes -->
|
186
|
+
|
187
|
+
|
188
|
+
<!-- Methods -->
|
189
|
+
|
190
|
+
<div id="public-instance-method-details" class="method-section section">
|
191
|
+
<h3 class="section-header">Public Instance Methods</h3>
|
192
|
+
|
193
|
+
|
194
|
+
<div id="call-method" class="method-detail ">
|
195
|
+
<a name="method-i-call"></a>
|
196
|
+
|
197
|
+
<div class="method-heading">
|
198
|
+
|
199
|
+
<span class="method-name">call</span><span
|
200
|
+
class="method-args">(peer)</span>
|
201
|
+
<span class="method-click-advice">click to toggle source</span>
|
202
|
+
|
203
|
+
</div>
|
204
|
+
|
205
|
+
<div class="method-description">
|
206
|
+
|
207
|
+
|
208
|
+
|
209
|
+
|
210
|
+
|
211
|
+
<div class="method-source-code"
|
212
|
+
id="call-source">
|
213
|
+
<pre>
|
214
|
+
<span class="ruby-comment cmt"># File lib/journeta/peer_handler.rb, line 30</span>
|
215
|
+
30: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">call</span>(<span class="ruby-identifier">peer</span>)
|
216
|
+
31: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">peer</span>.<span class="ruby-identifier">nil?</span> <span class="ruby-keyword kw">or</span> <span class="ruby-identifier">peer</span>.<span class="ruby-identifier">uuid</span>.<span class="ruby-identifier">nil?</span>
|
217
|
+
32: <span class="ruby-identifier">putsd</span>(<span class="ruby-node">"Peer unregistration event handled! #{peer.uuid}"</span>)
|
218
|
+
33: <span class="ruby-keyword kw">end</span></pre>
|
219
|
+
</div>
|
220
|
+
|
221
|
+
</div>
|
222
|
+
|
223
|
+
|
224
|
+
|
225
|
+
|
226
|
+
</div>
|
227
|
+
|
228
|
+
|
229
|
+
</div>
|
230
|
+
|
231
|
+
|
232
|
+
</div>
|
233
|
+
|
234
|
+
|
235
|
+
<div id="rdoc-debugging-section-dump" class="debugging-section">
|
236
|
+
|
237
|
+
<p>Disabled; run with --debug to generate this.</p>
|
238
|
+
|
239
|
+
</div>
|
240
|
+
|
241
|
+
<div id="validator-badges">
|
242
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
243
|
+
<p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
|
244
|
+
Rdoc Generator</a> 1.1.6</small>.</p>
|
245
|
+
</div>
|
246
|
+
|
247
|
+
</body>
|
248
|
+
</html>
|
249
|
+
|
@@ -0,0 +1,249 @@
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
2
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
3
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
4
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
5
|
+
<head>
|
6
|
+
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
|
7
|
+
|
8
|
+
<title>Class: Journeta::DefaultPeerUpdatedHandler</title>
|
9
|
+
|
10
|
+
<link rel="stylesheet" href="../rdoc.css" type="text/css" media="screen" />
|
11
|
+
|
12
|
+
<script src="../js/jquery.js" type="text/javascript"
|
13
|
+
charset="utf-8"></script>
|
14
|
+
<script src="../js/thickbox-compressed.js" type="text/javascript"
|
15
|
+
charset="utf-8"></script>
|
16
|
+
<script src="../js/quicksearch.js" type="text/javascript"
|
17
|
+
charset="utf-8"></script>
|
18
|
+
<script src="../js/darkfish.js" type="text/javascript"
|
19
|
+
charset="utf-8"></script>
|
20
|
+
|
21
|
+
</head>
|
22
|
+
<body class="class">
|
23
|
+
|
24
|
+
<div id="metadata">
|
25
|
+
<div id="home-metadata">
|
26
|
+
<div id="home-section" class="section">
|
27
|
+
<h3 class="section-header">
|
28
|
+
<a href="../index.html">Home</a>
|
29
|
+
<a href="../index.html#classes">Classes</a>
|
30
|
+
<a href="../index.html#methods">Methods</a>
|
31
|
+
</h3>
|
32
|
+
</div>
|
33
|
+
</div>
|
34
|
+
|
35
|
+
<div id="file-metadata">
|
36
|
+
<div id="file-list-section" class="section">
|
37
|
+
<h3 class="section-header">In Files</h3>
|
38
|
+
<div class="section-body">
|
39
|
+
<ul>
|
40
|
+
|
41
|
+
<li><a href="../lib/journeta/peer_handler_rb.html?TB_iframe=true&height=550&width=785"
|
42
|
+
class="thickbox" title="lib/journeta/peer_handler.rb">lib/journeta/peer_handler.rb</a></li>
|
43
|
+
|
44
|
+
</ul>
|
45
|
+
</div>
|
46
|
+
</div>
|
47
|
+
|
48
|
+
|
49
|
+
</div>
|
50
|
+
|
51
|
+
<div id="class-metadata">
|
52
|
+
|
53
|
+
<!-- Parent Class -->
|
54
|
+
|
55
|
+
<div id="parent-class-section" class="section">
|
56
|
+
<h3 class="section-header">Parent</h3>
|
57
|
+
|
58
|
+
<p class="link">Object</p>
|
59
|
+
|
60
|
+
</div>
|
61
|
+
|
62
|
+
|
63
|
+
<!-- Namespace Contents -->
|
64
|
+
|
65
|
+
|
66
|
+
<!-- Method Quickref -->
|
67
|
+
|
68
|
+
<div id="method-list-section" class="section">
|
69
|
+
<h3 class="section-header">Methods</h3>
|
70
|
+
<ul class="link-list">
|
71
|
+
|
72
|
+
<li><a href="#method-i-call">#call</a></li>
|
73
|
+
|
74
|
+
</ul>
|
75
|
+
</div>
|
76
|
+
|
77
|
+
|
78
|
+
<!-- Included Modules -->
|
79
|
+
|
80
|
+
<div id="includes-section" class="section">
|
81
|
+
<h3 class="section-header">Included Modules</h3>
|
82
|
+
<ul class="link-list">
|
83
|
+
|
84
|
+
|
85
|
+
<li><span class="include">Logger</span></li>
|
86
|
+
|
87
|
+
|
88
|
+
</ul>
|
89
|
+
</div>
|
90
|
+
|
91
|
+
</div>
|
92
|
+
|
93
|
+
<div id="project-metadata">
|
94
|
+
|
95
|
+
|
96
|
+
<div id="fileindex-section" class="section project-section">
|
97
|
+
<h3 class="section-header">Files</h3>
|
98
|
+
<ul>
|
99
|
+
|
100
|
+
<li class="file"><a href="../README_rdoc.html">README.rdoc</a></li>
|
101
|
+
|
102
|
+
</ul>
|
103
|
+
</div>
|
104
|
+
|
105
|
+
|
106
|
+
<div id="classindex-section" class="section project-section">
|
107
|
+
<h3 class="section-header">Class Index
|
108
|
+
<span class="search-toggle"><img src="../images/find.png"
|
109
|
+
height="16" width="16" alt="[+]"
|
110
|
+
title="show/hide quicksearch" /></span></h3>
|
111
|
+
<form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
|
112
|
+
<fieldset>
|
113
|
+
<legend>Quicksearch</legend>
|
114
|
+
<input type="text" name="quicksearch" value=""
|
115
|
+
class="quicksearch-field" />
|
116
|
+
</fieldset>
|
117
|
+
</form>
|
118
|
+
|
119
|
+
<ul class="link-list">
|
120
|
+
|
121
|
+
<li><a href="../Journeta/Asynchronous.html">Journeta::Asynchronous</a></li>
|
122
|
+
|
123
|
+
<li><a href="../Journeta/Common.html">Journeta::Common</a></li>
|
124
|
+
|
125
|
+
<li><a href="../Journeta/Common/BasicMessage.html">Journeta::Common::BasicMessage</a></li>
|
126
|
+
|
127
|
+
<li><a href="../Journeta/Common/DummyPeerHandler.html">Journeta::Common::DummyPeerHandler</a></li>
|
128
|
+
|
129
|
+
<li><a href="../Journeta/Common/Job.html">Journeta::Common::Job</a></li>
|
130
|
+
|
131
|
+
<li><a href="../Journeta/Common/Shutdown.html">Journeta::Common::Shutdown</a></li>
|
132
|
+
|
133
|
+
<li><a href="../Journeta/DefaultPeerHandler.html">Journeta::DefaultPeerHandler</a></li>
|
134
|
+
|
135
|
+
<li><a href="../Journeta/DefaultPeerRegisteredHandler.html">Journeta::DefaultPeerRegisteredHandler</a></li>
|
136
|
+
|
137
|
+
<li><a href="../Journeta/DefaultPeerUnregisteredHandler.html">Journeta::DefaultPeerUnregisteredHandler</a></li>
|
138
|
+
|
139
|
+
<li><a href="../Journeta/DefaultPeerUpdatedHandler.html">Journeta::DefaultPeerUpdatedHandler</a></li>
|
140
|
+
|
141
|
+
<li><a href="../Journeta/Engine.html">Journeta::Engine</a></li>
|
142
|
+
|
143
|
+
<li><a href="../Journeta/Logger.html">Journeta::Logger</a></li>
|
144
|
+
|
145
|
+
<li><a href="../Journeta/NotImplementedException.html">Journeta::NotImplementedException</a></li>
|
146
|
+
|
147
|
+
<li><a href="../Journeta/PeerConnection.html">Journeta::PeerConnection</a></li>
|
148
|
+
|
149
|
+
<li><a href="../Journeta/PeerListener.html">Journeta::PeerListener</a></li>
|
150
|
+
|
151
|
+
<li><a href="../Journeta/PeerRegistry.html">Journeta::PeerRegistry</a></li>
|
152
|
+
|
153
|
+
<li><a href="../Journeta/PresenceBroadcaster.html">Journeta::PresenceBroadcaster</a></li>
|
154
|
+
|
155
|
+
<li><a href="../Journeta/PresenceListener.html">Journeta::PresenceListener</a></li>
|
156
|
+
|
157
|
+
<li><a href="../Journeta/PresenceMessage.html">Journeta::PresenceMessage</a></li>
|
158
|
+
|
159
|
+
<li><a href="../Array.html">Array</a></li>
|
160
|
+
|
161
|
+
<li><a href="../Diff.html">Diff</a></li>
|
162
|
+
|
163
|
+
<li><a href="../Diffable.html">Diffable</a></li>
|
164
|
+
|
165
|
+
<li><a href="../String.html">String</a></li>
|
166
|
+
|
167
|
+
</ul>
|
168
|
+
<div id="no-class-search-results" style="display: none;">No matching classes.</div>
|
169
|
+
</div>
|
170
|
+
|
171
|
+
|
172
|
+
</div>
|
173
|
+
</div>
|
174
|
+
|
175
|
+
<div id="documentation">
|
176
|
+
<h1 class="class">Journeta::DefaultPeerUpdatedHandler</h1>
|
177
|
+
|
178
|
+
<div id="description">
|
179
|
+
|
180
|
+
</div>
|
181
|
+
|
182
|
+
<!-- Constants -->
|
183
|
+
|
184
|
+
|
185
|
+
<!-- Attributes -->
|
186
|
+
|
187
|
+
|
188
|
+
<!-- Methods -->
|
189
|
+
|
190
|
+
<div id="public-instance-method-details" class="method-section section">
|
191
|
+
<h3 class="section-header">Public Instance Methods</h3>
|
192
|
+
|
193
|
+
|
194
|
+
<div id="call-method" class="method-detail ">
|
195
|
+
<a name="method-i-call"></a>
|
196
|
+
|
197
|
+
<div class="method-heading">
|
198
|
+
|
199
|
+
<span class="method-name">call</span><span
|
200
|
+
class="method-args">(peer)</span>
|
201
|
+
<span class="method-click-advice">click to toggle source</span>
|
202
|
+
|
203
|
+
</div>
|
204
|
+
|
205
|
+
<div class="method-description">
|
206
|
+
|
207
|
+
|
208
|
+
|
209
|
+
|
210
|
+
|
211
|
+
<div class="method-source-code"
|
212
|
+
id="call-source">
|
213
|
+
<pre>
|
214
|
+
<span class="ruby-comment cmt"># File lib/journeta/peer_handler.rb, line 22</span>
|
215
|
+
22: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">call</span>(<span class="ruby-identifier">peer</span>)
|
216
|
+
23: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">peer</span>.<span class="ruby-identifier">nil?</span> <span class="ruby-keyword kw">or</span> <span class="ruby-identifier">peer</span>.<span class="ruby-identifier">uuid</span>.<span class="ruby-identifier">nil?</span>
|
217
|
+
24: <span class="ruby-identifier">putsd</span>(<span class="ruby-node">"Peer update event handled! #{peer.uuid}"</span>)
|
218
|
+
25: <span class="ruby-keyword kw">end</span></pre>
|
219
|
+
</div>
|
220
|
+
|
221
|
+
</div>
|
222
|
+
|
223
|
+
|
224
|
+
|
225
|
+
|
226
|
+
</div>
|
227
|
+
|
228
|
+
|
229
|
+
</div>
|
230
|
+
|
231
|
+
|
232
|
+
</div>
|
233
|
+
|
234
|
+
|
235
|
+
<div id="rdoc-debugging-section-dump" class="debugging-section">
|
236
|
+
|
237
|
+
<p>Disabled; run with --debug to generate this.</p>
|
238
|
+
|
239
|
+
</div>
|
240
|
+
|
241
|
+
<div id="validator-badges">
|
242
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
243
|
+
<p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
|
244
|
+
Rdoc Generator</a> 1.1.6</small>.</p>
|
245
|
+
</div>
|
246
|
+
|
247
|
+
</body>
|
248
|
+
</html>
|
249
|
+
|