rumai 2.0.0 → 2.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (304) hide show
  1. data/LICENSE +13 -23
  2. data/Rakefile +8 -58
  3. data/bin/rumai +21 -22
  4. data/doc/api/IO.html +53 -0
  5. data/doc/api/Integer.html +102 -0
  6. data/doc/api/Object.html +23 -0
  7. data/doc/api/Rumai.html +1218 -0
  8. data/doc/api/Rumai/Area.html +1088 -0
  9. data/doc/api/Rumai/Chain.html +230 -0
  10. data/doc/api/Rumai/Client.html +1264 -0
  11. data/doc/api/Rumai/ClientContainer.html +227 -0
  12. data/doc/api/Rumai/ExportInstMethods.html +115 -0
  13. data/doc/api/Rumai/IXP.html +23 -0
  14. data/doc/api/Rumai/IXP/Agent.html +1222 -0
  15. data/doc/api/Rumai/IXP/Agent/FidStream.html +602 -0
  16. data/doc/api/Rumai/IXP/Agent/RangedPool.html +263 -0
  17. data/doc/api/Rumai/IXP/Error.html +32 -0
  18. data/doc/api/Rumai/IXP/Fcall.html +398 -0
  19. data/doc/api/Rumai/IXP/Qid.html +99 -0
  20. data/doc/api/Rumai/IXP/Rattach.html +71 -0
  21. data/doc/api/Rumai/IXP/Rauth.html +71 -0
  22. data/doc/api/Rumai/IXP/Rclunk.html +71 -0
  23. data/doc/api/Rumai/IXP/Rcreate.html +71 -0
  24. data/doc/api/Rumai/IXP/Rerror.html +71 -0
  25. data/doc/api/Rumai/IXP/Rflush.html +71 -0
  26. data/doc/api/Rumai/IXP/Ropen.html +71 -0
  27. data/doc/api/Rumai/IXP/Rread.html +71 -0
  28. data/doc/api/Rumai/IXP/Rremove.html +71 -0
  29. data/doc/api/Rumai/IXP/Rstat.html +71 -0
  30. data/doc/api/Rumai/IXP/Rversion.html +71 -0
  31. data/doc/api/Rumai/IXP/Rwalk.html +71 -0
  32. data/doc/api/Rumai/IXP/Rwrite.html +71 -0
  33. data/doc/api/Rumai/IXP/Rwstat.html +71 -0
  34. data/doc/api/Rumai/IXP/Stat.html +188 -0
  35. data/doc/api/Rumai/IXP/Stream.html +112 -0
  36. data/doc/api/Rumai/IXP/Struct.html +348 -0
  37. data/doc/api/Rumai/IXP/Struct/ClassField.html +177 -0
  38. data/doc/api/Rumai/IXP/Struct/Field.html +549 -0
  39. data/doc/api/Rumai/IXP/Struct/Field/CounteeField.html +175 -0
  40. data/doc/api/Rumai/IXP/Struct/Field/CounterField.html +95 -0
  41. data/doc/api/Rumai/IXP/Struct/Integer8Field.html +181 -0
  42. data/doc/api/Rumai/IXP/Struct/StringField.html +128 -0
  43. data/doc/api/Rumai/IXP/Tattach.html +71 -0
  44. data/doc/api/Rumai/IXP/Tauth.html +71 -0
  45. data/doc/api/Rumai/IXP/Tclunk.html +71 -0
  46. data/doc/api/Rumai/IXP/Tcreate.html +71 -0
  47. data/doc/api/Rumai/IXP/Terror.html +156 -0
  48. data/doc/api/Rumai/IXP/Tflush.html +71 -0
  49. data/doc/api/Rumai/IXP/Topen.html +113 -0
  50. data/doc/api/Rumai/IXP/Tread.html +71 -0
  51. data/doc/api/Rumai/IXP/Tremove.html +71 -0
  52. data/doc/api/Rumai/IXP/Tstat.html +71 -0
  53. data/doc/api/Rumai/IXP/Tversion.html +83 -0
  54. data/doc/api/Rumai/IXP/Twalk.html +71 -0
  55. data/doc/api/Rumai/IXP/Twrite.html +71 -0
  56. data/doc/api/Rumai/IXP/Twstat.html +71 -0
  57. data/doc/api/Rumai/Node.html +1139 -0
  58. data/doc/api/Rumai/View.html +1280 -0
  59. data/doc/api/Rumai/WidgetImpl.html +196 -0
  60. data/doc/api/Rumai/WidgetNode.html +184 -0
  61. data/doc/api/String.html +180 -0
  62. data/doc/api/StringIO.html +53 -0
  63. data/doc/api/Time.html +175 -0
  64. data/doc/api/all-methods.html +1436 -0
  65. data/doc/api/all-namespaces.html +140 -0
  66. data/doc/api/app.js +18 -0
  67. data/doc/api/index.html +16 -22
  68. data/doc/api/jquery.js +11 -0
  69. data/doc/api/readme.html +35 -0
  70. data/doc/api/style.css +68 -0
  71. data/doc/api/syntax_highlight.css +21 -0
  72. data/doc/history.erb +17 -0
  73. data/doc/index.erb +13 -0
  74. data/doc/index.xhtml +1235 -0
  75. data/doc/intro.erb +86 -0
  76. data/doc/setup.erb +55 -0
  77. data/doc/theory.erb +3 -0
  78. data/doc/usage.erb +285 -0
  79. data/lib/rumai.rb +10 -7
  80. data/lib/rumai/fs.rb +13 -15
  81. data/lib/rumai/ixp.rb +2 -7
  82. data/lib/rumai/ixp/message.rb +0 -3
  83. data/lib/rumai/ixp/transport.rb +1 -4
  84. data/lib/rumai/wm.rb +6 -6
  85. data/test/rumai/ixp/message.rb +249 -0
  86. metadata +104 -263
  87. data/README +0 -1
  88. data/doc/api/classes/IO.html +0 -120
  89. data/doc/api/classes/Integer.html +0 -142
  90. data/doc/api/classes/Integer.src/M000002.html +0 -18
  91. data/doc/api/classes/Object.html +0 -113
  92. data/doc/api/classes/Rumai.html +0 -530
  93. data/doc/api/classes/Rumai.src/M000007.html +0 -18
  94. data/doc/api/classes/Rumai.src/M000008.html +0 -18
  95. data/doc/api/classes/Rumai.src/M000009.html +0 -18
  96. data/doc/api/classes/Rumai.src/M000010.html +0 -18
  97. data/doc/api/classes/Rumai.src/M000011.html +0 -18
  98. data/doc/api/classes/Rumai.src/M000012.html +0 -18
  99. data/doc/api/classes/Rumai.src/M000013.html +0 -18
  100. data/doc/api/classes/Rumai.src/M000014.html +0 -20
  101. data/doc/api/classes/Rumai.src/M000015.html +0 -18
  102. data/doc/api/classes/Rumai.src/M000016.html +0 -18
  103. data/doc/api/classes/Rumai.src/M000017.html +0 -18
  104. data/doc/api/classes/Rumai.src/M000018.html +0 -18
  105. data/doc/api/classes/Rumai.src/M000019.html +0 -18
  106. data/doc/api/classes/Rumai.src/M000020.html +0 -18
  107. data/doc/api/classes/Rumai.src/M000021.html +0 -18
  108. data/doc/api/classes/Rumai.src/M000022.html +0 -18
  109. data/doc/api/classes/Rumai.src/M000023.html +0 -18
  110. data/doc/api/classes/Rumai.src/M000024.html +0 -18
  111. data/doc/api/classes/Rumai.src/M000025.html +0 -18
  112. data/doc/api/classes/Rumai.src/M000026.html +0 -18
  113. data/doc/api/classes/Rumai/Area.html +0 -461
  114. data/doc/api/classes/Rumai/Area.src/M000079.html +0 -19
  115. data/doc/api/classes/Rumai/Area.src/M000080.html +0 -18
  116. data/doc/api/classes/Rumai/Area.src/M000081.html +0 -18
  117. data/doc/api/classes/Rumai/Area.src/M000082.html +0 -18
  118. data/doc/api/classes/Rumai/Area.src/M000083.html +0 -18
  119. data/doc/api/classes/Rumai/Area.src/M000084.html +0 -18
  120. data/doc/api/classes/Rumai/Area.src/M000085.html +0 -18
  121. data/doc/api/classes/Rumai/Area.src/M000086.html +0 -18
  122. data/doc/api/classes/Rumai/Area.src/M000087.html +0 -18
  123. data/doc/api/classes/Rumai/Area.src/M000088.html +0 -18
  124. data/doc/api/classes/Rumai/Area.src/M000089.html +0 -18
  125. data/doc/api/classes/Rumai/Area.src/M000090.html +0 -22
  126. data/doc/api/classes/Rumai/Area.src/M000092.html +0 -23
  127. data/doc/api/classes/Rumai/Area.src/M000093.html +0 -28
  128. data/doc/api/classes/Rumai/Area.src/M000094.html +0 -18
  129. data/doc/api/classes/Rumai/Area.src/M000095.html +0 -31
  130. data/doc/api/classes/Rumai/Chain.html +0 -179
  131. data/doc/api/classes/Rumai/Chain.src/M000076.html +0 -18
  132. data/doc/api/classes/Rumai/Chain.src/M000077.html +0 -18
  133. data/doc/api/classes/Rumai/Chain.src/M000078.html +0 -18
  134. data/doc/api/classes/Rumai/Client.html +0 -481
  135. data/doc/api/classes/Rumai/Client.src/M000113.html +0 -18
  136. data/doc/api/classes/Rumai/Client.src/M000114.html +0 -18
  137. data/doc/api/classes/Rumai/Client.src/M000115.html +0 -18
  138. data/doc/api/classes/Rumai/Client.src/M000116.html +0 -39
  139. data/doc/api/classes/Rumai/Client.src/M000117.html +0 -19
  140. data/doc/api/classes/Rumai/Client.src/M000118.html +0 -19
  141. data/doc/api/classes/Rumai/Client.src/M000119.html +0 -18
  142. data/doc/api/classes/Rumai/Client.src/M000120.html +0 -18
  143. data/doc/api/classes/Rumai/Client.src/M000121.html +0 -18
  144. data/doc/api/classes/Rumai/Client.src/M000122.html +0 -18
  145. data/doc/api/classes/Rumai/Client.src/M000123.html +0 -19
  146. data/doc/api/classes/Rumai/Client.src/M000124.html +0 -20
  147. data/doc/api/classes/Rumai/Client.src/M000125.html +0 -20
  148. data/doc/api/classes/Rumai/Client.src/M000126.html +0 -22
  149. data/doc/api/classes/Rumai/Client.src/M000127.html +0 -18
  150. data/doc/api/classes/Rumai/Client.src/M000128.html +0 -20
  151. data/doc/api/classes/Rumai/Client.src/M000129.html +0 -18
  152. data/doc/api/classes/Rumai/Client.src/M000130.html +0 -22
  153. data/doc/api/classes/Rumai/ClientContainer.html +0 -180
  154. data/doc/api/classes/Rumai/ClientContainer.src/M000027.html +0 -18
  155. data/doc/api/classes/Rumai/ClientContainer.src/M000028.html +0 -18
  156. data/doc/api/classes/Rumai/ClientContainer.src/M000029.html +0 -18
  157. data/doc/api/classes/Rumai/ExportInstMethods.html +0 -119
  158. data/doc/api/classes/Rumai/IXP.html +0 -149
  159. data/doc/api/classes/Rumai/IXP/Agent.html +0 -447
  160. data/doc/api/classes/Rumai/IXP/Agent.src/M000044.html +0 -53
  161. data/doc/api/classes/Rumai/IXP/Agent.src/M000045.html +0 -36
  162. data/doc/api/classes/Rumai/IXP/Agent.src/M000046.html +0 -39
  163. data/doc/api/classes/Rumai/IXP/Agent.src/M000047.html +0 -20
  164. data/doc/api/classes/Rumai/IXP/Agent.src/M000048.html +0 -22
  165. data/doc/api/classes/Rumai/IXP/Agent.src/M000049.html +0 -20
  166. data/doc/api/classes/Rumai/IXP/Agent.src/M000050.html +0 -33
  167. data/doc/api/classes/Rumai/IXP/Agent.src/M000051.html +0 -19
  168. data/doc/api/classes/Rumai/IXP/Agent.src/M000052.html +0 -18
  169. data/doc/api/classes/Rumai/IXP/Agent.src/M000053.html +0 -21
  170. data/doc/api/classes/Rumai/IXP/Agent.src/M000054.html +0 -20
  171. data/doc/api/classes/Rumai/IXP/Agent.src/M000055.html +0 -20
  172. data/doc/api/classes/Rumai/IXP/Agent.src/M000056.html +0 -22
  173. data/doc/api/classes/Rumai/IXP/Agent.src/M000057.html +0 -23
  174. data/doc/api/classes/Rumai/IXP/Agent.src/M000058.html +0 -19
  175. data/doc/api/classes/Rumai/IXP/Agent/FidStream.html +0 -312
  176. data/doc/api/classes/Rumai/IXP/Agent/FidStream.src/M000060.html +0 -23
  177. data/doc/api/classes/Rumai/IXP/Agent/FidStream.src/M000061.html +0 -19
  178. data/doc/api/classes/Rumai/IXP/Agent/FidStream.src/M000062.html +0 -22
  179. data/doc/api/classes/Rumai/IXP/Agent/FidStream.src/M000063.html +0 -18
  180. data/doc/api/classes/Rumai/IXP/Agent/FidStream.src/M000064.html +0 -45
  181. data/doc/api/classes/Rumai/IXP/Agent/FidStream.src/M000065.html +0 -36
  182. data/doc/api/classes/Rumai/IXP/Agent/MODES.html +0 -130
  183. data/doc/api/classes/Rumai/IXP/Agent/MODES.src/M000059.html +0 -22
  184. data/doc/api/classes/Rumai/IXP/Agent/RangedPool.html +0 -203
  185. data/doc/api/classes/Rumai/IXP/Agent/RangedPool.src/M000067.html +0 -22
  186. data/doc/api/classes/Rumai/IXP/Agent/RangedPool.src/M000068.html +0 -36
  187. data/doc/api/classes/Rumai/IXP/Agent/RangedPool.src/M000069.html +0 -18
  188. data/doc/api/classes/Rumai/IXP/Error.html +0 -117
  189. data/doc/api/classes/Rumai/IXP/Fcall.html +0 -261
  190. data/doc/api/classes/Rumai/IXP/Fcall.src/M000070.html +0 -20
  191. data/doc/api/classes/Rumai/IXP/Fcall.src/M000071.html +0 -25
  192. data/doc/api/classes/Rumai/IXP/Fcall.src/M000072.html +0 -18
  193. data/doc/api/classes/Rumai/IXP/Fcall.src/M000073.html +0 -18
  194. data/doc/api/classes/Rumai/IXP/Qid.html +0 -184
  195. data/doc/api/classes/Rumai/IXP/Rattach.html +0 -119
  196. data/doc/api/classes/Rumai/IXP/Rauth.html +0 -119
  197. data/doc/api/classes/Rumai/IXP/Rclunk.html +0 -119
  198. data/doc/api/classes/Rumai/IXP/Rcreate.html +0 -119
  199. data/doc/api/classes/Rumai/IXP/Rerror.html +0 -119
  200. data/doc/api/classes/Rumai/IXP/Rflush.html +0 -119
  201. data/doc/api/classes/Rumai/IXP/Ropen.html +0 -119
  202. data/doc/api/classes/Rumai/IXP/Rread.html +0 -119
  203. data/doc/api/classes/Rumai/IXP/Rremove.html +0 -119
  204. data/doc/api/classes/Rumai/IXP/Rstat.html +0 -119
  205. data/doc/api/classes/Rumai/IXP/Rversion.html +0 -119
  206. data/doc/api/classes/Rumai/IXP/Rwalk.html +0 -119
  207. data/doc/api/classes/Rumai/IXP/Rwrite.html +0 -119
  208. data/doc/api/classes/Rumai/IXP/Rwstat.html +0 -119
  209. data/doc/api/classes/Rumai/IXP/Stat.html +0 -248
  210. data/doc/api/classes/Rumai/IXP/Stat.src/M000075.html +0 -18
  211. data/doc/api/classes/Rumai/IXP/Stream.html +0 -158
  212. data/doc/api/classes/Rumai/IXP/Stream.src/M000043.html +0 -18
  213. data/doc/api/classes/Rumai/IXP/Struct.html +0 -221
  214. data/doc/api/classes/Rumai/IXP/Struct.src/M000030.html +0 -19
  215. data/doc/api/classes/Rumai/IXP/Struct.src/M000031.html +0 -18
  216. data/doc/api/classes/Rumai/IXP/Struct.src/M000032.html +0 -20
  217. data/doc/api/classes/Rumai/IXP/Struct.src/M000033.html +0 -57
  218. data/doc/api/classes/Rumai/IXP/Struct/Field.html +0 -296
  219. data/doc/api/classes/Rumai/IXP/Struct/Field.src/M000034.html +0 -21
  220. data/doc/api/classes/Rumai/IXP/Struct/Field.src/M000035.html +0 -21
  221. data/doc/api/classes/Rumai/IXP/Struct/Field.src/M000036.html +0 -20
  222. data/doc/api/classes/Rumai/IXP/Struct/Field.src/M000037.html +0 -29
  223. data/doc/api/classes/Rumai/IXP/Struct/Field.src/M000038.html +0 -18
  224. data/doc/api/classes/Rumai/IXP/Struct/Field.src/M000039.html +0 -18
  225. data/doc/api/classes/Rumai/IXP/Struct/Field/CounteeField.html +0 -152
  226. data/doc/api/classes/Rumai/IXP/Struct/Field/CounteeField.src/M000041.html +0 -24
  227. data/doc/api/classes/Rumai/IXP/Struct/Field/CounteeField.src/M000042.html +0 -25
  228. data/doc/api/classes/Rumai/IXP/Struct/Field/CounterField.html +0 -137
  229. data/doc/api/classes/Rumai/IXP/Struct/Field/CounterField.src/M000040.html +0 -18
  230. data/doc/api/classes/Rumai/IXP/Tattach.html +0 -120
  231. data/doc/api/classes/Rumai/IXP/Tauth.html +0 -119
  232. data/doc/api/classes/Rumai/IXP/Tclunk.html +0 -119
  233. data/doc/api/classes/Rumai/IXP/Tcreate.html +0 -120
  234. data/doc/api/classes/Rumai/IXP/Terror.html +0 -145
  235. data/doc/api/classes/Rumai/IXP/Terror.src/M000074.html +0 -18
  236. data/doc/api/classes/Rumai/IXP/Tflush.html +0 -119
  237. data/doc/api/classes/Rumai/IXP/Topen.html +0 -193
  238. data/doc/api/classes/Rumai/IXP/Tread.html +0 -119
  239. data/doc/api/classes/Rumai/IXP/Tremove.html +0 -119
  240. data/doc/api/classes/Rumai/IXP/Tstat.html +0 -119
  241. data/doc/api/classes/Rumai/IXP/Tversion.html +0 -137
  242. data/doc/api/classes/Rumai/IXP/Twalk.html +0 -120
  243. data/doc/api/classes/Rumai/IXP/Twrite.html +0 -120
  244. data/doc/api/classes/Rumai/IXP/Twstat.html +0 -119
  245. data/doc/api/classes/Rumai/Node.html +0 -461
  246. data/doc/api/classes/Rumai/Node.src/M000096.html +0 -18
  247. data/doc/api/classes/Rumai/Node.src/M000097.html +0 -18
  248. data/doc/api/classes/Rumai/Node.src/M000098.html +0 -22
  249. data/doc/api/classes/Rumai/Node.src/M000099.html +0 -18
  250. data/doc/api/classes/Rumai/Node.src/M000100.html +0 -18
  251. data/doc/api/classes/Rumai/Node.src/M000101.html +0 -18
  252. data/doc/api/classes/Rumai/Node.src/M000102.html +0 -18
  253. data/doc/api/classes/Rumai/Node.src/M000103.html +0 -22
  254. data/doc/api/classes/Rumai/Node.src/M000104.html +0 -18
  255. data/doc/api/classes/Rumai/Node.src/M000105.html +0 -18
  256. data/doc/api/classes/Rumai/Node.src/M000106.html +0 -18
  257. data/doc/api/classes/Rumai/Node.src/M000107.html +0 -18
  258. data/doc/api/classes/Rumai/Node.src/M000108.html +0 -18
  259. data/doc/api/classes/Rumai/Node.src/M000109.html +0 -18
  260. data/doc/api/classes/Rumai/Node.src/M000110.html +0 -18
  261. data/doc/api/classes/Rumai/Node.src/M000111.html +0 -20
  262. data/doc/api/classes/Rumai/Node.src/M000112.html +0 -27
  263. data/doc/api/classes/Rumai/View.html +0 -436
  264. data/doc/api/classes/Rumai/View.src/M000131.html +0 -18
  265. data/doc/api/classes/Rumai/View.src/M000132.html +0 -18
  266. data/doc/api/classes/Rumai/View.src/M000133.html +0 -18
  267. data/doc/api/classes/Rumai/View.src/M000134.html +0 -18
  268. data/doc/api/classes/Rumai/View.src/M000135.html +0 -18
  269. data/doc/api/classes/Rumai/View.src/M000136.html +0 -18
  270. data/doc/api/classes/Rumai/View.src/M000137.html +0 -18
  271. data/doc/api/classes/Rumai/View.src/M000138.html +0 -28
  272. data/doc/api/classes/Rumai/View.src/M000139.html +0 -18
  273. data/doc/api/classes/Rumai/View.src/M000140.html +0 -18
  274. data/doc/api/classes/Rumai/View.src/M000141.html +0 -18
  275. data/doc/api/classes/Rumai/View.src/M000142.html +0 -18
  276. data/doc/api/classes/Rumai/View.src/M000143.html +0 -29
  277. data/doc/api/classes/Rumai/View.src/M000144.html +0 -20
  278. data/doc/api/classes/Rumai/View.src/M000145.html +0 -33
  279. data/doc/api/classes/Rumai/View.src/M000146.html +0 -50
  280. data/doc/api/classes/String.html +0 -169
  281. data/doc/api/classes/String.src/M000005.html +0 -18
  282. data/doc/api/classes/String.src/M000006.html +0 -18
  283. data/doc/api/classes/StringIO.html +0 -120
  284. data/doc/api/classes/Time.html +0 -163
  285. data/doc/api/classes/Time.src/M000003.html +0 -18
  286. data/doc/api/classes/Time.src/M000004.html +0 -18
  287. data/doc/api/created.rid +0 -1
  288. data/doc/api/files/lib/rumai/fs_rb.html +0 -115
  289. data/doc/api/files/lib/rumai/ixp/message_rb.html +0 -120
  290. data/doc/api/files/lib/rumai/ixp/message_spec_rb.html +0 -175
  291. data/doc/api/files/lib/rumai/ixp/message_spec_rb.src/M000001.html +0 -37
  292. data/doc/api/files/lib/rumai/ixp/transport_rb.html +0 -115
  293. data/doc/api/files/lib/rumai/ixp_rb.html +0 -116
  294. data/doc/api/files/lib/rumai/nfo_rb.html +0 -107
  295. data/doc/api/files/lib/rumai/wm_rb.html +0 -115
  296. data/doc/api/files/lib/rumai_rb.html +0 -115
  297. data/doc/api/fr_class_index.html +0 -82
  298. data/doc/api/fr_file_index.html +0 -34
  299. data/doc/api/fr_method_index.html +0 -172
  300. data/doc/api/rdoc-style.css +0 -208
  301. data/doc/guide.erb +0 -390
  302. data/doc/guide.html +0 -2043
  303. data/lib/rumai/ixp/message_spec.rb +0 -247
  304. data/lib/rumai/nfo.rb +0 -24
@@ -0,0 +1,602 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
2
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3
+ <html>
4
+ <head>
5
+ <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
6
+ <link rel="stylesheet" href="../../../style.css" type="text/css" charset="utf-8" />
7
+ <link rel="stylesheet" href="../../../syntax_highlight.css" type="text/css" charset="utf-8" />
8
+
9
+ <script src="../../../jquery.js" type="text/javascript" charset="utf-8"></script>
10
+ <script src="../../../app.js" type="text/javascript" charset="utf-8"></script>
11
+ <title>Class: Rumai::IXP::Agent::FidStream</title>
12
+ </head>
13
+ <body>
14
+ <div id="content">
15
+ <div class="section class Rumai_IXP_Agent_FidStream">
16
+ <h1 class="title">Class: Rumai::IXP::Agent::FidStream</h1>
17
+ <div class="section inheritance">
18
+ <ul>
19
+ <li><a href="../../../Object.html" title="Object">Object</a></li><ul><li>Rumai::IXP::Agent::FidStream</li>
20
+ </ul></ul>
21
+ </div><div class="section docstring">
22
+ <p>
23
+ Encapsulates I/O access over a file handle (fid). NOTE that this class is
24
+ NOT thread-safe.
25
+ </p>
26
+
27
+ </div><div class="section attributes">
28
+ <h1>Attributes</h1>
29
+
30
+
31
+ <div class="instance">
32
+ <h2>Instance Attributes</h2>
33
+ <table>
34
+
35
+ <tr>
36
+ <th class="name">eof</td>
37
+ <td class="readwrite">
38
+ [<span id='eof-instance_method'>R</span>W]
39
+ </td>
40
+ <td class="visibility">
41
+ public
42
+ </td>
43
+ <td class="docstring">
44
+ <p>
45
+ Returns the value of attribute <tt>eof</tt>.
46
+ </p>
47
+
48
+
49
+ </td>
50
+ </tr>
51
+
52
+ <tr>
53
+ <th class="name">fid</td>
54
+ <td class="readwrite">
55
+ [<span id='fid-instance_method'>R</span>W]
56
+ </td>
57
+ <td class="visibility">
58
+ public
59
+ </td>
60
+ <td class="docstring">
61
+ <p>
62
+ Returns the value of attribute <tt>fid</tt>.
63
+ </p>
64
+
65
+
66
+ </td>
67
+ </tr>
68
+
69
+ <tr>
70
+ <th class="name">pos</td>
71
+ <td class="readwrite">
72
+ [<span id='pos-instance_method'>R</span><span id='pos%3D-instance_method'>W</span>]
73
+ </td>
74
+ <td class="visibility">
75
+ public
76
+ </td>
77
+ <td class="docstring">
78
+ <p>
79
+ Sets the attribute <tt>pos</tt>.
80
+ </p>
81
+
82
+
83
+ </td>
84
+ </tr>
85
+
86
+ <tr>
87
+ <th class="name">stat</td>
88
+ <td class="readwrite">
89
+ [<span id='stat-instance_method'>R</span>W]
90
+ </td>
91
+ <td class="visibility">
92
+ public
93
+ </td>
94
+ <td class="docstring">
95
+ <p>
96
+ Returns the value of attribute <tt>stat</tt>.
97
+ </p>
98
+
99
+
100
+ </td>
101
+ </tr>
102
+
103
+ </table>
104
+ </div>
105
+
106
+ </div><div class="section constants">
107
+
108
+ </div><div class="section constructor">
109
+ <h1>Constructor Summary</h1>
110
+ <div id="initialize-instance_method" class="section method">
111
+ <div class="details_title">
112
+ <div class='section methodsignature'>
113
+ <tt class='def'>
114
+ <span class='visibility'>public</span>
115
+ <span class='return_types'></span>
116
+ <span class='name'>initialize</span><span class='args'>(aAgent, aPathFid, aMessageSize)</span>
117
+ <span class='block'></span>
118
+ </tt>
119
+ </div>
120
+
121
+ </div><div class="section source">
122
+ <span>[<a class="source_link" href="#">View source</a>]</span>
123
+ <div class="source_code">
124
+ <table>
125
+ <tr>
126
+ <td>
127
+ <pre class="lines">
128
+
129
+
130
+ 180
131
+ 181
132
+ 182
133
+ 183
134
+ 184
135
+ 185
136
+ 186
137
+ 187</pre>
138
+ </td>
139
+ <td>
140
+ <pre class="code"><span class="info file"># File 'lib/rumai/ixp/transport.rb', line 180</span>
141
+
142
+ <span class='def def kw'>def</span> <span class='initialize identifier id'>initialize</span> <span class='aAgent identifier id'>aAgent</span><span class='comma token'>,</span> <span class='aPathFid identifier id'>aPathFid</span><span class='comma token'>,</span> <span class='aMessageSize identifier id'>aMessageSize</span>
143
+ <span class='@agent ivar id'>@agent</span> <span class='assign token'>=</span> <span class='aAgent identifier id'>aAgent</span>
144
+ <span class='@fid ivar id'>@fid</span> <span class='assign token'>=</span> <span class='aPathFid identifier id'>aPathFid</span>
145
+ <span class='@msize ivar id'>@msize</span> <span class='assign token'>=</span> <span class='aMessageSize identifier id'>aMessageSize</span>
146
+ <span class='@stat ivar id'>@stat</span> <span class='assign token'>=</span> <span class='@agent ivar id'>@agent</span><span class='dot token'>.</span><span class='stat_fid identifier id'>stat_fid</span> <span class='@fid ivar id'>@fid</span>
147
+ <span class='@closed ivar id'>@closed</span> <span class='assign token'>=</span> <span class='false false kw'>false</span>
148
+ <span class='rewind identifier id'>rewind</span>
149
+ <span class='end end kw'>end</span>
150
+ </pre>
151
+ </td>
152
+ </tr>
153
+ </table>
154
+ </div>
155
+ </div>
156
+ </div>
157
+ </div> <div class="section visibilitygroup public">
158
+ <h1>Public Visibility</h1>
159
+ <div class="section methodsummary instance public">
160
+ <h1>Public Instance Method Summary</h1>
161
+ <table class="summary">
162
+
163
+ <tr>
164
+ <th class="signature">
165
+ <span class='name'><a href="#close-instance_method" title="#close">#close</a></span><span class='args'></span>
166
+ <span class='block'></span>
167
+
168
+ </th>
169
+ <td class="docstring">
170
+ <p>
171
+ Closes this stream.
172
+ </p>
173
+
174
+
175
+ </td>
176
+ </tr>
177
+
178
+ <tr>
179
+ <th class="signature">
180
+ <span class='name'><a href="#closed%3F-instance_method" title="#closed?">#closed?</a></span><span class='args'></span>
181
+ <span class='block'></span>
182
+
183
+ </th>
184
+ <td class="docstring">
185
+ <p>
186
+ Returns true if this stream is closed.
187
+ </p>
188
+
189
+
190
+ </td>
191
+ </tr>
192
+
193
+ <tr>
194
+ <th class="signature">
195
+ <span class='name'><a href="#read-instance_method" title="#read">#read</a></span><span class='args'>(aPartial = false)</span>
196
+ <span class='block'></span>
197
+
198
+ </th>
199
+ <td class="docstring">
200
+ <p>
201
+ Reads some data from this stream at the current position.
202
+ </p>
203
+
204
+
205
+ </td>
206
+ </tr>
207
+
208
+ <tr>
209
+ <th class="signature">
210
+ <span class='name'><a href="#rewind-instance_method" title="#rewind">#rewind</a></span><span class='args'></span>
211
+ <span class='block'></span>
212
+
213
+ </th>
214
+ <td class="docstring">
215
+ <p>
216
+ Rewinds the stream to the beginning.
217
+ </p>
218
+
219
+
220
+ </td>
221
+ </tr>
222
+
223
+ <tr>
224
+ <th class="signature">
225
+ <span class='name'><a href="#write-instance_method" title="#write">#write</a></span><span class='args'>(aContent)</span>
226
+ <span class='block'></span>
227
+
228
+ <span class='alias'>#&lt;&lt;</span>
229
+
230
+ </th>
231
+ <td class="docstring">
232
+ <p>
233
+ Writes the given content at the current position in this stream.
234
+ </p>
235
+
236
+
237
+ </td>
238
+ </tr>
239
+
240
+ </table>
241
+ </div>
242
+ <div class="section methoddetails instance public">
243
+ <h1>Public Instance Method Details</h1>
244
+
245
+ <div class="method">
246
+ <div class="method_header">
247
+ <h3>close</h3>
248
+ </div><div id="close-instance_method" class="section method">
249
+ <div class="details_title">
250
+ <div class='section methodsignature'>
251
+ <tt class='def'>
252
+ <span class='visibility'>public</span>
253
+ <span class='return_types'></span>
254
+ <span class='name'>close</span><span class='args'></span>
255
+ <span class='block'></span>
256
+ </tt>
257
+ </div>
258
+
259
+ </div><div class="section docstring">
260
+ <p>
261
+ Closes this stream.
262
+ </p>
263
+
264
+ </div><div class="section source">
265
+ <span>[<a class="source_link" href="#">View source</a>]</span>
266
+ <div class="source_code">
267
+ <table>
268
+ <tr>
269
+ <td>
270
+ <pre class="lines">
271
+
272
+
273
+ 196
274
+ 197
275
+ 198
276
+ 199
277
+ 200
278
+ 201
279
+ 202</pre>
280
+ </td>
281
+ <td>
282
+ <pre class="code"><span class="info file"># File 'lib/rumai/ixp/transport.rb', line 196</span>
283
+
284
+ <span class='def def kw'>def</span> <span class='close identifier id'>close</span>
285
+ <span class='unless unless kw'>unless</span> <span class='@closed ivar id'>@closed</span>
286
+ <span class='@agent ivar id'>@agent</span><span class='dot token'>.</span><span class='clunk identifier id'>clunk</span> <span class='@fid ivar id'>@fid</span>
287
+ <span class='@closed ivar id'>@closed</span> <span class='assign token'>=</span> <span class='true true kw'>true</span>
288
+ <span class='@eof ivar id'>@eof</span> <span class='assign token'>=</span> <span class='true true kw'>true</span>
289
+ <span class='end end kw'>end</span>
290
+ <span class='end end kw'>end</span>
291
+ </pre>
292
+ </td>
293
+ </tr>
294
+ </table>
295
+ </div>
296
+ </div>
297
+ </div>
298
+ </div>
299
+
300
+ <div class="method">
301
+ <div class="method_header">
302
+ <h3>closed?</h3>
303
+ </div><div id="closed%3F-instance_method" class="section method">
304
+ <div class="details_title">
305
+ <div class='section methodsignature'>
306
+ <tt class='def'>
307
+ <span class='visibility'>public</span>
308
+ <span class='return_types'></span>
309
+ <span class='name'>closed?</span><span class='args'></span>
310
+ <span class='block'></span>
311
+ </tt>
312
+ </div>
313
+
314
+ </div><div class="section docstring">
315
+ <p>
316
+ Returns true if this stream is closed.
317
+ </p>
318
+
319
+ </div><div class="section source">
320
+ <span>[<a class="source_link" href="#">View source</a>]</span>
321
+ <div class="source_code">
322
+ <table>
323
+ <tr>
324
+ <td>
325
+ <pre class="lines">
326
+
327
+
328
+ 205
329
+ 206
330
+ 207</pre>
331
+ </td>
332
+ <td>
333
+ <pre class="code"><span class="info file"># File 'lib/rumai/ixp/transport.rb', line 205</span>
334
+
335
+ <span class='def def kw'>def</span> <span class='closed? fid id'>closed?</span>
336
+ <span class='@closed ivar id'>@closed</span>
337
+ <span class='end end kw'>end</span>
338
+ </pre>
339
+ </td>
340
+ </tr>
341
+ </table>
342
+ </div>
343
+ </div>
344
+ </div>
345
+ </div>
346
+
347
+ <div class="method">
348
+ <div class="method_header">
349
+ <h3>read</h3>
350
+ </div><div id="read-instance_method" class="section method">
351
+ <div class="details_title">
352
+ <div class='section methodsignature'>
353
+ <tt class='def'>
354
+ <span class='visibility'>public</span>
355
+ <span class='return_types'></span>
356
+ <span class='name'>read</span><span class='args'>(aPartial = false)</span>
357
+ <span class='block'></span>
358
+ </tt>
359
+ </div>
360
+
361
+ </div><div class="section docstring">
362
+ <p>
363
+ Reads some data from this stream at the current position.
364
+ </p>
365
+ <table>
366
+ <tr><td valign="top">aPartial:</td><td>When false, the entire content of this stream is read and returned. When
367
+ true, the maximum amount of content that can fit inside a single 9P2000
368
+ message is read and returned.
369
+
370
+ </td></tr>
371
+ </table>
372
+ <p>
373
+ If this stream corresponds to a directory, then an Array of Stat (one for
374
+ each file in the directory) will be returned.
375
+ </p>
376
+
377
+ </div><div class="section source">
378
+ <span>[<a class="source_link" href="#">View source</a>]</span>
379
+ <div class="source_code">
380
+ <table>
381
+ <tr>
382
+ <td>
383
+ <pre class="lines">
384
+
385
+
386
+ 219
387
+ 220
388
+ 221
389
+ 222
390
+ 223
391
+ 224
392
+ 225
393
+ 226
394
+ 227
395
+ 228
396
+ 229
397
+ 230
398
+ 231
399
+ 232
400
+ 233
401
+ 234
402
+ 235
403
+ 236
404
+ 237
405
+ 238
406
+ 239
407
+ 240
408
+ 241
409
+ 242
410
+ 243
411
+ 244
412
+ 245
413
+ 246
414
+ 247
415
+ 248</pre>
416
+ </td>
417
+ <td>
418
+ <pre class="code"><span class="info file"># File 'lib/rumai/ixp/transport.rb', line 219</span>
419
+
420
+ <span class='def def kw'>def</span> <span class='read identifier id'>read</span> <span class='aPartial identifier id'>aPartial</span> <span class='assign token'>=</span> <span class='false false kw'>false</span>
421
+ <span class='raise identifier id'>raise</span> <span class='string val'>'cannot read from a closed stream'</span> <span class='if if_mod kw'>if</span> <span class='@closed ivar id'>@closed</span>
422
+
423
+ <span class='content identifier id'>content</span> <span class='assign token'>=</span> <span class='string val'>''</span>
424
+ <span class='begin begin kw'>begin</span>
425
+ <span class='req identifier id'>req</span> <span class='assign token'>=</span> <span class='Tread constant id'>Tread</span><span class='dot token'>.</span><span class='new identifier id'>new</span><span class='lparen token'>(</span>
426
+ <span class='symbol val'>:fid</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='@fid ivar id'>@fid</span><span class='comma token'>,</span>
427
+ <span class='symbol val'>:offset</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='@pos ivar id'>@pos</span><span class='comma token'>,</span>
428
+ <span class='symbol val'>:count</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='@msize ivar id'>@msize</span>
429
+ <span class='rparen token'>)</span>
430
+ <span class='rsp identifier id'>rsp</span> <span class='assign token'>=</span> <span class='@agent ivar id'>@agent</span><span class='dot token'>.</span><span class='talk identifier id'>talk</span><span class='lparen token'>(</span><span class='req identifier id'>req</span><span class='rparen token'>)</span>
431
+
432
+ <span class='content identifier id'>content</span> <span class='lshft op'>&lt;&lt;</span> <span class='rsp identifier id'>rsp</span><span class='dot token'>.</span><span class='data identifier id'>data</span>
433
+ <span class='count identifier id'>count</span> <span class='assign token'>=</span> <span class='rsp identifier id'>rsp</span><span class='dot token'>.</span><span class='count identifier id'>count</span>
434
+ <span class='@pos ivar id'>@pos</span> <span class='opasgn op'>+=</span> <span class='count identifier id'>count</span>
435
+ <span class='end end kw'>end</span> <span class='until until_mod kw'>until</span> <span class='@eof ivar id'>@eof</span> <span class='assign token'>=</span> <span class='count identifier id'>count</span><span class='dot token'>.</span><span class='zero? fid id'>zero?</span> <span class='or or kw'>or</span> <span class='aPartial identifier id'>aPartial</span>
436
+
437
+ <span class='comment val'># the content of a directory is a sequence</span>
438
+ <span class='comment val'># of Stat for all files in that directory</span>
439
+ <span class='if if kw'>if</span> <span class='@stat ivar id'>@stat</span><span class='dot token'>.</span><span class='directory? fid id'>directory?</span>
440
+ <span class='buffer identifier id'>buffer</span> <span class='assign token'>=</span> <span class='StringIO constant id'>StringIO</span><span class='dot token'>.</span><span class='new identifier id'>new</span><span class='lparen token'>(</span><span class='content identifier id'>content</span><span class='rparen token'>)</span>
441
+ <span class='content identifier id'>content</span> <span class='assign token'>=</span> <span class='lbrack token'>[</span><span class='rbrack token'>]</span>
442
+
443
+ <span class='until until kw'>until</span> <span class='buffer identifier id'>buffer</span><span class='dot token'>.</span><span class='eof? fid id'>eof?</span>
444
+ <span class='content identifier id'>content</span> <span class='lshft op'>&lt;&lt;</span> <span class='Stat constant id'>Stat</span><span class='dot token'>.</span><span class='from_9p identifier id'>from_9p</span><span class='lparen token'>(</span><span class='buffer identifier id'>buffer</span><span class='rparen token'>)</span>
445
+ <span class='end end kw'>end</span>
446
+ <span class='end end kw'>end</span>
447
+
448
+ <span class='content identifier id'>content</span>
449
+ <span class='end end kw'>end</span>
450
+ </pre>
451
+ </td>
452
+ </tr>
453
+ </table>
454
+ </div>
455
+ </div>
456
+ </div>
457
+ </div>
458
+
459
+ <div class="method">
460
+ <div class="method_header">
461
+ <h3>rewind</h3>
462
+ </div><div id="rewind-instance_method" class="section method">
463
+ <div class="details_title">
464
+ <div class='section methodsignature'>
465
+ <tt class='def'>
466
+ <span class='visibility'>public</span>
467
+ <span class='return_types'></span>
468
+ <span class='name'>rewind</span><span class='args'></span>
469
+ <span class='block'></span>
470
+ </tt>
471
+ </div>
472
+
473
+ </div><div class="section docstring">
474
+ <p>
475
+ Rewinds the stream to the beginning.
476
+ </p>
477
+
478
+ </div><div class="section source">
479
+ <span>[<a class="source_link" href="#">View source</a>]</span>
480
+ <div class="source_code">
481
+ <table>
482
+ <tr>
483
+ <td>
484
+ <pre class="lines">
485
+
486
+
487
+ 190
488
+ 191
489
+ 192
490
+ 193</pre>
491
+ </td>
492
+ <td>
493
+ <pre class="code"><span class="info file"># File 'lib/rumai/ixp/transport.rb', line 190</span>
494
+
495
+ <span class='def def kw'>def</span> <span class='rewind identifier id'>rewind</span>
496
+ <span class='@pos ivar id'>@pos</span> <span class='assign token'>=</span> <span class='integer val'>0</span>
497
+ <span class='@eof ivar id'>@eof</span> <span class='assign token'>=</span> <span class='false false kw'>false</span>
498
+ <span class='end end kw'>end</span>
499
+ </pre>
500
+ </td>
501
+ </tr>
502
+ </table>
503
+ </div>
504
+ </div>
505
+ </div>
506
+ </div>
507
+
508
+ <div class="method">
509
+ <div class="method_header">
510
+ <h3>write</h3>
511
+ </div><div id="write-instance_method" class="section method">
512
+ <div class="details_title">
513
+ <div class='section methodsignature'>
514
+ <tt class='def'>
515
+ <span class='visibility'>public</span>
516
+ <span class='return_types'></span>
517
+ <span class='name'>write</span><span class='args'>(aContent)</span>
518
+ <span class='block'></span>
519
+ </tt>
520
+ </div>
521
+ <p class="aliases">
522
+ <span class="aka">Also known as:</span>
523
+
524
+ <tt id="%3C%3C-instance_method">&lt;&lt;</tt>
525
+
526
+ </p>
527
+ </div><div class="section docstring">
528
+ <p>
529
+ Writes the given content at the current position in this stream.
530
+ </p>
531
+
532
+ </div><div class="section source">
533
+ <span>[<a class="source_link" href="#">View source</a>]</span>
534
+ <div class="source_code">
535
+ <table>
536
+ <tr>
537
+ <td>
538
+ <pre class="lines">
539
+
540
+
541
+ 251
542
+ 252
543
+ 253
544
+ 254
545
+ 255
546
+ 256
547
+ 257
548
+ 258
549
+ 259
550
+ 260
551
+ 261
552
+ 262
553
+ 263
554
+ 264
555
+ 265
556
+ 266
557
+ 267
558
+ 268
559
+ 269
560
+ 270
561
+ 271</pre>
562
+ </td>
563
+ <td>
564
+ <pre class="code"><span class="info file"># File 'lib/rumai/ixp/transport.rb', line 251</span>
565
+
566
+ <span class='def def kw'>def</span> <span class='write identifier id'>write</span> <span class='aContent identifier id'>aContent</span>
567
+ <span class='raise identifier id'>raise</span> <span class='string val'>'closed streams cannot be written to'</span> <span class='if if_mod kw'>if</span> <span class='@closed ivar id'>@closed</span>
568
+ <span class='raise identifier id'>raise</span> <span class='string val'>'directories cannot be written to'</span> <span class='if if_mod kw'>if</span> <span class='@stat ivar id'>@stat</span><span class='dot token'>.</span><span class='directory? fid id'>directory?</span>
569
+
570
+ <span class='data identifier id'>data</span> <span class='assign token'>=</span> <span class='aContent identifier id'>aContent</span><span class='dot token'>.</span><span class='to_s identifier id'>to_s</span>
571
+ <span class='limit identifier id'>limit</span> <span class='assign token'>=</span> <span class='data identifier id'>data</span><span class='dot token'>.</span><span class='length identifier id'>length</span> <span class='plus op'>+</span> <span class='@pos ivar id'>@pos</span>
572
+
573
+ <span class='while while kw'>while</span> <span class='@pos ivar id'>@pos</span> <span class='lt op'>&lt;</span> <span class='limit identifier id'>limit</span>
574
+ <span class='chunk identifier id'>chunk</span> <span class='assign token'>=</span> <span class='data identifier id'>data</span><span class='lbrack token'>[</span><span class='@pos ivar id'>@pos</span><span class='comma token'>,</span> <span class='@msize ivar id'>@msize</span><span class='rbrack token'>]</span>
575
+
576
+ <span class='req identifier id'>req</span> <span class='assign token'>=</span> <span class='Twrite constant id'>Twrite</span><span class='dot token'>.</span><span class='new identifier id'>new</span><span class='lparen token'>(</span>
577
+ <span class='symbol val'>:fid</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='@fid ivar id'>@fid</span><span class='comma token'>,</span>
578
+ <span class='symbol val'>:offset</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='@pos ivar id'>@pos</span><span class='comma token'>,</span>
579
+ <span class='symbol val'>:count</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='chunk identifier id'>chunk</span><span class='dot token'>.</span><span class='length identifier id'>length</span><span class='comma token'>,</span>
580
+ <span class='symbol val'>:data</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='chunk identifier id'>chunk</span>
581
+ <span class='rparen token'>)</span>
582
+ <span class='rsp identifier id'>rsp</span> <span class='assign token'>=</span> <span class='@agent ivar id'>@agent</span><span class='dot token'>.</span><span class='talk identifier id'>talk</span><span class='lparen token'>(</span><span class='req identifier id'>req</span><span class='rparen token'>)</span>
583
+
584
+ <span class='@pos ivar id'>@pos</span> <span class='opasgn op'>+=</span> <span class='rsp identifier id'>rsp</span><span class='dot token'>.</span><span class='count identifier id'>count</span>
585
+ <span class='end end kw'>end</span>
586
+ <span class='end end kw'>end</span>
587
+ </pre>
588
+ </td>
589
+ </tr>
590
+ </table>
591
+ </div>
592
+ </div>
593
+ </div>
594
+ </div>
595
+
596
+ </div>
597
+ </div>
598
+
599
+ </div>
600
+ </div>
601
+ </body>
602
+ </html>