rumai 3.1.0 → 3.2.0
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/rumai +1 -1
- data/doc/api/classes/Integer.html +7 -7
- data/doc/api/classes/Rumai.html +148 -141
- data/doc/api/classes/Rumai/Area.html +135 -130
- data/doc/api/classes/Rumai/Chain.html +21 -21
- data/doc/api/classes/Rumai/Client.html +188 -189
- data/doc/api/classes/Rumai/ClientContainer.html +22 -22
- data/doc/api/classes/Rumai/IXP/Agent.html +248 -143
- data/doc/api/classes/Rumai/IXP/Agent/FidStream.html +50 -50
- data/doc/api/classes/Rumai/IXP/Agent/MODES.html +7 -7
- data/doc/api/classes/Rumai/IXP/Agent/RangedPool.html +21 -21
- data/doc/api/classes/Rumai/IXP/Fcall.html +33 -33
- data/doc/api/classes/Rumai/IXP/Qid.html +1 -1
- data/doc/api/classes/Rumai/IXP/Stat.html +8 -8
- data/doc/api/classes/Rumai/IXP/Stream.html +6 -6
- data/doc/api/classes/Rumai/IXP/Struct.html +34 -38
- data/doc/api/classes/Rumai/IXP/Struct/Field.html +42 -42
- data/doc/api/classes/Rumai/IXP/Struct/Field/CounteeField.html +14 -14
- data/doc/api/classes/Rumai/IXP/Struct/Field/CounterField.html +7 -7
- data/doc/api/classes/Rumai/IXP/Terror.html +7 -7
- data/doc/api/classes/Rumai/IXP/Topen.html +1 -1
- data/doc/api/classes/Rumai/Node.html +114 -110
- data/doc/api/classes/Rumai/View.html +184 -136
- data/doc/api/classes/String.html +15 -15
- data/doc/api/classes/Time.html +14 -14
- data/doc/api/created.rid +1 -1
- data/doc/api/files/lib/rumai/fs_rb.html +1 -1
- data/doc/api/files/lib/rumai/ixp/message_rb.html +1 -1
- data/doc/api/files/lib/rumai/ixp/transport_rb.html +1 -1
- data/doc/api/files/lib/rumai/wm_rb.html +1 -1
- data/doc/api/files/lib/rumai_rb.html +1 -1
- data/doc/api/panel/search_index.js +1 -1
- data/doc/history.erb +41 -0
- data/doc/index.html +1315 -669
- data/doc/setup.erb +82 -45
- data/doc/usage.erb +96 -132
- data/lib/rumai.rb +2 -2
- data/lib/rumai/fs.rb +11 -6
- data/lib/rumai/ixp/message.rb +31 -17
- data/lib/rumai/ixp/transport.rb +82 -36
- data/lib/rumai/wm.rb +87 -25
- metadata +5 -5
@@ -39,7 +39,7 @@
|
|
39
39
|
Encapsulates I/O access over a file handle (fid).
|
40
40
|
</p>
|
41
41
|
<p>
|
42
|
-
NOTE: this class is NOT thread
|
42
|
+
NOTE: this class is NOT thread safe!
|
43
43
|
</p>
|
44
44
|
|
45
45
|
</div>
|
@@ -59,7 +59,7 @@ NOTE: this class is NOT thread-safe.
|
|
59
59
|
<dd>
|
60
60
|
<ul>
|
61
61
|
|
62
|
-
<li><a href="#
|
62
|
+
<li><a href="#M000082"><<</a></li>
|
63
63
|
|
64
64
|
</ul>
|
65
65
|
</dd>
|
@@ -68,9 +68,9 @@ NOTE: this class is NOT thread-safe.
|
|
68
68
|
<dd>
|
69
69
|
<ul>
|
70
70
|
|
71
|
-
<li><a href="#
|
71
|
+
<li><a href="#M000074">close</a>,</li>
|
72
72
|
|
73
|
-
<li><a href="#
|
73
|
+
<li><a href="#M000075">closed?</a></li>
|
74
74
|
|
75
75
|
</ul>
|
76
76
|
</dd>
|
@@ -79,7 +79,7 @@ NOTE: this class is NOT thread-safe.
|
|
79
79
|
<dd>
|
80
80
|
<ul>
|
81
81
|
|
82
|
-
<li><a href="#
|
82
|
+
<li><a href="#M000070">new</a></li>
|
83
83
|
|
84
84
|
</ul>
|
85
85
|
</dd>
|
@@ -88,9 +88,9 @@ NOTE: this class is NOT thread-safe.
|
|
88
88
|
<dd>
|
89
89
|
<ul>
|
90
90
|
|
91
|
-
<li><a href="#
|
91
|
+
<li><a href="#M000080">read</a>,</li>
|
92
92
|
|
93
|
-
<li><a href="#
|
93
|
+
<li><a href="#M000073">rewind</a></li>
|
94
94
|
|
95
95
|
</ul>
|
96
96
|
</dd>
|
@@ -99,7 +99,7 @@ NOTE: this class is NOT thread-safe.
|
|
99
99
|
<dd>
|
100
100
|
<ul>
|
101
101
|
|
102
|
-
<li><a href="#
|
102
|
+
<li><a href="#M000081">write</a></li>
|
103
103
|
|
104
104
|
</ul>
|
105
105
|
</dd>
|
@@ -158,9 +158,9 @@ NOTE: this class is NOT thread-safe.
|
|
158
158
|
<div class="sectiontitle">Class Public methods</div>
|
159
159
|
|
160
160
|
<div class="method">
|
161
|
-
<div class="title" id="
|
161
|
+
<div class="title" id="M000070">
|
162
162
|
|
163
|
-
<a name="
|
163
|
+
<a name="M000070"></a><b>new</b>(agent, path_fid, message_size)
|
164
164
|
|
165
165
|
</div>
|
166
166
|
|
@@ -169,13 +169,13 @@ NOTE: this class is NOT thread-safe.
|
|
169
169
|
|
170
170
|
<div class="sourcecode">
|
171
171
|
<p class="source-link">
|
172
|
-
Source: <a href="javascript:toggleSource('
|
172
|
+
Source: <a href="javascript:toggleSource('M000070_source')" id="l_M000070_source">show</a>
|
173
173
|
|
174
|
-
| <a href="http://github.com/sunaku/rumai/blob/
|
174
|
+
| <a href="http://github.com/sunaku/rumai/blob/947d8ffb1e3c2bd1aebfca5fae4e7ebb7913607f/lib/rumai/ixp/transport.rb#L238" target="_blank" class="github_url">on GitHub</a>
|
175
175
|
|
176
176
|
</p>
|
177
|
-
<div id="
|
178
|
-
<pre><span class="ruby-comment cmt"># File lib/rumai/ixp/transport.rb, line
|
177
|
+
<div id="M000070_source" class="dyn-source">
|
178
|
+
<pre><span class="ruby-comment cmt"># File lib/rumai/ixp/transport.rb, line 238</span>
|
179
179
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span> <span class="ruby-identifier">agent</span>, <span class="ruby-identifier">path_fid</span>, <span class="ruby-identifier">message_size</span>
|
180
180
|
<span class="ruby-ivar">@agent</span> = <span class="ruby-identifier">agent</span>
|
181
181
|
<span class="ruby-ivar">@fid</span> = <span class="ruby-identifier">path_fid</span>
|
@@ -192,15 +192,15 @@ NOTE: this class is NOT thread-safe.
|
|
192
192
|
<div class="sectiontitle">Instance Public methods</div>
|
193
193
|
|
194
194
|
<div class="method">
|
195
|
-
<div class="title" id="
|
195
|
+
<div class="title" id="M000082">
|
196
196
|
|
197
|
-
<a name="
|
197
|
+
<a name="M000082"></a><b><<</b>(content)
|
198
198
|
|
199
199
|
</div>
|
200
200
|
|
201
201
|
<div class="description">
|
202
202
|
<p>
|
203
|
-
Alias for <a href="FidStream.html#
|
203
|
+
Alias for <a href="FidStream.html#M000081">write</a>
|
204
204
|
</p>
|
205
205
|
|
206
206
|
</div>
|
@@ -210,9 +210,9 @@ Alias for <a href="FidStream.html#M000136">write</a>
|
|
210
210
|
</div>
|
211
211
|
|
212
212
|
<div class="method">
|
213
|
-
<div class="title" id="
|
213
|
+
<div class="title" id="M000074">
|
214
214
|
|
215
|
-
<a name="
|
215
|
+
<a name="M000074"></a><b>close</b>()
|
216
216
|
|
217
217
|
</div>
|
218
218
|
|
@@ -228,13 +228,13 @@ Closes this stream.
|
|
228
228
|
|
229
229
|
<div class="sourcecode">
|
230
230
|
<p class="source-link">
|
231
|
-
Source: <a href="javascript:toggleSource('
|
231
|
+
Source: <a href="javascript:toggleSource('M000074_source')" id="l_M000074_source">show</a>
|
232
232
|
|
233
|
-
| <a href="http://github.com/sunaku/rumai/blob/
|
233
|
+
| <a href="http://github.com/sunaku/rumai/blob/947d8ffb1e3c2bd1aebfca5fae4e7ebb7913607f/lib/rumai/ixp/transport.rb#L258" target="_blank" class="github_url">on GitHub</a>
|
234
234
|
|
235
235
|
</p>
|
236
|
-
<div id="
|
237
|
-
<pre><span class="ruby-comment cmt"># File lib/rumai/ixp/transport.rb, line
|
236
|
+
<div id="M000074_source" class="dyn-source">
|
237
|
+
<pre><span class="ruby-comment cmt"># File lib/rumai/ixp/transport.rb, line 258</span>
|
238
238
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">close</span>
|
239
239
|
<span class="ruby-keyword kw">unless</span> <span class="ruby-ivar">@closed</span>
|
240
240
|
<span class="ruby-ivar">@agent</span>.<span class="ruby-identifier">clunk</span> <span class="ruby-ivar">@fid</span>
|
@@ -248,9 +248,9 @@ Closes this stream.
|
|
248
248
|
</div>
|
249
249
|
|
250
250
|
<div class="method">
|
251
|
-
<div class="title" id="
|
251
|
+
<div class="title" id="M000075">
|
252
252
|
|
253
|
-
<a name="
|
253
|
+
<a name="M000075"></a><b>closed?</b>()
|
254
254
|
|
255
255
|
</div>
|
256
256
|
|
@@ -266,13 +266,13 @@ Returns true if this stream is closed.
|
|
266
266
|
|
267
267
|
<div class="sourcecode">
|
268
268
|
<p class="source-link">
|
269
|
-
Source: <a href="javascript:toggleSource('
|
269
|
+
Source: <a href="javascript:toggleSource('M000075_source')" id="l_M000075_source">show</a>
|
270
270
|
|
271
|
-
| <a href="http://github.com/sunaku/rumai/blob/
|
271
|
+
| <a href="http://github.com/sunaku/rumai/blob/947d8ffb1e3c2bd1aebfca5fae4e7ebb7913607f/lib/rumai/ixp/transport.rb#L269" target="_blank" class="github_url">on GitHub</a>
|
272
272
|
|
273
273
|
</p>
|
274
|
-
<div id="
|
275
|
-
<pre><span class="ruby-comment cmt"># File lib/rumai/ixp/transport.rb, line
|
274
|
+
<div id="M000075_source" class="dyn-source">
|
275
|
+
<pre><span class="ruby-comment cmt"># File lib/rumai/ixp/transport.rb, line 269</span>
|
276
276
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">closed?</span>
|
277
277
|
<span class="ruby-ivar">@closed</span>
|
278
278
|
<span class="ruby-keyword kw">end</span></pre>
|
@@ -282,9 +282,9 @@ Returns true if this stream is closed.
|
|
282
282
|
</div>
|
283
283
|
|
284
284
|
<div class="method">
|
285
|
-
<div class="title" id="
|
285
|
+
<div class="title" id="M000080">
|
286
286
|
|
287
|
-
<a name="
|
287
|
+
<a name="M000080"></a><b>read</b>(partial = false)
|
288
288
|
|
289
289
|
</div>
|
290
290
|
|
@@ -314,13 +314,13 @@ returned.
|
|
314
314
|
|
315
315
|
<div class="sourcecode">
|
316
316
|
<p class="source-link">
|
317
|
-
Source: <a href="javascript:toggleSource('
|
317
|
+
Source: <a href="javascript:toggleSource('M000080_source')" id="l_M000080_source">show</a>
|
318
318
|
|
319
|
-
| <a href="http://github.com/sunaku/rumai/blob/
|
319
|
+
| <a href="http://github.com/sunaku/rumai/blob/947d8ffb1e3c2bd1aebfca5fae4e7ebb7913607f/lib/rumai/ixp/transport.rb#L286" target="_blank" class="github_url">on GitHub</a>
|
320
320
|
|
321
321
|
</p>
|
322
|
-
<div id="
|
323
|
-
<pre><span class="ruby-comment cmt"># File lib/rumai/ixp/transport.rb, line
|
322
|
+
<div id="M000080_source" class="dyn-source">
|
323
|
+
<pre><span class="ruby-comment cmt"># File lib/rumai/ixp/transport.rb, line 286</span>
|
324
324
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">read</span> <span class="ruby-identifier">partial</span> = <span class="ruby-keyword kw">false</span>
|
325
325
|
<span class="ruby-identifier">raise</span> <span class="ruby-value str">'cannot read from a closed stream'</span> <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@closed</span>
|
326
326
|
|
@@ -357,9 +357,9 @@ returned.
|
|
357
357
|
</div>
|
358
358
|
|
359
359
|
<div class="method">
|
360
|
-
<div class="title" id="
|
360
|
+
<div class="title" id="M000073">
|
361
361
|
|
362
|
-
<a name="
|
362
|
+
<a name="M000073"></a><b>rewind</b>()
|
363
363
|
|
364
364
|
</div>
|
365
365
|
|
@@ -375,13 +375,13 @@ Rewinds the stream to the beginning.
|
|
375
375
|
|
376
376
|
<div class="sourcecode">
|
377
377
|
<p class="source-link">
|
378
|
-
Source: <a href="javascript:toggleSource('
|
378
|
+
Source: <a href="javascript:toggleSource('M000073_source')" id="l_M000073_source">show</a>
|
379
379
|
|
380
|
-
| <a href="http://github.com/sunaku/rumai/blob/
|
380
|
+
| <a href="http://github.com/sunaku/rumai/blob/947d8ffb1e3c2bd1aebfca5fae4e7ebb7913607f/lib/rumai/ixp/transport.rb#L250" target="_blank" class="github_url">on GitHub</a>
|
381
381
|
|
382
382
|
</p>
|
383
|
-
<div id="
|
384
|
-
<pre><span class="ruby-comment cmt"># File lib/rumai/ixp/transport.rb, line
|
383
|
+
<div id="M000073_source" class="dyn-source">
|
384
|
+
<pre><span class="ruby-comment cmt"># File lib/rumai/ixp/transport.rb, line 250</span>
|
385
385
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">rewind</span>
|
386
386
|
<span class="ruby-ivar">@pos</span> = <span class="ruby-value">0</span>
|
387
387
|
<span class="ruby-ivar">@eof</span> = <span class="ruby-keyword kw">false</span>
|
@@ -392,9 +392,9 @@ Rewinds the stream to the beginning.
|
|
392
392
|
</div>
|
393
393
|
|
394
394
|
<div class="method">
|
395
|
-
<div class="title" id="
|
395
|
+
<div class="title" id="M000081">
|
396
396
|
|
397
|
-
<a name="
|
397
|
+
<a name="M000081"></a><b>write</b>(content)
|
398
398
|
|
399
399
|
</div>
|
400
400
|
|
@@ -409,7 +409,7 @@ Writes the given content at the current position in this stream.
|
|
409
409
|
<div class="aka">
|
410
410
|
This method is also aliased as
|
411
411
|
|
412
|
-
<a href="FidStream.html#
|
412
|
+
<a href="FidStream.html#M000082"><<</a>
|
413
413
|
|
414
414
|
</div>
|
415
415
|
|
@@ -417,16 +417,16 @@ Writes the given content at the current position in this stream.
|
|
417
417
|
|
418
418
|
<div class="sourcecode">
|
419
419
|
<p class="source-link">
|
420
|
-
Source: <a href="javascript:toggleSource('
|
420
|
+
Source: <a href="javascript:toggleSource('M000081_source')" id="l_M000081_source">show</a>
|
421
421
|
|
422
|
-
| <a href="http://github.com/sunaku/rumai/blob/
|
422
|
+
| <a href="http://github.com/sunaku/rumai/blob/947d8ffb1e3c2bd1aebfca5fae4e7ebb7913607f/lib/rumai/ixp/transport.rb#L320" target="_blank" class="github_url">on GitHub</a>
|
423
423
|
|
424
424
|
</p>
|
425
|
-
<div id="
|
426
|
-
<pre><span class="ruby-comment cmt"># File lib/rumai/ixp/transport.rb, line
|
425
|
+
<div id="M000081_source" class="dyn-source">
|
426
|
+
<pre><span class="ruby-comment cmt"># File lib/rumai/ixp/transport.rb, line 320</span>
|
427
427
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">write</span> <span class="ruby-identifier">content</span>
|
428
|
-
<span class="ruby-identifier">raise</span> <span class="ruby-value str">'
|
429
|
-
<span class="ruby-identifier">raise</span> <span class="ruby-value str">'
|
428
|
+
<span class="ruby-identifier">raise</span> <span class="ruby-value str">'cannot write to a closed stream'</span> <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@closed</span>
|
429
|
+
<span class="ruby-identifier">raise</span> <span class="ruby-value str">'cannot write to a directory'</span> <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@stat</span>.<span class="ruby-identifier">directory?</span>
|
430
430
|
|
431
431
|
<span class="ruby-identifier">data</span> = <span class="ruby-identifier">content</span>.<span class="ruby-identifier">to_s</span>
|
432
432
|
<span class="ruby-identifier">limit</span> = <span class="ruby-identifier">data</span>.<span class="ruby-identifier">length</span> <span class="ruby-operator">+</span> <span class="ruby-ivar">@pos</span>
|
@@ -43,7 +43,7 @@
|
|
43
43
|
<dd>
|
44
44
|
<ul>
|
45
45
|
|
46
|
-
<li><a href="#
|
46
|
+
<li><a href="#M000061">parse</a></li>
|
47
47
|
|
48
48
|
</ul>
|
49
49
|
</dd>
|
@@ -65,9 +65,9 @@
|
|
65
65
|
<div class="sectiontitle">Class Public methods</div>
|
66
66
|
|
67
67
|
<div class="method">
|
68
|
-
<div class="title" id="
|
68
|
+
<div class="title" id="M000061">
|
69
69
|
|
70
|
-
<a name="
|
70
|
+
<a name="M000061"></a><b>parse</b>(mode)
|
71
71
|
|
72
72
|
</div>
|
73
73
|
|
@@ -83,13 +83,13 @@ Converts the given mode string into an integer.
|
|
83
83
|
|
84
84
|
<div class="sourcecode">
|
85
85
|
<p class="source-link">
|
86
|
-
Source: <a href="javascript:toggleSource('
|
86
|
+
Source: <a href="javascript:toggleSource('M000061_source')" id="l_M000061_source">show</a>
|
87
87
|
|
88
|
-
| <a href="http://github.com/sunaku/rumai/blob/
|
88
|
+
| <a href="http://github.com/sunaku/rumai/blob/947d8ffb1e3c2bd1aebfca5fae4e7ebb7913607f/lib/rumai/ixp/transport.rb#L184" target="_blank" class="github_url">on GitHub</a>
|
89
89
|
|
90
90
|
</p>
|
91
|
-
<div id="
|
92
|
-
<pre><span class="ruby-comment cmt"># File lib/rumai/ixp/transport.rb, line
|
91
|
+
<div id="M000061_source" class="dyn-source">
|
92
|
+
<pre><span class="ruby-comment cmt"># File lib/rumai/ixp/transport.rb, line 184</span>
|
93
93
|
<span class="ruby-keyword kw">def</span> <span class="ruby-constant">MODES</span>.<span class="ruby-identifier">parse</span> <span class="ruby-identifier">mode</span>
|
94
94
|
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">mode</span>.<span class="ruby-identifier">respond_to?</span> <span class="ruby-identifier">:split</span>
|
95
95
|
<span class="ruby-identifier">mode</span>.<span class="ruby-identifier">split</span>(<span class="ruby-regexp re">//</span>).<span class="ruby-identifier">inject</span>(<span class="ruby-value">0</span>) {<span class="ruby-operator">|</span><span class="ruby-identifier">m</span>,<span class="ruby-identifier">c</span><span class="ruby-operator">|</span> <span class="ruby-identifier">m</span> <span class="ruby-operator">|</span> <span class="ruby-keyword kw">self</span>[<span class="ruby-identifier">c</span>].<span class="ruby-identifier">to_i</span> }
|
@@ -56,7 +56,7 @@ A finite, thread-safe pool of range members.
|
|
56
56
|
<dd>
|
57
57
|
<ul>
|
58
58
|
|
59
|
-
<li><a href="#
|
59
|
+
<li><a href="#M000045">new</a></li>
|
60
60
|
|
61
61
|
</ul>
|
62
62
|
</dd>
|
@@ -65,7 +65,7 @@ A finite, thread-safe pool of range members.
|
|
65
65
|
<dd>
|
66
66
|
<ul>
|
67
67
|
|
68
|
-
<li><a href="#
|
68
|
+
<li><a href="#M000051">obtain</a></li>
|
69
69
|
|
70
70
|
</ul>
|
71
71
|
</dd>
|
@@ -74,7 +74,7 @@ A finite, thread-safe pool of range members.
|
|
74
74
|
<dd>
|
75
75
|
<ul>
|
76
76
|
|
77
|
-
<li><a href="#
|
77
|
+
<li><a href="#M000053">release</a></li>
|
78
78
|
|
79
79
|
</ul>
|
80
80
|
</dd>
|
@@ -116,9 +116,9 @@ how many new members should be added to the pool when the pool is empty?
|
|
116
116
|
<div class="sectiontitle">Class Public methods</div>
|
117
117
|
|
118
118
|
<div class="method">
|
119
|
-
<div class="title" id="
|
119
|
+
<div class="title" id="M000045">
|
120
120
|
|
121
|
-
<a name="
|
121
|
+
<a name="M000045"></a><b>new</b>(range)
|
122
122
|
|
123
123
|
</div>
|
124
124
|
|
@@ -127,13 +127,13 @@ how many new members should be added to the pool when the pool is empty?
|
|
127
127
|
|
128
128
|
<div class="sourcecode">
|
129
129
|
<p class="source-link">
|
130
|
-
Source: <a href="javascript:toggleSource('
|
130
|
+
Source: <a href="javascript:toggleSource('M000045_source')" id="l_M000045_source">show</a>
|
131
131
|
|
132
|
-
| <a href="http://github.com/sunaku/rumai/blob/
|
132
|
+
| <a href="http://github.com/sunaku/rumai/blob/947d8ffb1e3c2bd1aebfca5fae4e7ebb7913607f/lib/rumai/ixp/transport.rb#L65" target="_blank" class="github_url">on GitHub</a>
|
133
133
|
|
134
134
|
</p>
|
135
|
-
<div id="
|
136
|
-
<pre><span class="ruby-comment cmt"># File lib/rumai/ixp/transport.rb, line
|
135
|
+
<div id="M000045_source" class="dyn-source">
|
136
|
+
<pre><span class="ruby-comment cmt"># File lib/rumai/ixp/transport.rb, line 65</span>
|
137
137
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span> <span class="ruby-identifier">range</span>
|
138
138
|
<span class="ruby-ivar">@pos</span> = <span class="ruby-identifier">range</span>.<span class="ruby-identifier">first</span>
|
139
139
|
<span class="ruby-ivar">@lim</span> = <span class="ruby-identifier">range</span>.<span class="ruby-identifier">last</span>
|
@@ -149,9 +149,9 @@ how many new members should be added to the pool when the pool is empty?
|
|
149
149
|
<div class="sectiontitle">Instance Public methods</div>
|
150
150
|
|
151
151
|
<div class="method">
|
152
|
-
<div class="title" id="
|
152
|
+
<div class="title" id="M000051">
|
153
153
|
|
154
|
-
<a name="
|
154
|
+
<a name="M000051"></a><b>obtain</b>()
|
155
155
|
|
156
156
|
</div>
|
157
157
|
|
@@ -167,13 +167,13 @@ Returns an unoccupied range member from the pool.
|
|
167
167
|
|
168
168
|
<div class="sourcecode">
|
169
169
|
<p class="source-link">
|
170
|
-
Source: <a href="javascript:toggleSource('
|
170
|
+
Source: <a href="javascript:toggleSource('M000051_source')" id="l_M000051_source">show</a>
|
171
171
|
|
172
|
-
| <a href="http://github.com/sunaku/rumai/blob/
|
172
|
+
| <a href="http://github.com/sunaku/rumai/blob/947d8ffb1e3c2bd1aebfca5fae4e7ebb7913607f/lib/rumai/ixp/transport.rb#L76" target="_blank" class="github_url">on GitHub</a>
|
173
173
|
|
174
174
|
</p>
|
175
|
-
<div id="
|
176
|
-
<pre><span class="ruby-comment cmt"># File lib/rumai/ixp/transport.rb, line
|
175
|
+
<div id="M000051_source" class="dyn-source">
|
176
|
+
<pre><span class="ruby-comment cmt"># File lib/rumai/ixp/transport.rb, line 76</span>
|
177
177
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">obtain</span>
|
178
178
|
<span class="ruby-keyword kw">begin</span>
|
179
179
|
<span class="ruby-ivar">@pool</span>.<span class="ruby-identifier">deq</span> <span class="ruby-keyword kw">true</span>
|
@@ -201,9 +201,9 @@ Returns an unoccupied range member from the pool.
|
|
201
201
|
</div>
|
202
202
|
|
203
203
|
<div class="method">
|
204
|
-
<div class="title" id="
|
204
|
+
<div class="title" id="M000053">
|
205
205
|
|
206
|
-
<a name="
|
206
|
+
<a name="M000053"></a><b>release</b>(member)
|
207
207
|
|
208
208
|
</div>
|
209
209
|
|
@@ -220,13 +220,13 @@ in the future.
|
|
220
220
|
|
221
221
|
<div class="sourcecode">
|
222
222
|
<p class="source-link">
|
223
|
-
Source: <a href="javascript:toggleSource('
|
223
|
+
Source: <a href="javascript:toggleSource('M000053_source')" id="l_M000053_source">show</a>
|
224
224
|
|
225
|
-
| <a href="http://github.com/sunaku/rumai/blob/
|
225
|
+
| <a href="http://github.com/sunaku/rumai/blob/947d8ffb1e3c2bd1aebfca5fae4e7ebb7913607f/lib/rumai/ixp/transport.rb#L102" target="_blank" class="github_url">on GitHub</a>
|
226
226
|
|
227
227
|
</p>
|
228
|
-
<div id="
|
229
|
-
<pre><span class="ruby-comment cmt"># File lib/rumai/ixp/transport.rb, line
|
228
|
+
<div id="M000053_source" class="dyn-source">
|
229
|
+
<pre><span class="ruby-comment cmt"># File lib/rumai/ixp/transport.rb, line 102</span>
|
230
230
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">release</span> <span class="ruby-identifier">member</span>
|
231
231
|
<span class="ruby-ivar">@pool</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">member</span>
|
232
232
|
<span class="ruby-keyword kw">end</span></pre>
|
@@ -56,7 +56,7 @@ A remote function call (fcall).
|
|
56
56
|
<dd>
|
57
57
|
<ul>
|
58
58
|
|
59
|
-
<li><a href="#
|
59
|
+
<li><a href="#M000161">__from_9p__</a></li>
|
60
60
|
|
61
61
|
</ul>
|
62
62
|
</dd>
|
@@ -65,7 +65,7 @@ A remote function call (fcall).
|
|
65
65
|
<dd>
|
66
66
|
<ul>
|
67
67
|
|
68
|
-
<li><a href="#
|
68
|
+
<li><a href="#M000160">from_9p</a></li>
|
69
69
|
|
70
70
|
</ul>
|
71
71
|
</dd>
|
@@ -74,11 +74,11 @@ A remote function call (fcall).
|
|
74
74
|
<dd>
|
75
75
|
<ul>
|
76
76
|
|
77
|
-
<li><a href="#
|
77
|
+
<li><a href="#M000159">to_9p</a>,</li>
|
78
78
|
|
79
|
-
<li><a href="#
|
79
|
+
<li><a href="#M000163">type</a>,</li>
|
80
80
|
|
81
|
-
<li><a href="#
|
81
|
+
<li><a href="#M000164">type</a></li>
|
82
82
|
|
83
83
|
</ul>
|
84
84
|
</dd>
|
@@ -145,15 +145,15 @@ A remote function call (fcall).
|
|
145
145
|
<div class="sectiontitle">Class Public methods</div>
|
146
146
|
|
147
147
|
<div class="method">
|
148
|
-
<div class="title" id="
|
148
|
+
<div class="title" id="M000161">
|
149
149
|
|
150
|
-
<a name="
|
150
|
+
<a name="M000161"></a><b>__from_9p__</b>(stream)
|
151
151
|
|
152
152
|
</div>
|
153
153
|
|
154
154
|
<div class="description">
|
155
155
|
<p>
|
156
|
-
Alias for <a href="Fcall.html#
|
156
|
+
Alias for <a href="Fcall.html#M000160">from_9p</a>
|
157
157
|
</p>
|
158
158
|
|
159
159
|
</div>
|
@@ -163,9 +163,9 @@ Alias for <a href="Fcall.html#M000165">from_9p</a>
|
|
163
163
|
</div>
|
164
164
|
|
165
165
|
<div class="method">
|
166
|
-
<div class="title" id="
|
166
|
+
<div class="title" id="M000160">
|
167
167
|
|
168
|
-
<a name="
|
168
|
+
<a name="M000160"></a><b>from_9p</b>(stream)
|
169
169
|
|
170
170
|
</div>
|
171
171
|
|
@@ -181,7 +181,7 @@ returns the instance.
|
|
181
181
|
<div class="aka">
|
182
182
|
This method is also aliased as
|
183
183
|
|
184
|
-
<a href="Fcall.html#
|
184
|
+
<a href="Fcall.html#M000161">__from_9p__</a>
|
185
185
|
|
186
186
|
</div>
|
187
187
|
|
@@ -189,13 +189,13 @@ returns the instance.
|
|
189
189
|
|
190
190
|
<div class="sourcecode">
|
191
191
|
<p class="source-link">
|
192
|
-
Source: <a href="javascript:toggleSource('
|
192
|
+
Source: <a href="javascript:toggleSource('M000160_source')" id="l_M000160_source">show</a>
|
193
193
|
|
194
|
-
| <a href="http://github.com/sunaku/rumai/blob/
|
194
|
+
| <a href="http://github.com/sunaku/rumai/blob/947d8ffb1e3c2bd1aebfca5fae4e7ebb7913607f/lib/rumai/ixp/message.rb#L428" target="_blank" class="github_url">on GitHub</a>
|
195
195
|
|
196
196
|
</p>
|
197
|
-
<div id="
|
198
|
-
<pre><span class="ruby-comment cmt"># File lib/rumai/ixp/message.rb, line
|
197
|
+
<div id="M000160_source" class="dyn-source">
|
198
|
+
<pre><span class="ruby-comment cmt"># File lib/rumai/ixp/message.rb, line 428</span>
|
199
199
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">from_9p</span> <span class="ruby-identifier">stream</span>
|
200
200
|
<span class="ruby-identifier">size</span> = <span class="ruby-identifier">stream</span>.<span class="ruby-identifier">read_9p</span>(<span class="ruby-value">4</span>)
|
201
201
|
<span class="ruby-identifier">type</span> = <span class="ruby-identifier">stream</span>.<span class="ruby-identifier">read_9p</span>(<span class="ruby-value">1</span>)
|
@@ -212,9 +212,9 @@ returns the instance.
|
|
212
212
|
</div>
|
213
213
|
|
214
214
|
<div class="method">
|
215
|
-
<div class="title" id="
|
215
|
+
<div class="title" id="M000163">
|
216
216
|
|
217
|
-
<a name="
|
217
|
+
<a name="M000163"></a><b>type</b>()
|
218
218
|
|
219
219
|
</div>
|
220
220
|
|
@@ -230,13 +230,13 @@ Returns the value of the ‘type’ field for this fcall.
|
|
230
230
|
|
231
231
|
<div class="sourcecode">
|
232
232
|
<p class="source-link">
|
233
|
-
Source: <a href="javascript:toggleSource('
|
233
|
+
Source: <a href="javascript:toggleSource('M000163_source')" id="l_M000163_source">show</a>
|
234
234
|
|
235
|
-
| <a href="http://github.com/sunaku/rumai/blob/
|
235
|
+
| <a href="http://github.com/sunaku/rumai/blob/947d8ffb1e3c2bd1aebfca5fae4e7ebb7913607f/lib/rumai/ixp/message.rb#L669" target="_blank" class="github_url">on GitHub</a>
|
236
236
|
|
237
237
|
</p>
|
238
|
-
<div id="
|
239
|
-
<pre><span class="ruby-comment cmt"># File lib/rumai/ixp/message.rb, line
|
238
|
+
<div id="M000163_source" class="dyn-source">
|
239
|
+
<pre><span class="ruby-comment cmt"># File lib/rumai/ixp/message.rb, line 669</span>
|
240
240
|
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">type</span>
|
241
241
|
<span class="ruby-constant">CLASS_TO_TYPE</span>[<span class="ruby-keyword kw">self</span>]
|
242
242
|
<span class="ruby-keyword kw">end</span></pre>
|
@@ -248,9 +248,9 @@ Returns the value of the ‘type’ field for this fcall.
|
|
248
248
|
<div class="sectiontitle">Instance Public methods</div>
|
249
249
|
|
250
250
|
<div class="method">
|
251
|
-
<div class="title" id="
|
251
|
+
<div class="title" id="M000159">
|
252
252
|
|
253
|
-
<a name="
|
253
|
+
<a name="M000159"></a><b>to_9p</b>()
|
254
254
|
|
255
255
|
</div>
|
256
256
|
|
@@ -266,13 +266,13 @@ Transforms this object into a string of 9P2000 bytes.
|
|
266
266
|
|
267
267
|
<div class="sourcecode">
|
268
268
|
<p class="source-link">
|
269
|
-
Source: <a href="javascript:toggleSource('
|
269
|
+
Source: <a href="javascript:toggleSource('M000159_source')" id="l_M000159_source">show</a>
|
270
270
|
|
271
|
-
| <a href="http://github.com/sunaku/rumai/blob/
|
271
|
+
| <a href="http://github.com/sunaku/rumai/blob/947d8ffb1e3c2bd1aebfca5fae4e7ebb7913607f/lib/rumai/ixp/message.rb#L414" target="_blank" class="github_url">on GitHub</a>
|
272
272
|
|
273
273
|
</p>
|
274
|
-
<div id="
|
275
|
-
<pre><span class="ruby-comment cmt"># File lib/rumai/ixp/message.rb, line
|
274
|
+
<div id="M000159_source" class="dyn-source">
|
275
|
+
<pre><span class="ruby-comment cmt"># File lib/rumai/ixp/message.rb, line 414</span>
|
276
276
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_9p</span>
|
277
277
|
<span class="ruby-identifier">data</span> = <span class="ruby-identifier">type</span>.<span class="ruby-identifier">to_9p</span>(<span class="ruby-value">1</span>) <span class="ruby-operator"><<</span> <span class="ruby-keyword kw">super</span>
|
278
278
|
<span class="ruby-identifier">size</span> = (<span class="ruby-identifier">data</span>.<span class="ruby-identifier">length</span> <span class="ruby-operator">+</span> <span class="ruby-value">4</span>).<span class="ruby-identifier">to_9p</span>(<span class="ruby-value">4</span>)
|
@@ -284,9 +284,9 @@ Transforms this object into a string of 9P2000 bytes.
|
|
284
284
|
</div>
|
285
285
|
|
286
286
|
<div class="method">
|
287
|
-
<div class="title" id="
|
287
|
+
<div class="title" id="M000164">
|
288
288
|
|
289
|
-
<a name="
|
289
|
+
<a name="M000164"></a><b>type</b>()
|
290
290
|
|
291
291
|
</div>
|
292
292
|
|
@@ -302,13 +302,13 @@ Returns the value of the ‘type’ field for this fcall.
|
|
302
302
|
|
303
303
|
<div class="sourcecode">
|
304
304
|
<p class="source-link">
|
305
|
-
Source: <a href="javascript:toggleSource('
|
305
|
+
Source: <a href="javascript:toggleSource('M000164_source')" id="l_M000164_source">show</a>
|
306
306
|
|
307
|
-
| <a href="http://github.com/sunaku/rumai/blob/
|
307
|
+
| <a href="http://github.com/sunaku/rumai/blob/947d8ffb1e3c2bd1aebfca5fae4e7ebb7913607f/lib/rumai/ixp/message.rb#L676" target="_blank" class="github_url">on GitHub</a>
|
308
308
|
|
309
309
|
</p>
|
310
|
-
<div id="
|
311
|
-
<pre><span class="ruby-comment cmt"># File lib/rumai/ixp/message.rb, line
|
310
|
+
<div id="M000164_source" class="dyn-source">
|
311
|
+
<pre><span class="ruby-comment cmt"># File lib/rumai/ixp/message.rb, line 676</span>
|
312
312
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">type</span>
|
313
313
|
<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">class</span>.<span class="ruby-identifier">type</span>
|
314
314
|
<span class="ruby-keyword kw">end</span></pre>
|