rumai 3.2.2 → 3.2.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (91) hide show
  1. data/CREDITS +27 -5
  2. data/bin/rumai +12 -37
  3. data/lib/rumai/inochi.rb +8 -17
  4. data/lib/rumai/irb.rb +21 -0
  5. data/man.html +914 -0
  6. data/man/man1/rumai.1.gz +0 -0
  7. metadata +19 -94
  8. data/HISTORY +0 -350
  9. data/INSTALL +0 -33
  10. data/MANUAL +0 -26
  11. data/README +0 -92
  12. data/USAGE +0 -297
  13. data/doc/ann.xml +0 -61
  14. data/doc/api/IO.html +0 -119
  15. data/doc/api/Integer.html +0 -171
  16. data/doc/api/Rumai.html +0 -1540
  17. data/doc/api/Rumai/Area.html +0 -1485
  18. data/doc/api/Rumai/Chain.html +0 -301
  19. data/doc/api/Rumai/Client.html +0 -2451
  20. data/doc/api/Rumai/ClientContainer.html +0 -301
  21. data/doc/api/Rumai/ExportInstanceMethods.html +0 -103
  22. data/doc/api/Rumai/IXP.html +0 -94
  23. data/doc/api/Rumai/IXP/Agent.html +0 -1625
  24. data/doc/api/Rumai/IXP/Agent/FidStream.html +0 -959
  25. data/doc/api/Rumai/IXP/Agent/RangedPool.html +0 -381
  26. data/doc/api/Rumai/IXP/Error.html +0 -110
  27. data/doc/api/Rumai/IXP/Fcall.html +0 -503
  28. data/doc/api/Rumai/IXP/Qid.html +0 -207
  29. data/doc/api/Rumai/IXP/Rattach.html +0 -148
  30. data/doc/api/Rumai/IXP/Rauth.html +0 -148
  31. data/doc/api/Rumai/IXP/Rclunk.html +0 -148
  32. data/doc/api/Rumai/IXP/Rcreate.html +0 -148
  33. data/doc/api/Rumai/IXP/Rerror.html +0 -148
  34. data/doc/api/Rumai/IXP/Rflush.html +0 -148
  35. data/doc/api/Rumai/IXP/Ropen.html +0 -148
  36. data/doc/api/Rumai/IXP/Rread.html +0 -148
  37. data/doc/api/Rumai/IXP/Rremove.html +0 -148
  38. data/doc/api/Rumai/IXP/Rstat.html +0 -148
  39. data/doc/api/Rumai/IXP/Rversion.html +0 -148
  40. data/doc/api/Rumai/IXP/Rwalk.html +0 -148
  41. data/doc/api/Rumai/IXP/Rwrite.html +0 -148
  42. data/doc/api/Rumai/IXP/Rwstat.html +0 -148
  43. data/doc/api/Rumai/IXP/Stat.html +0 -335
  44. data/doc/api/Rumai/IXP/Stream.html +0 -194
  45. data/doc/api/Rumai/IXP/Struct.html +0 -586
  46. data/doc/api/Rumai/IXP/Struct/ClassField.html +0 -242
  47. data/doc/api/Rumai/IXP/Struct/Field.html +0 -782
  48. data/doc/api/Rumai/IXP/Struct/Field/CounteeField.html +0 -227
  49. data/doc/api/Rumai/IXP/Struct/Field/CounterField.html +0 -153
  50. data/doc/api/Rumai/IXP/Struct/Integer8Field.html +0 -242
  51. data/doc/api/Rumai/IXP/Struct/StringField.html +0 -206
  52. data/doc/api/Rumai/IXP/Tattach.html +0 -148
  53. data/doc/api/Rumai/IXP/Tauth.html +0 -148
  54. data/doc/api/Rumai/IXP/Tclunk.html +0 -148
  55. data/doc/api/Rumai/IXP/Tcreate.html +0 -148
  56. data/doc/api/Rumai/IXP/Terror.html +0 -231
  57. data/doc/api/Rumai/IXP/Tflush.html +0 -148
  58. data/doc/api/Rumai/IXP/Topen.html +0 -240
  59. data/doc/api/Rumai/IXP/Tread.html +0 -148
  60. data/doc/api/Rumai/IXP/Tremove.html +0 -148
  61. data/doc/api/Rumai/IXP/Tstat.html +0 -148
  62. data/doc/api/Rumai/IXP/Tversion.html +0 -162
  63. data/doc/api/Rumai/IXP/Twalk.html +0 -148
  64. data/doc/api/Rumai/IXP/Twrite.html +0 -148
  65. data/doc/api/Rumai/IXP/Twstat.html +0 -148
  66. data/doc/api/Rumai/Node.html +0 -1406
  67. data/doc/api/Rumai/View.html +0 -1587
  68. data/doc/api/Rumai/WidgetImpl.html +0 -333
  69. data/doc/api/Rumai/WidgetNode.html +0 -246
  70. data/doc/api/String.html +0 -258
  71. data/doc/api/StringIO.html +0 -119
  72. data/doc/api/Time.html +0 -247
  73. data/doc/api/_index.html +0 -581
  74. data/doc/api/class_list.html +0 -36
  75. data/doc/api/css/common.css +0 -1
  76. data/doc/api/css/full_list.css +0 -50
  77. data/doc/api/css/style.css +0 -273
  78. data/doc/api/file.LICENSE.html +0 -73
  79. data/doc/api/file_list.html +0 -38
  80. data/doc/api/frames.html +0 -13
  81. data/doc/api/index.html +0 -73
  82. data/doc/api/js/app.js +0 -111
  83. data/doc/api/js/full_list.js +0 -117
  84. data/doc/api/js/jquery.js +0 -19
  85. data/doc/api/method_list.html +0 -1491
  86. data/doc/api/top-level-namespace.html +0 -89
  87. data/doc/index.html +0 -2655
  88. data/inochi.opts +0 -31
  89. data/test/rumai/ixp/message_test.rb +0 -245
  90. data/test/runner +0 -25
  91. data/test/test_helper.rb +0 -1
@@ -1,959 +0,0 @@
1
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
- <head>
5
- <meta name="Content-Type" content="text/html; charset=utf-8" />
6
- <title>Class: Rumai::IXP::Agent::FidStream</title>
7
- <link rel="stylesheet" href="../../../css/style.css" type="text/css" media="screen" charset="utf-8" />
8
- <link rel="stylesheet" href="../../../css/common.css" type="text/css" media="screen" charset="utf-8" />
9
-
10
- <script type="text/javascript" charset="utf-8">
11
- relpath = '../../..';
12
- if (relpath != '') relpath += '/';
13
- </script>
14
- <script type="text/javascript" charset="utf-8" src="../../../js/jquery.js"></script>
15
- <script type="text/javascript" charset="utf-8" src="../../../js/app.js"></script>
16
-
17
- </head>
18
- <body>
19
- <script type="text/javascript" charset="utf-8">
20
- if (window.top.frames.main) document.body.className = 'frames';
21
- </script>
22
-
23
- <div id="header">
24
- <div id="menu">
25
-
26
- <a href="../../../_index.html">Index (F)</a> &raquo;
27
- <span class='title'><a href="../../../Rumai.html" title="Rumai (module)">Rumai</a></span> &raquo; <span class='title'><a href="../../IXP.html" title="Rumai::IXP (module)">IXP</a></span> &raquo; <span class='title'><a href="../Agent.html" title="Rumai::IXP::Agent (class)">Agent</a></span>
28
- &raquo;
29
- <span class="title">FidStream</span>
30
-
31
-
32
- <div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
33
- </div>
34
-
35
- <div id="search">
36
- <a id="class_list_link" href="#">Class List</a>
37
- <a id="method_list_link" href="#">Method List</a>
38
- <a id ="file_list_link" href="#">File List</a>
39
- </div>
40
-
41
- <div class="clear"></div>
42
- </div>
43
-
44
- <iframe id="search_frame"></iframe>
45
-
46
- <div id="content"><h1>Class: Rumai::IXP::Agent::FidStream
47
-
48
-
49
- </h1>
50
-
51
- <dl class="box">
52
-
53
- <dt class="r1">Inherits:</dt>
54
- <dd class="r1">
55
- <span class="inheritName"><a href="../../../Object.html" title="Object (class)">Object</a></span>
56
-
57
- <ul class="fullTree">
58
- <li><a href="../../../Object.html" title="Object (class)">Object</a></li>
59
-
60
- <li class="next">Rumai::IXP::Agent::FidStream</li>
61
-
62
- </ul>
63
- <a href="#" class="inheritanceTree">show all</a>
64
-
65
- </dd>
66
-
67
-
68
-
69
-
70
-
71
-
72
-
73
-
74
-
75
- <dt class="r2 last">Defined in:</dt>
76
- <dd class="r2 last">lib/rumai/ixp/transport.rb</dd>
77
-
78
- </dl>
79
- <div class="clear"></div>
80
-
81
- <h2>Overview</h2><div class="docstring">
82
- <div class="discussion">
83
-
84
- <p class="note notetag">
85
- <strong>Note:</strong>
86
- <div class='inline'><p>
87
- this class is NOT thread safe!
88
- </p>
89
- </div>
90
- </p>
91
-
92
- <p>
93
- Encapsulates I/O access over a file handle (fid).
94
- </p>
95
-
96
-
97
- </div>
98
- </div>
99
- <div class="tags">
100
-
101
- </div>
102
-
103
- <h2>Instance Attribute Summary</h2>
104
- <ul class="summary">
105
-
106
- <li class="public ">
107
- <span class="summary_signature">
108
-
109
- <a href="#eof-instance_method" title="#eof (instance method)">- (Object) <strong>eof</strong> </a>
110
-
111
-
112
-
113
- (also: #eof?)
114
-
115
- </span>
116
-
117
-
118
- <span class="note title readonly">readonly</span>
119
-
120
-
121
-
122
-
123
-
124
-
125
-
126
- <span class="summary_desc"><div class='inline'><p>
127
- Returns the value of attribute eof.
128
- </p>
129
- </div></span>
130
-
131
- </li>
132
-
133
-
134
- <li class="public ">
135
- <span class="summary_signature">
136
-
137
- <a href="#fid-instance_method" title="#fid (instance method)">- (Object) <strong>fid</strong> </a>
138
-
139
-
140
-
141
- </span>
142
-
143
-
144
- <span class="note title readonly">readonly</span>
145
-
146
-
147
-
148
-
149
-
150
-
151
-
152
- <span class="summary_desc"><div class='inline'><p>
153
- Returns the value of attribute fid.
154
- </p>
155
- </div></span>
156
-
157
- </li>
158
-
159
-
160
- <li class="public ">
161
- <span class="summary_signature">
162
-
163
- <a href="#pos-instance_method" title="#pos (instance method)">- (Object) <strong>pos</strong> </a>
164
-
165
-
166
-
167
- (also: #tell)
168
-
169
- </span>
170
-
171
-
172
-
173
-
174
-
175
-
176
-
177
-
178
-
179
-
180
- <span class="summary_desc"><div class='inline'><p>
181
- Returns the value of attribute pos.
182
- </p>
183
- </div></span>
184
-
185
- </li>
186
-
187
-
188
- <li class="public ">
189
- <span class="summary_signature">
190
-
191
- <a href="#stat-instance_method" title="#stat (instance method)">- (Object) <strong>stat</strong> </a>
192
-
193
-
194
-
195
- </span>
196
-
197
-
198
- <span class="note title readonly">readonly</span>
199
-
200
-
201
-
202
-
203
-
204
-
205
-
206
- <span class="summary_desc"><div class='inline'><p>
207
- Returns the value of attribute stat.
208
- </p>
209
- </div></span>
210
-
211
- </li>
212
-
213
-
214
- </ul>
215
-
216
-
217
-
218
- <h2>Instance Method Summary</h2>
219
-
220
- <ul class="summary">
221
-
222
- <li class="public ">
223
- <span class="summary_signature">
224
-
225
- <a href="#close-instance_method" title="#close (instance method)">- (Object) <strong>close</strong> </a>
226
-
227
-
228
-
229
- </span>
230
-
231
-
232
-
233
-
234
-
235
-
236
-
237
- <span class="summary_desc"><div class='inline'><p>
238
- Closes this stream.
239
- </p>
240
- </div></span>
241
-
242
- </li>
243
-
244
-
245
- <li class="public ">
246
- <span class="summary_signature">
247
-
248
- <a href="#closed%3F-instance_method" title="#closed? (instance method)">- (Boolean) <strong>closed?</strong> </a>
249
-
250
-
251
-
252
- </span>
253
-
254
-
255
-
256
-
257
-
258
-
259
-
260
- <span class="summary_desc"><div class='inline'><p>
261
- Returns true if this stream is closed.
262
- </p>
263
- </div></span>
264
-
265
- </li>
266
-
267
-
268
- <li class="public ">
269
- <span class="summary_signature">
270
-
271
- <a href="#initialize-instance_method" title="#initialize (instance method)">- (FidStream) <strong>initialize</strong>(agent, path_fid, message_size) </a>
272
-
273
-
274
-
275
- </span>
276
-
277
- <span class="note title constructor">constructor</span>
278
-
279
-
280
-
281
-
282
-
283
-
284
-
285
- <span class="summary_desc"><div class='inline'><p>
286
- A new instance of FidStream.
287
- </p>
288
- </div></span>
289
-
290
- </li>
291
-
292
-
293
- <li class="public ">
294
- <span class="summary_signature">
295
-
296
- <a href="#read-instance_method" title="#read (instance method)">- (Object) <strong>read</strong>(partial = false) </a>
297
-
298
-
299
-
300
- </span>
301
-
302
-
303
-
304
-
305
-
306
-
307
-
308
- <span class="summary_desc"><div class='inline'><p>
309
- Reads some data from this stream at the current position.
310
- </p>
311
- </div></span>
312
-
313
- </li>
314
-
315
-
316
- <li class="public ">
317
- <span class="summary_signature">
318
-
319
- <a href="#rewind-instance_method" title="#rewind (instance method)">- (Object) <strong>rewind</strong> </a>
320
-
321
-
322
-
323
- </span>
324
-
325
-
326
-
327
-
328
-
329
-
330
-
331
- <span class="summary_desc"><div class='inline'><p>
332
- Rewinds the stream to the beginning.
333
- </p>
334
- </div></span>
335
-
336
- </li>
337
-
338
-
339
- <li class="public ">
340
- <span class="summary_signature">
341
-
342
- <a href="#write-instance_method" title="#write (instance method)">- (Object) <strong>write</strong>(content) </a>
343
-
344
-
345
-
346
- (also: #&lt;&lt;)
347
-
348
- </span>
349
-
350
-
351
-
352
-
353
-
354
-
355
-
356
- <span class="summary_desc"><div class='inline'><p>
357
- Writes the given content at the current position in this stream.
358
- </p>
359
- </div></span>
360
-
361
- </li>
362
-
363
-
364
- </ul>
365
-
366
-
367
- <div id="constructor_details" class="method_details_list">
368
- <h2>Constructor Details</h2>
369
-
370
- <div class="method_details first">
371
- <p class="signature first" id="initialize-instance_method">
372
-
373
- - (<tt><a href="" title="Rumai::IXP::Agent::FidStream (class)">FidStream</a></tt>) <strong>initialize</strong>(agent, path_fid, message_size)
374
-
375
-
376
-
377
- </p><div class="docstring">
378
- <div class="discussion">
379
- <p>
380
- A new instance of FidStream
381
- </p>
382
-
383
-
384
- </div>
385
- </div>
386
- <div class="tags">
387
-
388
- </div><table class="source_code">
389
- <tr>
390
- <td>
391
- <pre class="lines">
392
-
393
-
394
- 247
395
- 248
396
- 249
397
- 250
398
- 251
399
- 252
400
- 253
401
- 254</pre>
402
- </td>
403
- <td>
404
- <pre class="code"><span class="info file"># File 'lib/rumai/ixp/transport.rb', line 247</span>
405
-
406
- <span class='kw'>def</span> <span class='id initialize'>initialize</span> <span class='id agent'>agent</span><span class='comma'>,</span> <span class='id path_fid'>path_fid</span><span class='comma'>,</span> <span class='id message_size'>message_size</span>
407
- <span class='ivar'>@agent</span> <span class='op'>=</span> <span class='id agent'>agent</span>
408
- <span class='ivar'>@fid</span> <span class='op'>=</span> <span class='id path_fid'>path_fid</span>
409
- <span class='ivar'>@msize</span> <span class='op'>=</span> <span class='id message_size'>message_size</span>
410
- <span class='ivar'>@stat</span> <span class='op'>=</span> <span class='ivar'>@agent</span><span class='period'>.</span><span class='id stat_fid'>stat_fid</span><span class='lparen'>(</span><span class='ivar'>@fid</span><span class='rparen'>)</span>
411
- <span class='ivar'>@closed</span> <span class='op'>=</span> <span class='kw'>false</span>
412
- <span class='id rewind'>rewind</span>
413
- <span class='kw'>end</span></pre>
414
- </td>
415
- </tr>
416
- </table>
417
- </div>
418
-
419
- </div>
420
-
421
- <div id="instance_attr_details" class="attr_details">
422
- <h2>Instance Attribute Details</h2>
423
-
424
-
425
- <span id=""></span>
426
- <span id="eof-instance_method"></span>
427
- <div class="method_details first">
428
- <p class="signature first" id="eof-instance_method">
429
-
430
- - (<tt><a href="../../../Object.html" title="Object (class)">Object</a></tt>) <strong>eof</strong> <span class="extras">(readonly)</span>
431
-
432
-
433
-
434
- <span class="aliases">Also known as:
435
- <span class="names"><span id='eof?-instance_method'>eof?</span></span>
436
- </span>
437
-
438
- </p><div class="docstring">
439
- <div class="discussion">
440
- <p>
441
- Returns the value of attribute eof
442
- </p>
443
-
444
-
445
- </div>
446
- </div>
447
- <div class="tags">
448
-
449
- </div><table class="source_code">
450
- <tr>
451
- <td>
452
- <pre class="lines">
453
-
454
-
455
- 241
456
- 242
457
- 243</pre>
458
- </td>
459
- <td>
460
- <pre class="code"><span class="info file"># File 'lib/rumai/ixp/transport.rb', line 241</span>
461
-
462
- <span class='kw'>def</span> <span class='id eof'>eof</span>
463
- <span class='ivar'>@eof</span>
464
- <span class='kw'>end</span></pre>
465
- </td>
466
- </tr>
467
- </table>
468
- </div>
469
-
470
-
471
- <span id=""></span>
472
- <span id="fid-instance_method"></span>
473
- <div class="method_details ">
474
- <p class="signature " id="fid-instance_method">
475
-
476
- - (<tt><a href="../../../Object.html" title="Object (class)">Object</a></tt>) <strong>fid</strong> <span class="extras">(readonly)</span>
477
-
478
-
479
-
480
- </p><div class="docstring">
481
- <div class="discussion">
482
- <p>
483
- Returns the value of attribute fid
484
- </p>
485
-
486
-
487
- </div>
488
- </div>
489
- <div class="tags">
490
-
491
- </div><table class="source_code">
492
- <tr>
493
- <td>
494
- <pre class="lines">
495
-
496
-
497
- 239
498
- 240
499
- 241</pre>
500
- </td>
501
- <td>
502
- <pre class="code"><span class="info file"># File 'lib/rumai/ixp/transport.rb', line 239</span>
503
-
504
- <span class='kw'>def</span> <span class='id fid'>fid</span>
505
- <span class='ivar'>@fid</span>
506
- <span class='kw'>end</span></pre>
507
- </td>
508
- </tr>
509
- </table>
510
- </div>
511
-
512
-
513
- <span id="pos=-instance_method"></span>
514
- <span id="pos-instance_method"></span>
515
- <div class="method_details ">
516
- <p class="signature " id="pos-instance_method">
517
-
518
- - (<tt><a href="../../../Object.html" title="Object (class)">Object</a></tt>) <strong>pos</strong>
519
-
520
-
521
-
522
- <span class="aliases">Also known as:
523
- <span class="names"><span id='tell-instance_method'>tell</span></span>
524
- </span>
525
-
526
- </p><div class="docstring">
527
- <div class="discussion">
528
- <p>
529
- Returns the value of attribute pos
530
- </p>
531
-
532
-
533
- </div>
534
- </div>
535
- <div class="tags">
536
-
537
- </div><table class="source_code">
538
- <tr>
539
- <td>
540
- <pre class="lines">
541
-
542
-
543
- 244
544
- 245
545
- 246</pre>
546
- </td>
547
- <td>
548
- <pre class="code"><span class="info file"># File 'lib/rumai/ixp/transport.rb', line 244</span>
549
-
550
- <span class='kw'>def</span> <span class='id pos'>pos</span>
551
- <span class='ivar'>@pos</span>
552
- <span class='kw'>end</span></pre>
553
- </td>
554
- </tr>
555
- </table>
556
- </div>
557
-
558
-
559
- <span id=""></span>
560
- <span id="stat-instance_method"></span>
561
- <div class="method_details ">
562
- <p class="signature " id="stat-instance_method">
563
-
564
- - (<tt><a href="../../../Object.html" title="Object (class)">Object</a></tt>) <strong>stat</strong> <span class="extras">(readonly)</span>
565
-
566
-
567
-
568
- </p><div class="docstring">
569
- <div class="discussion">
570
- <p>
571
- Returns the value of attribute stat
572
- </p>
573
-
574
-
575
- </div>
576
- </div>
577
- <div class="tags">
578
-
579
- </div><table class="source_code">
580
- <tr>
581
- <td>
582
- <pre class="lines">
583
-
584
-
585
- 239
586
- 240
587
- 241</pre>
588
- </td>
589
- <td>
590
- <pre class="code"><span class="info file"># File 'lib/rumai/ixp/transport.rb', line 239</span>
591
-
592
- <span class='kw'>def</span> <span class='id stat'>stat</span>
593
- <span class='ivar'>@stat</span>
594
- <span class='kw'>end</span></pre>
595
- </td>
596
- </tr>
597
- </table>
598
- </div>
599
-
600
- </div>
601
-
602
-
603
- <div id="instance_method_details" class="method_details_list">
604
- <h2>Instance Method Details</h2>
605
-
606
-
607
- <div class="method_details first">
608
- <p class="signature first" id="close-instance_method">
609
-
610
- - (<tt><a href="../../../Object.html" title="Object (class)">Object</a></tt>) <strong>close</strong>
611
-
612
-
613
-
614
- </p><div class="docstring">
615
- <div class="discussion">
616
- <p>
617
- Closes this stream.
618
- </p>
619
-
620
-
621
- </div>
622
- </div>
623
- <div class="tags">
624
-
625
- </div><table class="source_code">
626
- <tr>
627
- <td>
628
- <pre class="lines">
629
-
630
-
631
- 267
632
- 268
633
- 269
634
- 270
635
- 271
636
- 272
637
- 273</pre>
638
- </td>
639
- <td>
640
- <pre class="code"><span class="info file"># File 'lib/rumai/ixp/transport.rb', line 267</span>
641
-
642
- <span class='kw'>def</span> <span class='id close'>close</span>
643
- <span class='kw'>unless</span> <span class='ivar'>@closed</span>
644
- <span class='ivar'>@agent</span><span class='period'>.</span><span class='id clunk'>clunk</span> <span class='ivar'>@fid</span>
645
- <span class='ivar'>@closed</span> <span class='op'>=</span> <span class='kw'>true</span>
646
- <span class='ivar'>@eof</span> <span class='op'>=</span> <span class='kw'>true</span>
647
- <span class='kw'>end</span>
648
- <span class='kw'>end</span></pre>
649
- </td>
650
- </tr>
651
- </table>
652
- </div>
653
-
654
- <div class="method_details ">
655
- <p class="signature " id="closed?-instance_method">
656
-
657
- - (<tt>Boolean</tt>) <strong>closed?</strong>
658
-
659
-
660
-
661
- </p><div class="docstring">
662
- <div class="discussion">
663
- <p>
664
- Returns true if this stream is closed.
665
- </p>
666
-
667
-
668
- </div>
669
- </div>
670
- <div class="tags">
671
- <h3>Returns:</h3>
672
- <ul class="return">
673
-
674
- <li>
675
-
676
- <span class='type'>(<tt>Boolean</tt>)</span>
677
-
678
-
679
-
680
-
681
- </li>
682
-
683
- </ul>
684
-
685
- </div><table class="source_code">
686
- <tr>
687
- <td>
688
- <pre class="lines">
689
-
690
-
691
- 278
692
- 279
693
- 280</pre>
694
- </td>
695
- <td>
696
- <pre class="code"><span class="info file"># File 'lib/rumai/ixp/transport.rb', line 278</span>
697
-
698
- <span class='kw'>def</span> <span class='id closed?'>closed?</span>
699
- <span class='ivar'>@closed</span>
700
- <span class='kw'>end</span></pre>
701
- </td>
702
- </tr>
703
- </table>
704
- </div>
705
-
706
- <div class="method_details ">
707
- <p class="signature " id="read-instance_method">
708
-
709
- - (<tt><a href="../../../Object.html" title="Object (class)">Object</a></tt>) <strong>read</strong>(partial = false)
710
-
711
-
712
-
713
- </p><div class="docstring">
714
- <div class="discussion">
715
- <p>
716
- Reads some data from this stream at the current position. If this stream
717
- corresponds to a directory, then an Array of Stat (one for each file in the
718
- directory) will be returned.
719
- </p>
720
-
721
-
722
- </div>
723
- </div>
724
- <div class="tags">
725
- <h3>Parameters:</h3>
726
- <ul class="param">
727
-
728
- <li>
729
-
730
- <span class='type'>(<tt>Boolean</tt>)</span>
731
-
732
-
733
- <span class='name'>partial</span>
734
-
735
-
736
- <em class="default">(defaults to: <tt>false</tt>)</em>
737
-
738
-
739
- &mdash;
740
- <div class='inline'><p>
741
- When false, the entire content of this stream is read and returned.
742
- </p>
743
- <p>
744
- When true, the maximum amount of content that can fit inside a single
745
- 9P2000 message is read and returned.
746
- </p>
747
- </div>
748
-
749
- </li>
750
-
751
- </ul>
752
-
753
- </div><table class="source_code">
754
- <tr>
755
- <td>
756
- <pre class="lines">
757
-
758
-
759
- 295
760
- 296
761
- 297
762
- 298
763
- 299
764
- 300
765
- 301
766
- 302
767
- 303
768
- 304
769
- 305
770
- 306
771
- 307
772
- 308
773
- 309
774
- 310
775
- 311
776
- 312
777
- 313
778
- 314
779
- 315
780
- 316
781
- 317
782
- 318
783
- 319
784
- 320
785
- 321
786
- 322
787
- 323
788
- 324</pre>
789
- </td>
790
- <td>
791
- <pre class="code"><span class="info file"># File 'lib/rumai/ixp/transport.rb', line 295</span>
792
-
793
- <span class='kw'>def</span> <span class='id read'>read</span> <span class='id partial'>partial</span> <span class='op'>=</span> <span class='kw'>false</span>
794
- <span class='id raise'>raise</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>cannot read from a closed stream</span><span class='tstring_end'>'</span></span> <span class='kw'>if</span> <span class='ivar'>@closed</span>
795
-
796
- <span class='id content'>content</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_end'>'</span></span>
797
- <span class='kw'>begin</span>
798
- <span class='id req'>req</span> <span class='op'>=</span> <span class='const'>Tread</span><span class='period'>.</span><span class='id new'>new</span><span class='lparen'>(</span>
799
- <span class='symbol'>:fid</span> <span class='op'>=&gt;</span> <span class='ivar'>@fid</span><span class='comma'>,</span>
800
- <span class='symbol'>:offset</span> <span class='op'>=&gt;</span> <span class='ivar'>@pos</span><span class='comma'>,</span>
801
- <span class='symbol'>:count</span> <span class='op'>=&gt;</span> <span class='ivar'>@msize</span>
802
- <span class='rparen'>)</span>
803
- <span class='id rsp'>rsp</span> <span class='op'>=</span> <span class='ivar'>@agent</span><span class='period'>.</span><span class='id talk'>talk</span><span class='lparen'>(</span><span class='id req'>req</span><span class='rparen'>)</span>
804
-
805
- <span class='id content'>content</span> <span class='op'>&lt;&lt;</span> <span class='id rsp'>rsp</span><span class='period'>.</span><span class='id data'>data</span>
806
- <span class='id count'>count</span> <span class='op'>=</span> <span class='id rsp'>rsp</span><span class='period'>.</span><span class='id count'>count</span>
807
- <span class='ivar'>@pos</span> <span class='op'>+=</span> <span class='id count'>count</span>
808
- <span class='kw'>end</span> <span class='kw'>until</span> <span class='ivar'>@eof</span> <span class='op'>=</span> <span class='id count'>count</span><span class='period'>.</span><span class='id zero?'>zero?</span> <span class='kw'>or</span> <span class='id partial'>partial</span>
809
-
810
- <span class='comment'># the content of a directory is a sequence
811
- </span> <span class='comment'># of Stat for all files in that directory
812
- </span> <span class='kw'>if</span> <span class='ivar'>@stat</span><span class='period'>.</span><span class='id directory?'>directory?</span>
813
- <span class='id buffer'>buffer</span> <span class='op'>=</span> <span class='const'>StringIO</span><span class='period'>.</span><span class='id new'>new</span><span class='lparen'>(</span><span class='id content'>content</span><span class='rparen'>)</span>
814
- <span class='id content'>content</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='rbracket'>]</span>
815
-
816
- <span class='kw'>until</span> <span class='id buffer'>buffer</span><span class='period'>.</span><span class='id eof?'>eof?</span>
817
- <span class='id content'>content</span> <span class='op'>&lt;&lt;</span> <span class='const'>Stat</span><span class='period'>.</span><span class='id from_9p'>from_9p</span><span class='lparen'>(</span><span class='id buffer'>buffer</span><span class='rparen'>)</span>
818
- <span class='kw'>end</span>
819
- <span class='kw'>end</span>
820
-
821
- <span class='id content'>content</span>
822
- <span class='kw'>end</span></pre>
823
- </td>
824
- </tr>
825
- </table>
826
- </div>
827
-
828
- <div class="method_details ">
829
- <p class="signature " id="rewind-instance_method">
830
-
831
- - (<tt><a href="../../../Object.html" title="Object (class)">Object</a></tt>) <strong>rewind</strong>
832
-
833
-
834
-
835
- </p><div class="docstring">
836
- <div class="discussion">
837
- <p>
838
- Rewinds the stream to the beginning.
839
- </p>
840
-
841
-
842
- </div>
843
- </div>
844
- <div class="tags">
845
-
846
- </div><table class="source_code">
847
- <tr>
848
- <td>
849
- <pre class="lines">
850
-
851
-
852
- 259
853
- 260
854
- 261
855
- 262</pre>
856
- </td>
857
- <td>
858
- <pre class="code"><span class="info file"># File 'lib/rumai/ixp/transport.rb', line 259</span>
859
-
860
- <span class='kw'>def</span> <span class='id rewind'>rewind</span>
861
- <span class='ivar'>@pos</span> <span class='op'>=</span> <span class='int'>0</span>
862
- <span class='ivar'>@eof</span> <span class='op'>=</span> <span class='kw'>false</span>
863
- <span class='kw'>end</span></pre>
864
- </td>
865
- </tr>
866
- </table>
867
- </div>
868
-
869
- <div class="method_details ">
870
- <p class="signature " id="write-instance_method">
871
-
872
- - (<tt><a href="../../../Object.html" title="Object (class)">Object</a></tt>) <strong>write</strong>(content)
873
-
874
-
875
-
876
- <span class="aliases">Also known as:
877
- <span class="names"><span id='<<-instance_method'>&lt;&lt;</span></span>
878
- </span>
879
-
880
- </p><div class="docstring">
881
- <div class="discussion">
882
- <p>
883
- Writes the given content at the current position in this stream.
884
- </p>
885
-
886
-
887
- </div>
888
- </div>
889
- <div class="tags">
890
-
891
- </div><table class="source_code">
892
- <tr>
893
- <td>
894
- <pre class="lines">
895
-
896
-
897
- 329
898
- 330
899
- 331
900
- 332
901
- 333
902
- 334
903
- 335
904
- 336
905
- 337
906
- 338
907
- 339
908
- 340
909
- 341
910
- 342
911
- 343
912
- 344
913
- 345
914
- 346
915
- 347
916
- 348
917
- 349</pre>
918
- </td>
919
- <td>
920
- <pre class="code"><span class="info file"># File 'lib/rumai/ixp/transport.rb', line 329</span>
921
-
922
- <span class='kw'>def</span> <span class='id write'>write</span> <span class='id content'>content</span>
923
- <span class='id raise'>raise</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>cannot write to a closed stream</span><span class='tstring_end'>'</span></span> <span class='kw'>if</span> <span class='ivar'>@closed</span>
924
- <span class='id raise'>raise</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>cannot write to a directory</span><span class='tstring_end'>'</span></span> <span class='kw'>if</span> <span class='ivar'>@stat</span><span class='period'>.</span><span class='id directory?'>directory?</span>
925
-
926
- <span class='id data'>data</span> <span class='op'>=</span> <span class='id content'>content</span><span class='period'>.</span><span class='id to_s'>to_s</span>
927
- <span class='id limit'>limit</span> <span class='op'>=</span> <span class='id data'>data</span><span class='period'>.</span><span class='id length'>length</span> <span class='op'>+</span> <span class='ivar'>@pos</span>
928
-
929
- <span class='kw'>while</span> <span class='ivar'>@pos</span> <span class='op'>&lt;</span> <span class='id limit'>limit</span>
930
- <span class='id chunk'>chunk</span> <span class='op'>=</span> <span class='id data'>data</span><span class='lbracket'>[</span><span class='ivar'>@pos</span><span class='comma'>,</span> <span class='ivar'>@msize</span><span class='rbracket'>]</span>
931
-
932
- <span class='id req'>req</span> <span class='op'>=</span> <span class='const'>Twrite</span><span class='period'>.</span><span class='id new'>new</span><span class='lparen'>(</span>
933
- <span class='symbol'>:fid</span> <span class='op'>=&gt;</span> <span class='ivar'>@fid</span><span class='comma'>,</span>
934
- <span class='symbol'>:offset</span> <span class='op'>=&gt;</span> <span class='ivar'>@pos</span><span class='comma'>,</span>
935
- <span class='symbol'>:count</span> <span class='op'>=&gt;</span> <span class='id chunk'>chunk</span><span class='period'>.</span><span class='id length'>length</span><span class='comma'>,</span>
936
- <span class='symbol'>:data</span> <span class='op'>=&gt;</span> <span class='id chunk'>chunk</span>
937
- <span class='rparen'>)</span>
938
- <span class='id rsp'>rsp</span> <span class='op'>=</span> <span class='ivar'>@agent</span><span class='period'>.</span><span class='id talk'>talk</span><span class='lparen'>(</span><span class='id req'>req</span><span class='rparen'>)</span>
939
-
940
- <span class='ivar'>@pos</span> <span class='op'>+=</span> <span class='id rsp'>rsp</span><span class='period'>.</span><span class='id count'>count</span>
941
- <span class='kw'>end</span>
942
- <span class='kw'>end</span></pre>
943
- </td>
944
- </tr>
945
- </table>
946
- </div>
947
-
948
- </div>
949
-
950
- </div>
951
-
952
- <div id="footer">
953
- Generated on Thu Apr 1 00:31:02 2010 by
954
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool">yard</a>
955
- 0.5.4 (ruby-1.9.1).
956
- </div>
957
-
958
- </body>
959
- </html>