-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMulticast.html
More file actions
409 lines (216 loc) · 8.83 KB
/
Multicast.html
File metadata and controls
409 lines (216 loc) · 8.83 KB
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
<!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" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>
Module: Multicast
— Documentation by YARD 0.7.3
</title>
<link rel="stylesheet" href="css/style.css" type="text/css" media="screen" charset="utf-8" />
<link rel="stylesheet" href="css/common.css" type="text/css" media="screen" charset="utf-8" />
<script type="text/javascript" charset="utf-8">
relpath = '';
if (relpath != '') relpath += '/';
</script>
<script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
<script type="text/javascript" charset="utf-8" src="js/app.js"></script>
</head>
<body>
<script type="text/javascript" charset="utf-8">
if (window.top.frames.main) document.body.className = 'frames';
</script>
<div id="header">
<div id="menu">
<a href="_index.html">Index (M)</a> »
<span class="title">Multicast</span>
<div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
</div>
<div id="search">
<a id="class_list_link" href="#">Class List</a>
<a id="method_list_link" href="#">Method List</a>
<a id="file_list_link" href="#">File List</a>
</div>
<div class="clear"></div>
</div>
<iframe id="search_frame"></iframe>
<div id="content"><h1>Module: Multicast
<span class="abstract note title">Abstract</span>
</h1>
<dl class="box">
<dt class="r1">Includes:</dt>
<dd class="r1">DeliveryProtocol, MembershipProtocol, <span class='object_link'><a href="MulticastProtocol.html" title="MulticastProtocol (module)">MulticastProtocol</a></span></dd>
<dt class="r2">Included in:</dt>
<dd class="r2"><span class='object_link'><a href="BestEffortMulticast.html" title="BestEffortMulticast (module)">BestEffortMulticast</a></span>, <span class='object_link'><a href="ReliableMulticast.html" title="ReliableMulticast (module)">ReliableMulticast</a></span></dd>
<dt class="r1 last">Defined in:</dt>
<dd class="r1 last">multicast.rb</dd>
</dl>
<div class="clear"></div>
<h2>Overview</h2>
<embed src="Multicast_doc/Multicast_viz_expanded.svg" width="50%" height="30%" type="image/svg+xml" pluginspage="http://www.adobe.com/svg/viewer/install/" />
Multicast
<div class="docstring">
<div class="discussion">
<div class="note abstract">
<strong>This module is abstract.</strong>
<div class='inline'><p>
Multicast is an abstract implementation for multicast message delivery. The
functionality is implemented, but it depends on an implemented
DeliveryProtocol and MembershipProtocol to be mixed in.
</p>
</div>
</div>
<p>
A simple implementation of Multicast, which depends on abstract delivery
and membership modules.
</p>
</div>
</div>
<div class="tags">
</div>
<h2>
Instance Method Summary
<small>(<a href="#" class="summary_toggle">collapse</a>)</small>
</h2>
<ul class="summary">
<li class="public ">
<span class="summary_signature">
<a href="#acked_count-instance_method" title="#acked_count (instance method)">- (Object) <strong>acked_count</strong>([:ident], :num) </a>
</span>
<span class="summary_desc"><div class='inline'><p>
A scratch of the number of messages confirmed this timestep for a given
mcast id.
</p>
</div></span>
</li>
<li class="public ">
<span class="summary_signature">
<a href="#num_members-instance_method" title="#num_members (instance method)">- (Object) <strong>num_members</strong>([], :num) </a>
</span>
<span class="summary_desc"><div class='inline'><p>
A scratch noting the number of members in this tick.
</p>
</div></span>
</li>
<li class="public ">
<span class="summary_signature">
<a href="#unacked_count-instance_method" title="#unacked_count (instance method)">- (Object) <strong>unacked_count</strong>([:ident], :num) </a>
</span>
<span class="summary_desc"><div class='inline'><p>
Keeps track of the number of messages that need to be confirmed as sent for
a given mcast id.
</p>
</div></span>
</li>
</ul>
<h3 class="inherited">Methods included from <span class='object_link'><a href="MulticastProtocol.html" title="MulticastProtocol (module)">MulticastProtocol</a></span></h3>
<p class="inherited"><span class='object_link'><a href="MulticastProtocol.html#mcast_done-instance_method" title="MulticastProtocol#mcast_done (method)">#mcast_done</a></span>, <span class='object_link'><a href="MulticastProtocol.html#mcast_send-instance_method" title="MulticastProtocol#mcast_send (method)">#mcast_send</a></span></p>
<div id="instance_method_details" class="method_details_list">
<h2>Instance Method Details</h2>
<div class="method_details first">
<p class="signature first" id="acked_count-instance_method">
- (<tt>Object</tt>) <strong>acked_count</strong>([:ident], :num)
</p><div class="docstring">
<div class="discussion">
<p>
A scratch of the number of messages confirmed this timestep for a given
mcast id.
</p>
</div>
</div>
<div class="tags">
<h3>Returns:</h3>
<ul class="return">
<li>
<span class='type'></span>
<div class='inline'></div>
</li>
</ul>
</div><table class="source_code">
<tr>
<td>
<pre class="lines">
30</pre>
</td>
<td>
<pre class="code"><span class="info file"># File 'multicast.rb', line 30</span>
<span class='scratch identifier id'>scratch</span> <span class='symbol val'>:acked_count</span><span class='comma token'>,</span> <span class='lbrack token'>[</span><span class='symbol val'>:ident</span><span class='rbrack token'>]</span> <span class='assign token'>=</span><span class='gt op'>></span> <span class='lbrack token'>[</span><span class='symbol val'>:num</span><span class='rbrack token'>]</span>
</pre>
</td>
</tr>
</table>
</div>
<div class="method_details ">
<p class="signature " id="num_members-instance_method">
- (<tt>Object</tt>) <strong>num_members</strong>([], :num)
</p><div class="docstring">
<div class="discussion">
<p>
A scratch noting the number of members in this tick.
</p>
</div>
</div>
<div class="tags">
<h3>Returns:</h3>
<ul class="return">
<li>
<span class='type'></span>
<div class='inline'></div>
</li>
</ul>
</div><table class="source_code">
<tr>
<td>
<pre class="lines">
30</pre>
</td>
<td>
<pre class="code"><span class="info file"># File 'multicast.rb', line 30</span>
<span class='scratch identifier id'>scratch</span> <span class='symbol val'>:num_members</span><span class='comma token'>,</span> <span class='lbrack token'>[</span><span class='rbrack token'>]</span> <span class='assign token'>=</span><span class='gt op'>></span> <span class='lbrack token'>[</span><span class='symbol val'>:num</span><span class='rbrack token'>]</span>
</pre>
</td>
</tr>
</table>
</div>
<div class="method_details ">
<p class="signature " id="unacked_count-instance_method">
- (<tt>Object</tt>) <strong>unacked_count</strong>([:ident], :num)
</p><div class="docstring">
<div class="discussion">
<p>
Keeps track of the number of messages that need to be confirmed as sent for
a given mcast id.
</p>
</div>
</div>
<div class="tags">
<h3>Returns:</h3>
<ul class="return">
<li>
<span class='type'></span>
<div class='inline'></div>
</li>
</ul>
</div><table class="source_code">
<tr>
<td>
<pre class="lines">
30</pre>
</td>
<td>
<pre class="code"><span class="info file"># File 'multicast.rb', line 30</span>
<span class='table identifier id'>table</span> <span class='symbol val'>:unacked_count</span><span class='comma token'>,</span> <span class='lbrack token'>[</span><span class='symbol val'>:ident</span><span class='rbrack token'>]</span> <span class='assign token'>=</span><span class='gt op'>></span> <span class='lbrack token'>[</span><span class='symbol val'>:num</span><span class='rbrack token'>]</span>
</pre>
</td>
</tr>
</table>
</div>
</div>
</div>
<div id="footer">
Generated on Wed Nov 16 11:20:24 2011 by
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.7.3 (ruby-1.9.2).
</div>
</body>
</html>