rumai 1.0.0 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (179) hide show
  1. data/Rakefile +1 -1
  2. data/doc/api/classes/Integer.src/M000002.html +1 -1
  3. data/doc/api/classes/Rumai.html +1 -1
  4. data/doc/api/classes/Rumai.src/M000015.html +1 -1
  5. data/doc/api/classes/Rumai.src/M000016.html +1 -1
  6. data/doc/api/classes/Rumai.src/M000017.html +1 -1
  7. data/doc/api/classes/Rumai.src/M000018.html +1 -1
  8. data/doc/api/classes/Rumai.src/M000019.html +1 -1
  9. data/doc/api/classes/Rumai.src/M000020.html +1 -1
  10. data/doc/api/classes/Rumai.src/M000021.html +1 -1
  11. data/doc/api/classes/Rumai.src/M000022.html +1 -1
  12. data/doc/api/classes/Rumai.src/M000023.html +1 -1
  13. data/doc/api/classes/Rumai.src/M000024.html +1 -1
  14. data/doc/api/classes/Rumai.src/M000025.html +1 -1
  15. data/doc/api/classes/Rumai.src/M000026.html +1 -1
  16. data/doc/api/classes/Rumai/Area.html +87 -87
  17. data/doc/api/classes/Rumai/Area.src/{M000091.html → M000079.html} +5 -8
  18. data/doc/api/classes/Rumai/Area.src/M000080.html +4 -5
  19. data/doc/api/classes/Rumai/Area.src/M000081.html +3 -3
  20. data/doc/api/classes/Rumai/Area.src/M000082.html +5 -5
  21. data/doc/api/classes/Rumai/Area.src/M000083.html +3 -3
  22. data/doc/api/classes/Rumai/Area.src/M000084.html +3 -3
  23. data/doc/api/classes/Rumai/Area.src/M000085.html +4 -4
  24. data/doc/api/classes/Rumai/Area.src/M000086.html +4 -4
  25. data/doc/api/classes/Rumai/Area.src/M000087.html +4 -4
  26. data/doc/api/classes/Rumai/Area.src/M000088.html +4 -4
  27. data/doc/api/classes/Rumai/Area.src/M000089.html +4 -4
  28. data/doc/api/classes/Rumai/Area.src/M000090.html +7 -3
  29. data/doc/api/classes/Rumai/Area.src/M000092.html +23 -0
  30. data/doc/api/classes/Rumai/Area.src/M000093.html +8 -3
  31. data/doc/api/classes/Rumai/Area.src/M000094.html +4 -14
  32. data/doc/api/classes/Rumai/Area.src/M000095.html +17 -4
  33. data/doc/api/classes/Rumai/Chain.html +18 -18
  34. data/doc/api/classes/Rumai/Chain.src/{M000079.html → M000076.html} +4 -4
  35. data/doc/api/classes/Rumai/Chain.src/M000077.html +4 -4
  36. data/doc/api/classes/Rumai/Chain.src/M000078.html +4 -4
  37. data/doc/api/classes/Rumai/Client.html +48 -30
  38. data/doc/api/classes/Rumai/Client.src/M000113.html +18 -0
  39. data/doc/api/classes/Rumai/Client.src/M000114.html +4 -4
  40. data/doc/api/classes/Rumai/Client.src/M000115.html +5 -5
  41. data/doc/api/classes/Rumai/Client.src/M000116.html +26 -5
  42. data/doc/api/classes/Rumai/Client.src/M000117.html +5 -25
  43. data/doc/api/classes/Rumai/Client.src/M000118.html +4 -13
  44. data/doc/api/classes/Rumai/Client.src/M000119.html +4 -5
  45. data/doc/api/classes/Rumai/Client.src/M000120.html +1 -1
  46. data/doc/api/classes/Rumai/Client.src/M000121.html +1 -1
  47. data/doc/api/classes/Rumai/Client.src/M000122.html +1 -1
  48. data/doc/api/classes/Rumai/Client.src/M000123.html +1 -1
  49. data/doc/api/classes/Rumai/Client.src/M000124.html +1 -1
  50. data/doc/api/classes/Rumai/Client.src/M000125.html +1 -1
  51. data/doc/api/classes/Rumai/Client.src/M000126.html +1 -1
  52. data/doc/api/classes/Rumai/Client.src/M000127.html +1 -1
  53. data/doc/api/classes/Rumai/Client.src/M000128.html +1 -1
  54. data/doc/api/classes/Rumai/Client.src/M000129.html +1 -1
  55. data/doc/api/classes/Rumai/Client.src/M000130.html +1 -1
  56. data/doc/api/classes/Rumai/ClientContainer.src/M000027.html +1 -1
  57. data/doc/api/classes/Rumai/ClientContainer.src/M000028.html +1 -1
  58. data/doc/api/classes/Rumai/ClientContainer.src/M000029.html +1 -1
  59. data/doc/api/classes/Rumai/IXP/Agent.html +77 -77
  60. data/doc/api/classes/Rumai/IXP/Agent.src/M000044.html +53 -0
  61. data/doc/api/classes/Rumai/IXP/Agent.src/M000045.html +36 -0
  62. data/doc/api/classes/Rumai/IXP/Agent.src/M000046.html +20 -28
  63. data/doc/api/classes/Rumai/IXP/Agent.src/M000047.html +5 -29
  64. data/doc/api/classes/Rumai/IXP/Agent.src/M000048.html +7 -24
  65. data/doc/api/classes/Rumai/IXP/Agent.src/M000049.html +5 -5
  66. data/doc/api/classes/Rumai/IXP/Agent.src/M000050.html +18 -7
  67. data/doc/api/classes/Rumai/IXP/Agent.src/M000051.html +5 -6
  68. data/doc/api/classes/Rumai/IXP/Agent.src/M000052.html +4 -19
  69. data/doc/api/classes/Rumai/IXP/Agent.src/M000053.html +7 -5
  70. data/doc/api/classes/Rumai/IXP/Agent.src/M000054.html +6 -4
  71. data/doc/api/classes/Rumai/IXP/Agent.src/M000055.html +6 -7
  72. data/doc/api/classes/Rumai/IXP/Agent.src/M000056.html +8 -6
  73. data/doc/api/classes/Rumai/IXP/Agent.src/M000057.html +9 -6
  74. data/doc/api/classes/Rumai/IXP/Agent.src/M000058.html +5 -8
  75. data/doc/api/classes/Rumai/IXP/Agent/FidStream.html +93 -35
  76. data/doc/api/classes/Rumai/IXP/Agent/FidStream.src/M000060.html +23 -0
  77. data/doc/api/classes/Rumai/IXP/{Struct/Field.src/M000040.html → Agent/FidStream.src/M000061.html} +5 -4
  78. data/doc/api/classes/Rumai/IXP/Agent/FidStream.src/M000062.html +8 -8
  79. data/doc/api/classes/Rumai/IXP/Agent/FidStream.src/M000063.html +4 -7
  80. data/doc/api/classes/Rumai/IXP/Agent/FidStream.src/M000064.html +12 -9
  81. data/doc/api/classes/Rumai/IXP/Agent/FidStream.src/M000065.html +21 -11
  82. data/doc/api/classes/Rumai/IXP/Agent/MODES.html +5 -5
  83. data/doc/api/classes/Rumai/IXP/Agent/MODES.src/{M000061.html → M000059.html} +0 -0
  84. data/doc/api/classes/Rumai/IXP/Agent/RangedPool.html +16 -16
  85. data/doc/api/classes/Rumai/IXP/Agent/RangedPool.src/M000067.html +22 -0
  86. data/doc/api/classes/Rumai/IXP/Agent/RangedPool.src/M000068.html +21 -8
  87. data/doc/api/classes/Rumai/IXP/Agent/RangedPool.src/M000069.html +4 -18
  88. data/doc/api/classes/Rumai/IXP/Fcall.html +21 -21
  89. data/doc/api/classes/Rumai/IXP/Fcall.src/M000070.html +20 -0
  90. data/doc/api/classes/Rumai/IXP/Fcall.src/M000071.html +11 -6
  91. data/doc/api/classes/Rumai/IXP/Fcall.src/M000072.html +4 -11
  92. data/doc/api/classes/Rumai/IXP/Fcall.src/M000073.html +3 -3
  93. data/doc/api/classes/Rumai/IXP/Stat.html +5 -5
  94. data/doc/api/classes/Rumai/IXP/Stat.src/{M000076.html → M000075.html} +1 -1
  95. data/doc/api/classes/Rumai/IXP/Stream.html +5 -5
  96. data/doc/api/classes/Rumai/IXP/Stream.src/{M000045.html → M000043.html} +1 -2
  97. data/doc/api/classes/Rumai/IXP/Struct.html +11 -47
  98. data/doc/api/classes/Rumai/IXP/Struct.src/M000030.html +1 -1
  99. data/doc/api/classes/Rumai/IXP/Struct.src/M000031.html +4 -4
  100. data/doc/api/classes/Rumai/IXP/Struct.src/M000032.html +5 -3
  101. data/doc/api/classes/Rumai/IXP/Struct.src/M000033.html +43 -4
  102. data/doc/api/classes/Rumai/IXP/Struct/Field.html +34 -42
  103. data/doc/api/classes/Rumai/IXP/Struct/Field.src/M000034.html +21 -0
  104. data/doc/api/classes/Rumai/IXP/Struct/Field.src/{M000041.html → M000035.html} +7 -4
  105. data/doc/api/classes/Rumai/IXP/Struct/Field.src/M000036.html +6 -7
  106. data/doc/api/classes/Rumai/IXP/Struct/Field.src/M000037.html +13 -5
  107. data/doc/api/classes/Rumai/IXP/Struct/Field.src/M000038.html +4 -6
  108. data/doc/api/classes/Rumai/IXP/Struct/Field.src/M000039.html +4 -15
  109. data/doc/api/classes/Rumai/IXP/Struct/Field/CounteeField.html +12 -12
  110. data/doc/api/classes/Rumai/IXP/Struct/Field/CounteeField.src/{M000043.html → M000041.html} +3 -3
  111. data/doc/api/classes/Rumai/IXP/Struct/Field/CounteeField.src/{M000044.html → M000042.html} +4 -4
  112. data/doc/api/classes/Rumai/IXP/Struct/Field/CounterField.html +6 -6
  113. data/doc/api/classes/Rumai/IXP/Struct/Field/CounterField.src/{M000042.html → M000040.html} +3 -3
  114. data/doc/api/classes/Rumai/IXP/Terror.html +5 -5
  115. data/doc/api/classes/Rumai/IXP/Terror.src/{M000075.html → M000074.html} +1 -1
  116. data/doc/api/classes/Rumai/Node.html +88 -88
  117. data/doc/api/classes/Rumai/Node.src/M000096.html +18 -0
  118. data/doc/api/classes/Rumai/Node.src/M000097.html +4 -4
  119. data/doc/api/classes/Rumai/Node.src/M000098.html +8 -4
  120. data/doc/api/classes/Rumai/Node.src/M000099.html +4 -8
  121. data/doc/api/classes/Rumai/Node.src/M000100.html +4 -4
  122. data/doc/api/classes/Rumai/Node.src/M000101.html +4 -4
  123. data/doc/api/classes/Rumai/Node.src/M000102.html +4 -4
  124. data/doc/api/classes/Rumai/Node.src/M000103.html +8 -4
  125. data/doc/api/classes/Rumai/Node.src/M000104.html +4 -8
  126. data/doc/api/classes/Rumai/Node.src/M000105.html +4 -4
  127. data/doc/api/classes/Rumai/Node.src/M000106.html +4 -4
  128. data/doc/api/classes/Rumai/Node.src/M000107.html +4 -4
  129. data/doc/api/classes/Rumai/Node.src/M000108.html +4 -4
  130. data/doc/api/classes/Rumai/Node.src/M000109.html +4 -4
  131. data/doc/api/classes/Rumai/Node.src/M000110.html +5 -5
  132. data/doc/api/classes/Rumai/Node.src/M000111.html +7 -5
  133. data/doc/api/classes/Rumai/Node.src/M000112.html +12 -5
  134. data/doc/api/classes/Rumai/View.html +2 -2
  135. data/doc/api/classes/Rumai/View.src/M000131.html +1 -1
  136. data/doc/api/classes/Rumai/View.src/M000132.html +1 -1
  137. data/doc/api/classes/Rumai/View.src/M000133.html +1 -1
  138. data/doc/api/classes/Rumai/View.src/M000134.html +1 -1
  139. data/doc/api/classes/Rumai/View.src/M000135.html +1 -1
  140. data/doc/api/classes/Rumai/View.src/M000136.html +1 -1
  141. data/doc/api/classes/Rumai/View.src/M000137.html +1 -1
  142. data/doc/api/classes/Rumai/View.src/M000138.html +1 -1
  143. data/doc/api/classes/Rumai/View.src/M000139.html +1 -1
  144. data/doc/api/classes/Rumai/View.src/M000140.html +1 -1
  145. data/doc/api/classes/Rumai/View.src/M000141.html +3 -3
  146. data/doc/api/classes/Rumai/View.src/M000142.html +1 -1
  147. data/doc/api/classes/Rumai/View.src/M000143.html +1 -1
  148. data/doc/api/classes/Rumai/View.src/M000144.html +1 -1
  149. data/doc/api/classes/Rumai/View.src/M000145.html +1 -1
  150. data/doc/api/classes/Rumai/View.src/M000146.html +1 -1
  151. data/doc/api/classes/String.src/M000005.html +1 -1
  152. data/doc/api/classes/String.src/M000006.html +2 -3
  153. data/doc/api/classes/Time.src/M000003.html +1 -1
  154. data/doc/api/classes/Time.src/M000004.html +1 -1
  155. data/doc/api/created.rid +1 -1
  156. data/doc/api/files/lib/rumai/fs_rb.html +1 -1
  157. data/doc/api/files/lib/rumai/ixp/message_rb.html +1 -1
  158. data/doc/api/files/lib/rumai/ixp/transport_rb.html +1 -1
  159. data/doc/api/files/lib/rumai/nfo_rb.html +1 -1
  160. data/doc/api/files/lib/rumai/wm_rb.html +1 -1
  161. data/doc/api/fr_method_index.html +91 -91
  162. data/doc/guide.erb +2 -2
  163. data/doc/guide.html +49 -41
  164. data/lib/rumai/fs.rb +3 -3
  165. data/lib/rumai/ixp/message.rb +19 -36
  166. data/lib/rumai/ixp/transport.rb +98 -85
  167. data/lib/rumai/nfo.rb +2 -2
  168. data/lib/rumai/wm.rb +15 -25
  169. metadata +24 -25
  170. data/doc/api/classes/Rumai/Area.src/M000096.html +0 -31
  171. data/doc/api/classes/Rumai/IXP/Agent.src/M000059.html +0 -23
  172. data/doc/api/classes/Rumai/IXP/Agent.src/M000060.html +0 -19
  173. data/doc/api/classes/Rumai/IXP/Agent/FidStream.src/M000066.html +0 -36
  174. data/doc/api/classes/Rumai/IXP/Agent/RangedPool.src/M000070.html +0 -20
  175. data/doc/api/classes/Rumai/IXP/Fcall.src/M000074.html +0 -18
  176. data/doc/api/classes/Rumai/IXP/Struct.src/M000034.html +0 -20
  177. data/doc/api/classes/Rumai/IXP/Struct.src/M000035.html +0 -57
  178. data/doc/api/classes/Rumai/Node.src/M000113.html +0 -27
  179. data/doc/index.html +0 -2035
@@ -10,7 +10,7 @@
10
10
  <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
11
11
  </head>
12
12
  <body class="standalone-code">
13
- <pre><span class="ruby-comment cmt"># File lib/rumai/wm.rb, line 275</span>
13
+ <pre><span class="ruby-comment cmt"># File lib/rumai/wm.rb, line 271</span>
14
14
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">untag</span> <span class="ruby-operator">*</span><span class="ruby-identifier">aTags</span>
15
15
  <span class="ruby-identifier">with_tags</span> <span class="ruby-keyword kw">do</span>
16
16
  <span class="ruby-identifier">aTags</span>.<span class="ruby-identifier">flatten</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">tag</span><span class="ruby-operator">|</span>
@@ -10,7 +10,7 @@
10
10
  <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
11
11
  </head>
12
12
  <body class="standalone-code">
13
- <pre><span class="ruby-comment cmt"># File lib/rumai/wm.rb, line 290</span>
13
+ <pre><span class="ruby-comment cmt"># File lib/rumai/wm.rb, line 286</span>
14
14
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">group?</span>
15
15
  <span class="ruby-identifier">tags</span>.<span class="ruby-identifier">include?</span> <span class="ruby-constant">GROUPING_TAG</span>
16
16
  <span class="ruby-keyword kw">end</span></pre>
@@ -10,7 +10,7 @@
10
10
  <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
11
11
  </head>
12
12
  <body class="standalone-code">
13
- <pre><span class="ruby-comment cmt"># File lib/rumai/wm.rb, line 295</span>
13
+ <pre><span class="ruby-comment cmt"># File lib/rumai/wm.rb, line 291</span>
14
14
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">group</span>
15
15
  <span class="ruby-identifier">with_tags</span> <span class="ruby-keyword kw">do</span>
16
16
  <span class="ruby-identifier">push</span> <span class="ruby-constant">GROUPING_TAG</span>
@@ -10,7 +10,7 @@
10
10
  <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
11
11
  </head>
12
12
  <body class="standalone-code">
13
- <pre><span class="ruby-comment cmt"># File lib/rumai/wm.rb, line 302</span>
13
+ <pre><span class="ruby-comment cmt"># File lib/rumai/wm.rb, line 298</span>
14
14
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">ungroup</span>
15
15
  <span class="ruby-identifier">untag</span> <span class="ruby-constant">GROUPING_TAG</span>
16
16
  <span class="ruby-keyword kw">end</span></pre>
@@ -10,7 +10,7 @@
10
10
  <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
11
11
  </head>
12
12
  <body class="standalone-code">
13
- <pre><span class="ruby-comment cmt"># File lib/rumai/wm.rb, line 307</span>
13
+ <pre><span class="ruby-comment cmt"># File lib/rumai/wm.rb, line 303</span>
14
14
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">toggle_group</span>
15
15
  <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">group?</span>
16
16
  <span class="ruby-identifier">ungroup</span>
@@ -10,7 +10,7 @@
10
10
  <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
11
11
  </head>
12
12
  <body class="standalone-code">
13
- <pre><span class="ruby-comment cmt"># File lib/rumai/wm.rb, line 331</span>
13
+ <pre><span class="ruby-comment cmt"># File lib/rumai/wm.rb, line 326</span>
14
14
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">client_ids</span>
15
15
  []
16
16
  <span class="ruby-keyword kw">end</span></pre>
@@ -10,7 +10,7 @@
10
10
  <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
11
11
  </head>
12
12
  <body class="standalone-code">
13
- <pre><span class="ruby-comment cmt"># File lib/rumai/wm.rb, line 336</span>
13
+ <pre><span class="ruby-comment cmt"># File lib/rumai/wm.rb, line 331</span>
14
14
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">clients</span>
15
15
  <span class="ruby-identifier">client_ids</span>.<span class="ruby-identifier">map!</span> {<span class="ruby-operator">|</span><span class="ruby-identifier">i</span><span class="ruby-operator">|</span> <span class="ruby-constant">Client</span>.<span class="ruby-identifier">new</span> <span class="ruby-identifier">i</span>}
16
16
  <span class="ruby-keyword kw">end</span></pre>
@@ -10,7 +10,7 @@
10
10
  <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
11
11
  </head>
12
12
  <body class="standalone-code">
13
- <pre><span class="ruby-comment cmt"># File lib/rumai/wm.rb, line 350</span>
13
+ <pre><span class="ruby-comment cmt"># File lib/rumai/wm.rb, line 345</span>
14
14
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">grouping</span>
15
15
  <span class="ruby-identifier">clients</span>.<span class="ruby-identifier">select</span> {<span class="ruby-operator">|</span><span class="ruby-identifier">c</span><span class="ruby-operator">|</span> <span class="ruby-identifier">c</span>.<span class="ruby-identifier">group?</span> }
16
16
  <span class="ruby-keyword kw">end</span></pre>
@@ -95,21 +95,21 @@ connection.
95
95
  <h3 class="section-bar">Methods</h3>
96
96
 
97
97
  <div class="name-list">
98
- <a href="#M000059">attach</a>&nbsp;&nbsp;
99
- <a href="#M000060">clunk</a>&nbsp;&nbsp;
100
- <a href="#M000052">create</a>&nbsp;&nbsp;
101
- <a href="#M000050">entries</a>&nbsp;&nbsp;
102
- <a href="#M000046">new</a>&nbsp;&nbsp;
103
- <a href="#M000048">open</a>&nbsp;&nbsp;
104
- <a href="#M000049">read</a>&nbsp;&nbsp;
105
- <a href="#M000053">remove</a>&nbsp;&nbsp;
106
- <a href="#M000054">remove_fid</a>&nbsp;&nbsp;
107
- <a href="#M000055">stat</a>&nbsp;&nbsp;
108
- <a href="#M000056">stat_fid</a>&nbsp;&nbsp;
109
- <a href="#M000047">talk</a>&nbsp;&nbsp;
110
- <a href="#M000057">walk</a>&nbsp;&nbsp;
111
- <a href="#M000058">walk_fid</a>&nbsp;&nbsp;
112
- <a href="#M000051">write</a>&nbsp;&nbsp;
98
+ <a href="#M000057">attach</a>&nbsp;&nbsp;
99
+ <a href="#M000058">clunk</a>&nbsp;&nbsp;
100
+ <a href="#M000050">create</a>&nbsp;&nbsp;
101
+ <a href="#M000048">entries</a>&nbsp;&nbsp;
102
+ <a href="#M000044">new</a>&nbsp;&nbsp;
103
+ <a href="#M000046">open</a>&nbsp;&nbsp;
104
+ <a href="#M000047">read</a>&nbsp;&nbsp;
105
+ <a href="#M000051">remove</a>&nbsp;&nbsp;
106
+ <a href="#M000052">remove_fid</a>&nbsp;&nbsp;
107
+ <a href="#M000053">stat</a>&nbsp;&nbsp;
108
+ <a href="#M000054">stat_fid</a>&nbsp;&nbsp;
109
+ <a href="#M000045">talk</a>&nbsp;&nbsp;
110
+ <a href="#M000055">walk</a>&nbsp;&nbsp;
111
+ <a href="#M000056">walk_fid</a>&nbsp;&nbsp;
112
+ <a href="#M000049">write</a>&nbsp;&nbsp;
113
113
  </div>
114
114
  </div>
115
115
 
@@ -165,12 +165,12 @@ Class <a href="Agent/RangedPool.html" class="link">Rumai::IXP::Agent::RangedPool
165
165
  <div id="methods">
166
166
  <h3 class="section-bar">Public Class methods</h3>
167
167
 
168
- <div id="method-M000046" class="method-detail">
169
- <a name="M000046"></a>
168
+ <div id="method-M000044" class="method-detail">
169
+ <a name="M000044"></a>
170
170
 
171
171
  <div class="method-heading">
172
- <a href="Agent.src/M000046.html" target="Code" class="method-signature"
173
- onclick="popupCode('Agent.src/M000046.html');return false;">
172
+ <a href="Agent.src/M000044.html" target="Code" class="method-signature"
173
+ onclick="popupCode('Agent.src/M000044.html');return false;">
174
174
  <span class="method-name">new</span><span class="method-args">(aStream)</span>
175
175
  </a>
176
176
  </div>
@@ -181,12 +181,12 @@ Class <a href="Agent/RangedPool.html" class="link">Rumai::IXP::Agent::RangedPool
181
181
 
182
182
  <h3 class="section-bar">Public Instance methods</h3>
183
183
 
184
- <div id="method-M000059" class="method-detail">
185
- <a name="M000059"></a>
184
+ <div id="method-M000057" class="method-detail">
185
+ <a name="M000057"></a>
186
186
 
187
187
  <div class="method-heading">
188
- <a href="Agent.src/M000059.html" target="Code" class="method-signature"
189
- onclick="popupCode('Agent.src/M000059.html');return false;">
188
+ <a href="Agent.src/M000057.html" target="Code" class="method-signature"
189
+ onclick="popupCode('Agent.src/M000057.html');return false;">
190
190
  <span class="method-name">attach</span><span class="method-args">(aRootFid, aAuthFid = Fcall::NOFID, aAuthName = ENV['USER'])</span>
191
191
  </a>
192
192
  </div>
@@ -198,12 +198,12 @@ Associates the given FID with the FS root.
198
198
  </div>
199
199
  </div>
200
200
 
201
- <div id="method-M000060" class="method-detail">
202
- <a name="M000060"></a>
201
+ <div id="method-M000058" class="method-detail">
202
+ <a name="M000058"></a>
203
203
 
204
204
  <div class="method-heading">
205
- <a href="Agent.src/M000060.html" target="Code" class="method-signature"
206
- onclick="popupCode('Agent.src/M000060.html');return false;">
205
+ <a href="Agent.src/M000058.html" target="Code" class="method-signature"
206
+ onclick="popupCode('Agent.src/M000058.html');return false;">
207
207
  <span class="method-name">clunk</span><span class="method-args">(aFid)</span>
208
208
  </a>
209
209
  </div>
@@ -215,31 +215,31 @@ Retires the given FID from use.
215
215
  </div>
216
216
  </div>
217
217
 
218
- <div id="method-M000052" class="method-detail">
219
- <a name="M000052"></a>
218
+ <div id="method-M000050" class="method-detail">
219
+ <a name="M000050"></a>
220
220
 
221
221
  <div class="method-heading">
222
- <a href="Agent.src/M000052.html" target="Code" class="method-signature"
223
- onclick="popupCode('Agent.src/M000052.html');return false;">
222
+ <a href="Agent.src/M000050.html" target="Code" class="method-signature"
223
+ onclick="popupCode('Agent.src/M000050.html');return false;">
224
224
  <span class="method-name">create</span><span class="method-args">(aPath, aMode = 'rw', aPerm = 0644)</span>
225
225
  </a>
226
226
  </div>
227
227
 
228
228
  <div class="method-description">
229
229
  <p>
230
- Creates a <a href="Agent.html#M000046">new</a> file at the given path that
230
+ Creates a <a href="Agent.html#M000044">new</a> file at the given path that
231
231
  is accessible using the given modes for a user having the given permission
232
232
  bits.
233
233
  </p>
234
234
  </div>
235
235
  </div>
236
236
 
237
- <div id="method-M000050" class="method-detail">
238
- <a name="M000050"></a>
237
+ <div id="method-M000048" class="method-detail">
238
+ <a name="M000048"></a>
239
239
 
240
240
  <div class="method-heading">
241
- <a href="Agent.src/M000050.html" target="Code" class="method-signature"
242
- onclick="popupCode('Agent.src/M000050.html');return false;">
241
+ <a href="Agent.src/M000048.html" target="Code" class="method-signature"
242
+ onclick="popupCode('Agent.src/M000048.html');return false;">
243
243
  <span class="method-name">entries</span><span class="method-args">(aPath)</span>
244
244
  </a>
245
245
  </div>
@@ -251,12 +251,12 @@ Returns the names of all files inside the directory whose path is given.
251
251
  </div>
252
252
  </div>
253
253
 
254
- <div id="method-M000048" class="method-detail">
255
- <a name="M000048"></a>
254
+ <div id="method-M000046" class="method-detail">
255
+ <a name="M000046"></a>
256
256
 
257
257
  <div class="method-heading">
258
- <a href="Agent.src/M000048.html" target="Code" class="method-signature"
259
- onclick="popupCode('Agent.src/M000048.html');return false;">
258
+ <a href="Agent.src/M000046.html" target="Code" class="method-signature"
259
+ onclick="popupCode('Agent.src/M000046.html');return false;">
260
260
  <span class="method-name">open</span><span class="method-args">(aPath, aMode = 'r' {|FidStream| ...}</span>
261
261
  </a>
262
262
  </div>
@@ -274,13 +274,13 @@ See File::open in the Ruby documentation.
274
274
  </div>
275
275
  </div>
276
276
 
277
- <div id="method-M000049" class="method-detail">
278
- <a name="M000049"></a>
277
+ <div id="method-M000047" class="method-detail">
278
+ <a name="M000047"></a>
279
279
 
280
280
  <div class="method-heading">
281
- <a href="Agent.src/M000049.html" target="Code" class="method-signature"
282
- onclick="popupCode('Agent.src/M000049.html');return false;">
283
- <span class="method-name">read</span><span class="method-args">(aPath)</span>
281
+ <a href="Agent.src/M000047.html" target="Code" class="method-signature"
282
+ onclick="popupCode('Agent.src/M000047.html');return false;">
283
+ <span class="method-name">read</span><span class="method-args">(aPath, *aArgs)</span>
284
284
  </a>
285
285
  </div>
286
286
 
@@ -291,12 +291,12 @@ Returns the content of the file/directory at the given path.
291
291
  </div>
292
292
  </div>
293
293
 
294
- <div id="method-M000053" class="method-detail">
295
- <a name="M000053"></a>
294
+ <div id="method-M000051" class="method-detail">
295
+ <a name="M000051"></a>
296
296
 
297
297
  <div class="method-heading">
298
- <a href="Agent.src/M000053.html" target="Code" class="method-signature"
299
- onclick="popupCode('Agent.src/M000053.html');return false;">
298
+ <a href="Agent.src/M000051.html" target="Code" class="method-signature"
299
+ onclick="popupCode('Agent.src/M000051.html');return false;">
300
300
  <span class="method-name">remove</span><span class="method-args">(aPath)</span>
301
301
  </a>
302
302
  </div>
@@ -308,12 +308,12 @@ Deletes the file at the given path.
308
308
  </div>
309
309
  </div>
310
310
 
311
- <div id="method-M000054" class="method-detail">
312
- <a name="M000054"></a>
311
+ <div id="method-M000052" class="method-detail">
312
+ <a name="M000052"></a>
313
313
 
314
314
  <div class="method-heading">
315
- <a href="Agent.src/M000054.html" target="Code" class="method-signature"
316
- onclick="popupCode('Agent.src/M000054.html');return false;">
315
+ <a href="Agent.src/M000052.html" target="Code" class="method-signature"
316
+ onclick="popupCode('Agent.src/M000052.html');return false;">
317
317
  <span class="method-name">remove_fid</span><span class="method-args">(aPathFid)</span>
318
318
  </a>
319
319
  </div>
@@ -325,12 +325,12 @@ Deletes the file corresponding to the given FID and clunks the given FID.
325
325
  </div>
326
326
  </div>
327
327
 
328
- <div id="method-M000055" class="method-detail">
329
- <a name="M000055"></a>
328
+ <div id="method-M000053" class="method-detail">
329
+ <a name="M000053"></a>
330
330
 
331
331
  <div class="method-heading">
332
- <a href="Agent.src/M000055.html" target="Code" class="method-signature"
333
- onclick="popupCode('Agent.src/M000055.html');return false;">
332
+ <a href="Agent.src/M000053.html" target="Code" class="method-signature"
333
+ onclick="popupCode('Agent.src/M000053.html');return false;">
334
334
  <span class="method-name">stat</span><span class="method-args">(aPath)</span>
335
335
  </a>
336
336
  </div>
@@ -342,12 +342,12 @@ Returns information about the file at the given path.
342
342
  </div>
343
343
  </div>
344
344
 
345
- <div id="method-M000056" class="method-detail">
346
- <a name="M000056"></a>
345
+ <div id="method-M000054" class="method-detail">
346
+ <a name="M000054"></a>
347
347
 
348
348
  <div class="method-heading">
349
- <a href="Agent.src/M000056.html" target="Code" class="method-signature"
350
- onclick="popupCode('Agent.src/M000056.html');return false;">
349
+ <a href="Agent.src/M000054.html" target="Code" class="method-signature"
350
+ onclick="popupCode('Agent.src/M000054.html');return false;">
351
351
  <span class="method-name">stat_fid</span><span class="method-args">(aPathFid)</span>
352
352
  </a>
353
353
  </div>
@@ -359,12 +359,12 @@ Returns information about the file referenced by the given FID.
359
359
  </div>
360
360
  </div>
361
361
 
362
- <div id="method-M000047" class="method-detail">
363
- <a name="M000047"></a>
362
+ <div id="method-M000045" class="method-detail">
363
+ <a name="M000045"></a>
364
364
 
365
365
  <div class="method-heading">
366
- <a href="Agent.src/M000047.html" target="Code" class="method-signature"
367
- onclick="popupCode('Agent.src/M000047.html');return false;">
366
+ <a href="Agent.src/M000045.html" target="Code" class="method-signature"
367
+ onclick="popupCode('Agent.src/M000045.html');return false;">
368
368
  <span class="method-name">talk</span><span class="method-args">(aRequest)</span>
369
369
  </a>
370
370
  </div>
@@ -381,12 +381,12 @@ about the details of tag collisions and thread safety.
381
381
  </div>
382
382
  </div>
383
383
 
384
- <div id="method-M000057" class="method-detail">
385
- <a name="M000057"></a>
384
+ <div id="method-M000055" class="method-detail">
385
+ <a name="M000055"></a>
386
386
 
387
387
  <div class="method-heading">
388
- <a href="Agent.src/M000057.html" target="Code" class="method-signature"
389
- onclick="popupCode('Agent.src/M000057.html');return false;">
388
+ <a href="Agent.src/M000055.html" target="Code" class="method-signature"
389
+ onclick="popupCode('Agent.src/M000055.html');return false;">
390
390
  <span class="method-name">walk</span><span class="method-args">(aPath)</span>
391
391
  </a>
392
392
  </div>
@@ -398,12 +398,12 @@ Returns an FID corresponding to the given path.
398
398
  </div>
399
399
  </div>
400
400
 
401
- <div id="method-M000058" class="method-detail">
402
- <a name="M000058"></a>
401
+ <div id="method-M000056" class="method-detail">
402
+ <a name="M000056"></a>
403
403
 
404
404
  <div class="method-heading">
405
- <a href="Agent.src/M000058.html" target="Code" class="method-signature"
406
- onclick="popupCode('Agent.src/M000058.html');return false;">
405
+ <a href="Agent.src/M000056.html" target="Code" class="method-signature"
406
+ onclick="popupCode('Agent.src/M000056.html');return false;">
407
407
  <span class="method-name">walk_fid</span><span class="method-args">(aPathFid, aPath)</span>
408
408
  </a>
409
409
  </div>
@@ -415,12 +415,12 @@ Associates the given FID to the given path.
415
415
  </div>
416
416
  </div>
417
417
 
418
- <div id="method-M000051" class="method-detail">
419
- <a name="M000051"></a>
418
+ <div id="method-M000049" class="method-detail">
419
+ <a name="M000049"></a>
420
420
 
421
421
  <div class="method-heading">
422
- <a href="Agent.src/M000051.html" target="Code" class="method-signature"
423
- onclick="popupCode('Agent.src/M000051.html');return false;">
422
+ <a href="Agent.src/M000049.html" target="Code" class="method-signature"
423
+ onclick="popupCode('Agent.src/M000049.html');return false;">
424
424
  <span class="method-name">write</span><span class="method-args">(aPath, aContent)</span>
425
425
  </a>
426
426
  </div>
@@ -0,0 +1,53 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html>
7
+ <head>
8
+ <title>new (Rumai::IXP::Agent)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre><span class="ruby-comment cmt"># File lib/rumai/ixp/transport.rb, line 16</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span> <span class="ruby-identifier">aStream</span>
15
+ <span class="ruby-ivar">@stream</span> = <span class="ruby-identifier">aStream</span>
16
+ <span class="ruby-ivar">@sendLock</span> = <span class="ruby-constant">Mutex</span>.<span class="ruby-identifier">new</span>
17
+ <span class="ruby-ivar">@recvBays</span> = <span class="ruby-constant">Hash</span>.<span class="ruby-identifier">new</span> {<span class="ruby-operator">|</span><span class="ruby-identifier">h</span>,<span class="ruby-identifier">k</span><span class="ruby-operator">|</span> <span class="ruby-identifier">h</span>[<span class="ruby-identifier">k</span>] = <span class="ruby-constant">Queue</span>.<span class="ruby-identifier">new</span> } <span class="ruby-comment cmt"># tag =&gt; Queue(message)</span>
18
+
19
+ <span class="ruby-comment cmt"># background thread which continuously receives</span>
20
+ <span class="ruby-comment cmt"># and dispatches messages from the 9P2000 server</span>
21
+ <span class="ruby-constant">Thread</span>.<span class="ruby-identifier">new</span> <span class="ruby-keyword kw">do</span>
22
+ <span class="ruby-keyword kw">while</span> <span class="ruby-keyword kw">true</span>
23
+ <span class="ruby-identifier">msg</span> = <span class="ruby-constant">Fcall</span>.<span class="ruby-identifier">from_9p</span> <span class="ruby-ivar">@stream</span>
24
+ <span class="ruby-ivar">@recvBays</span>[<span class="ruby-identifier">msg</span>.<span class="ruby-identifier">tag</span>] <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">msg</span>
25
+ <span class="ruby-keyword kw">end</span>
26
+ <span class="ruby-keyword kw">end</span>.<span class="ruby-identifier">priority</span> = <span class="ruby-value">-1</span>
27
+
28
+ <span class="ruby-ivar">@tagPool</span> = <span class="ruby-constant">RangedPool</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value">0</span><span class="ruby-operator">...</span><span class="ruby-constant">BYTE2_MASK</span>)
29
+ <span class="ruby-ivar">@fidPool</span> = <span class="ruby-constant">RangedPool</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value">0</span><span class="ruby-operator">...</span><span class="ruby-constant">BYTE4_MASK</span>)
30
+
31
+ <span class="ruby-comment cmt"># establish connection with 9P2000 server</span>
32
+ <span class="ruby-identifier">req</span> = <span class="ruby-constant">Tversion</span>.<span class="ruby-identifier">new</span>(
33
+ <span class="ruby-identifier">:tag</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-constant">Fcall</span><span class="ruby-operator">::</span><span class="ruby-constant">NOTAG</span>,
34
+ <span class="ruby-identifier">:msize</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-constant">Tversion</span><span class="ruby-operator">::</span><span class="ruby-constant">MSIZE</span>,
35
+ <span class="ruby-identifier">:version</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-constant">Tversion</span><span class="ruby-operator">::</span><span class="ruby-constant">VERSION</span>
36
+ )
37
+ <span class="ruby-identifier">rsp</span> = <span class="ruby-identifier">talk</span>(<span class="ruby-identifier">req</span>)
38
+
39
+ <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">req</span>.<span class="ruby-identifier">version</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">rsp</span>.<span class="ruby-identifier">version</span>
40
+ <span class="ruby-identifier">raise</span> <span class="ruby-constant">Error</span>, <span class="ruby-node">&quot;protocol mismatch: self=#{req.version.inspect} server=#{rsp.version.inspect}&quot;</span>
41
+ <span class="ruby-keyword kw">end</span>
42
+
43
+ <span class="ruby-ivar">@msize</span> = <span class="ruby-identifier">rsp</span>.<span class="ruby-identifier">msize</span>
44
+
45
+ <span class="ruby-comment cmt"># authenticate the connection (not necessary for wmii)</span>
46
+ <span class="ruby-ivar">@authFid</span> = <span class="ruby-constant">Fcall</span><span class="ruby-operator">::</span><span class="ruby-constant">NOFID</span>
47
+
48
+ <span class="ruby-comment cmt"># attach to filesystem root</span>
49
+ <span class="ruby-ivar">@rootFid</span> = <span class="ruby-ivar">@fidPool</span>.<span class="ruby-identifier">obtain</span>
50
+ <span class="ruby-identifier">attach</span> <span class="ruby-ivar">@rootFid</span>, <span class="ruby-ivar">@authFid</span>
51
+ <span class="ruby-keyword kw">end</span></pre>
52
+ </body>
53
+ </html>
@@ -0,0 +1,36 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html>
7
+ <head>
8
+ <title>talk (Rumai::IXP::Agent)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre><span class="ruby-comment cmt"># File lib/rumai/ixp/transport.rb, line 104</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">talk</span> <span class="ruby-identifier">aRequest</span>
15
+ <span class="ruby-comment cmt"># send the request</span>
16
+ <span class="ruby-identifier">tag</span> = <span class="ruby-ivar">@tagPool</span>.<span class="ruby-identifier">obtain</span>
17
+ <span class="ruby-identifier">bay</span> = <span class="ruby-ivar">@recvBays</span>[<span class="ruby-identifier">tag</span>]
18
+
19
+ <span class="ruby-identifier">aRequest</span>.<span class="ruby-identifier">tag</span> = <span class="ruby-identifier">tag</span>
20
+ <span class="ruby-identifier">output</span> = <span class="ruby-identifier">aRequest</span>.<span class="ruby-identifier">to_9p</span>
21
+ <span class="ruby-ivar">@sendLock</span>.<span class="ruby-identifier">synchronize</span> <span class="ruby-keyword kw">do</span>
22
+ <span class="ruby-ivar">@stream</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">output</span>
23
+ <span class="ruby-keyword kw">end</span>
24
+
25
+ <span class="ruby-comment cmt"># receive the response</span>
26
+ <span class="ruby-identifier">response</span> = <span class="ruby-identifier">bay</span>.<span class="ruby-identifier">shift</span>
27
+ <span class="ruby-ivar">@tagPool</span>.<span class="ruby-identifier">release</span> <span class="ruby-identifier">tag</span>
28
+
29
+ <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">response</span>.<span class="ruby-identifier">is_a?</span> <span class="ruby-constant">Rerror</span>
30
+ <span class="ruby-identifier">raise</span> <span class="ruby-constant">Error</span>, <span class="ruby-node">&quot;#{response.ename.inspect} in response to #{aRequest.inspect}&quot;</span>
31
+ <span class="ruby-keyword kw">else</span>
32
+ <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">response</span>
33
+ <span class="ruby-keyword kw">end</span>
34
+ <span class="ruby-keyword kw">end</span></pre>
35
+ </body>
36
+ </html>