rumai 1.0.0 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +1 -1
- data/doc/api/classes/Integer.src/M000002.html +1 -1
- data/doc/api/classes/Rumai.html +1 -1
- data/doc/api/classes/Rumai.src/M000015.html +1 -1
- data/doc/api/classes/Rumai.src/M000016.html +1 -1
- data/doc/api/classes/Rumai.src/M000017.html +1 -1
- data/doc/api/classes/Rumai.src/M000018.html +1 -1
- data/doc/api/classes/Rumai.src/M000019.html +1 -1
- data/doc/api/classes/Rumai.src/M000020.html +1 -1
- data/doc/api/classes/Rumai.src/M000021.html +1 -1
- data/doc/api/classes/Rumai.src/M000022.html +1 -1
- data/doc/api/classes/Rumai.src/M000023.html +1 -1
- data/doc/api/classes/Rumai.src/M000024.html +1 -1
- data/doc/api/classes/Rumai.src/M000025.html +1 -1
- data/doc/api/classes/Rumai.src/M000026.html +1 -1
- data/doc/api/classes/Rumai/Area.html +87 -87
- data/doc/api/classes/Rumai/Area.src/{M000091.html → M000079.html} +5 -8
- data/doc/api/classes/Rumai/Area.src/M000080.html +4 -5
- data/doc/api/classes/Rumai/Area.src/M000081.html +3 -3
- data/doc/api/classes/Rumai/Area.src/M000082.html +5 -5
- data/doc/api/classes/Rumai/Area.src/M000083.html +3 -3
- data/doc/api/classes/Rumai/Area.src/M000084.html +3 -3
- data/doc/api/classes/Rumai/Area.src/M000085.html +4 -4
- data/doc/api/classes/Rumai/Area.src/M000086.html +4 -4
- data/doc/api/classes/Rumai/Area.src/M000087.html +4 -4
- data/doc/api/classes/Rumai/Area.src/M000088.html +4 -4
- data/doc/api/classes/Rumai/Area.src/M000089.html +4 -4
- data/doc/api/classes/Rumai/Area.src/M000090.html +7 -3
- data/doc/api/classes/Rumai/Area.src/M000092.html +23 -0
- data/doc/api/classes/Rumai/Area.src/M000093.html +8 -3
- data/doc/api/classes/Rumai/Area.src/M000094.html +4 -14
- data/doc/api/classes/Rumai/Area.src/M000095.html +17 -4
- data/doc/api/classes/Rumai/Chain.html +18 -18
- data/doc/api/classes/Rumai/Chain.src/{M000079.html → M000076.html} +4 -4
- data/doc/api/classes/Rumai/Chain.src/M000077.html +4 -4
- data/doc/api/classes/Rumai/Chain.src/M000078.html +4 -4
- data/doc/api/classes/Rumai/Client.html +48 -30
- data/doc/api/classes/Rumai/Client.src/M000113.html +18 -0
- data/doc/api/classes/Rumai/Client.src/M000114.html +4 -4
- data/doc/api/classes/Rumai/Client.src/M000115.html +5 -5
- data/doc/api/classes/Rumai/Client.src/M000116.html +26 -5
- data/doc/api/classes/Rumai/Client.src/M000117.html +5 -25
- data/doc/api/classes/Rumai/Client.src/M000118.html +4 -13
- data/doc/api/classes/Rumai/Client.src/M000119.html +4 -5
- data/doc/api/classes/Rumai/Client.src/M000120.html +1 -1
- data/doc/api/classes/Rumai/Client.src/M000121.html +1 -1
- data/doc/api/classes/Rumai/Client.src/M000122.html +1 -1
- data/doc/api/classes/Rumai/Client.src/M000123.html +1 -1
- data/doc/api/classes/Rumai/Client.src/M000124.html +1 -1
- data/doc/api/classes/Rumai/Client.src/M000125.html +1 -1
- data/doc/api/classes/Rumai/Client.src/M000126.html +1 -1
- data/doc/api/classes/Rumai/Client.src/M000127.html +1 -1
- data/doc/api/classes/Rumai/Client.src/M000128.html +1 -1
- data/doc/api/classes/Rumai/Client.src/M000129.html +1 -1
- data/doc/api/classes/Rumai/Client.src/M000130.html +1 -1
- data/doc/api/classes/Rumai/ClientContainer.src/M000027.html +1 -1
- data/doc/api/classes/Rumai/ClientContainer.src/M000028.html +1 -1
- data/doc/api/classes/Rumai/ClientContainer.src/M000029.html +1 -1
- data/doc/api/classes/Rumai/IXP/Agent.html +77 -77
- data/doc/api/classes/Rumai/IXP/Agent.src/M000044.html +53 -0
- data/doc/api/classes/Rumai/IXP/Agent.src/M000045.html +36 -0
- data/doc/api/classes/Rumai/IXP/Agent.src/M000046.html +20 -28
- data/doc/api/classes/Rumai/IXP/Agent.src/M000047.html +5 -29
- data/doc/api/classes/Rumai/IXP/Agent.src/M000048.html +7 -24
- data/doc/api/classes/Rumai/IXP/Agent.src/M000049.html +5 -5
- data/doc/api/classes/Rumai/IXP/Agent.src/M000050.html +18 -7
- data/doc/api/classes/Rumai/IXP/Agent.src/M000051.html +5 -6
- data/doc/api/classes/Rumai/IXP/Agent.src/M000052.html +4 -19
- data/doc/api/classes/Rumai/IXP/Agent.src/M000053.html +7 -5
- data/doc/api/classes/Rumai/IXP/Agent.src/M000054.html +6 -4
- data/doc/api/classes/Rumai/IXP/Agent.src/M000055.html +6 -7
- data/doc/api/classes/Rumai/IXP/Agent.src/M000056.html +8 -6
- data/doc/api/classes/Rumai/IXP/Agent.src/M000057.html +9 -6
- data/doc/api/classes/Rumai/IXP/Agent.src/M000058.html +5 -8
- data/doc/api/classes/Rumai/IXP/Agent/FidStream.html +93 -35
- data/doc/api/classes/Rumai/IXP/Agent/FidStream.src/M000060.html +23 -0
- data/doc/api/classes/Rumai/IXP/{Struct/Field.src/M000040.html → Agent/FidStream.src/M000061.html} +5 -4
- data/doc/api/classes/Rumai/IXP/Agent/FidStream.src/M000062.html +8 -8
- data/doc/api/classes/Rumai/IXP/Agent/FidStream.src/M000063.html +4 -7
- data/doc/api/classes/Rumai/IXP/Agent/FidStream.src/M000064.html +12 -9
- data/doc/api/classes/Rumai/IXP/Agent/FidStream.src/M000065.html +21 -11
- data/doc/api/classes/Rumai/IXP/Agent/MODES.html +5 -5
- data/doc/api/classes/Rumai/IXP/Agent/MODES.src/{M000061.html → M000059.html} +0 -0
- data/doc/api/classes/Rumai/IXP/Agent/RangedPool.html +16 -16
- data/doc/api/classes/Rumai/IXP/Agent/RangedPool.src/M000067.html +22 -0
- data/doc/api/classes/Rumai/IXP/Agent/RangedPool.src/M000068.html +21 -8
- data/doc/api/classes/Rumai/IXP/Agent/RangedPool.src/M000069.html +4 -18
- data/doc/api/classes/Rumai/IXP/Fcall.html +21 -21
- data/doc/api/classes/Rumai/IXP/Fcall.src/M000070.html +20 -0
- data/doc/api/classes/Rumai/IXP/Fcall.src/M000071.html +11 -6
- data/doc/api/classes/Rumai/IXP/Fcall.src/M000072.html +4 -11
- data/doc/api/classes/Rumai/IXP/Fcall.src/M000073.html +3 -3
- data/doc/api/classes/Rumai/IXP/Stat.html +5 -5
- data/doc/api/classes/Rumai/IXP/Stat.src/{M000076.html → M000075.html} +1 -1
- data/doc/api/classes/Rumai/IXP/Stream.html +5 -5
- data/doc/api/classes/Rumai/IXP/Stream.src/{M000045.html → M000043.html} +1 -2
- data/doc/api/classes/Rumai/IXP/Struct.html +11 -47
- data/doc/api/classes/Rumai/IXP/Struct.src/M000030.html +1 -1
- data/doc/api/classes/Rumai/IXP/Struct.src/M000031.html +4 -4
- data/doc/api/classes/Rumai/IXP/Struct.src/M000032.html +5 -3
- data/doc/api/classes/Rumai/IXP/Struct.src/M000033.html +43 -4
- data/doc/api/classes/Rumai/IXP/Struct/Field.html +34 -42
- data/doc/api/classes/Rumai/IXP/Struct/Field.src/M000034.html +21 -0
- data/doc/api/classes/Rumai/IXP/Struct/Field.src/{M000041.html → M000035.html} +7 -4
- data/doc/api/classes/Rumai/IXP/Struct/Field.src/M000036.html +6 -7
- data/doc/api/classes/Rumai/IXP/Struct/Field.src/M000037.html +13 -5
- data/doc/api/classes/Rumai/IXP/Struct/Field.src/M000038.html +4 -6
- data/doc/api/classes/Rumai/IXP/Struct/Field.src/M000039.html +4 -15
- data/doc/api/classes/Rumai/IXP/Struct/Field/CounteeField.html +12 -12
- data/doc/api/classes/Rumai/IXP/Struct/Field/CounteeField.src/{M000043.html → M000041.html} +3 -3
- data/doc/api/classes/Rumai/IXP/Struct/Field/CounteeField.src/{M000044.html → M000042.html} +4 -4
- data/doc/api/classes/Rumai/IXP/Struct/Field/CounterField.html +6 -6
- data/doc/api/classes/Rumai/IXP/Struct/Field/CounterField.src/{M000042.html → M000040.html} +3 -3
- data/doc/api/classes/Rumai/IXP/Terror.html +5 -5
- data/doc/api/classes/Rumai/IXP/Terror.src/{M000075.html → M000074.html} +1 -1
- data/doc/api/classes/Rumai/Node.html +88 -88
- data/doc/api/classes/Rumai/Node.src/M000096.html +18 -0
- data/doc/api/classes/Rumai/Node.src/M000097.html +4 -4
- data/doc/api/classes/Rumai/Node.src/M000098.html +8 -4
- data/doc/api/classes/Rumai/Node.src/M000099.html +4 -8
- data/doc/api/classes/Rumai/Node.src/M000100.html +4 -4
- data/doc/api/classes/Rumai/Node.src/M000101.html +4 -4
- data/doc/api/classes/Rumai/Node.src/M000102.html +4 -4
- data/doc/api/classes/Rumai/Node.src/M000103.html +8 -4
- data/doc/api/classes/Rumai/Node.src/M000104.html +4 -8
- data/doc/api/classes/Rumai/Node.src/M000105.html +4 -4
- data/doc/api/classes/Rumai/Node.src/M000106.html +4 -4
- data/doc/api/classes/Rumai/Node.src/M000107.html +4 -4
- data/doc/api/classes/Rumai/Node.src/M000108.html +4 -4
- data/doc/api/classes/Rumai/Node.src/M000109.html +4 -4
- data/doc/api/classes/Rumai/Node.src/M000110.html +5 -5
- data/doc/api/classes/Rumai/Node.src/M000111.html +7 -5
- data/doc/api/classes/Rumai/Node.src/M000112.html +12 -5
- data/doc/api/classes/Rumai/View.html +2 -2
- data/doc/api/classes/Rumai/View.src/M000131.html +1 -1
- data/doc/api/classes/Rumai/View.src/M000132.html +1 -1
- data/doc/api/classes/Rumai/View.src/M000133.html +1 -1
- data/doc/api/classes/Rumai/View.src/M000134.html +1 -1
- data/doc/api/classes/Rumai/View.src/M000135.html +1 -1
- data/doc/api/classes/Rumai/View.src/M000136.html +1 -1
- data/doc/api/classes/Rumai/View.src/M000137.html +1 -1
- data/doc/api/classes/Rumai/View.src/M000138.html +1 -1
- data/doc/api/classes/Rumai/View.src/M000139.html +1 -1
- data/doc/api/classes/Rumai/View.src/M000140.html +1 -1
- data/doc/api/classes/Rumai/View.src/M000141.html +3 -3
- data/doc/api/classes/Rumai/View.src/M000142.html +1 -1
- data/doc/api/classes/Rumai/View.src/M000143.html +1 -1
- data/doc/api/classes/Rumai/View.src/M000144.html +1 -1
- data/doc/api/classes/Rumai/View.src/M000145.html +1 -1
- data/doc/api/classes/Rumai/View.src/M000146.html +1 -1
- data/doc/api/classes/String.src/M000005.html +1 -1
- data/doc/api/classes/String.src/M000006.html +2 -3
- data/doc/api/classes/Time.src/M000003.html +1 -1
- data/doc/api/classes/Time.src/M000004.html +1 -1
- data/doc/api/created.rid +1 -1
- data/doc/api/files/lib/rumai/fs_rb.html +1 -1
- data/doc/api/files/lib/rumai/ixp/message_rb.html +1 -1
- data/doc/api/files/lib/rumai/ixp/transport_rb.html +1 -1
- data/doc/api/files/lib/rumai/nfo_rb.html +1 -1
- data/doc/api/files/lib/rumai/wm_rb.html +1 -1
- data/doc/api/fr_method_index.html +91 -91
- data/doc/guide.erb +2 -2
- data/doc/guide.html +49 -41
- data/lib/rumai/fs.rb +3 -3
- data/lib/rumai/ixp/message.rb +19 -36
- data/lib/rumai/ixp/transport.rb +98 -85
- data/lib/rumai/nfo.rb +2 -2
- data/lib/rumai/wm.rb +15 -25
- metadata +24 -25
- data/doc/api/classes/Rumai/Area.src/M000096.html +0 -31
- data/doc/api/classes/Rumai/IXP/Agent.src/M000059.html +0 -23
- data/doc/api/classes/Rumai/IXP/Agent.src/M000060.html +0 -19
- data/doc/api/classes/Rumai/IXP/Agent/FidStream.src/M000066.html +0 -36
- data/doc/api/classes/Rumai/IXP/Agent/RangedPool.src/M000070.html +0 -20
- data/doc/api/classes/Rumai/IXP/Fcall.src/M000074.html +0 -18
- data/doc/api/classes/Rumai/IXP/Struct.src/M000034.html +0 -20
- data/doc/api/classes/Rumai/IXP/Struct.src/M000035.html +0 -57
- data/doc/api/classes/Rumai/Node.src/M000113.html +0 -27
- data/doc/index.html +0 -2035
@@ -0,0 +1,23 @@
|
|
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::FidStream)</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 183</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span> <span class="ruby-identifier">aAgent</span>, <span class="ruby-identifier">aPathFid</span>, <span class="ruby-identifier">aMessageSize</span>
|
15
|
+
<span class="ruby-ivar">@agent</span> = <span class="ruby-identifier">aAgent</span>
|
16
|
+
<span class="ruby-ivar">@fid</span> = <span class="ruby-identifier">aPathFid</span>
|
17
|
+
<span class="ruby-ivar">@msize</span> = <span class="ruby-identifier">aMessageSize</span>
|
18
|
+
<span class="ruby-ivar">@stat</span> = <span class="ruby-ivar">@agent</span>.<span class="ruby-identifier">stat_fid</span> <span class="ruby-ivar">@fid</span>
|
19
|
+
<span class="ruby-ivar">@closed</span> = <span class="ruby-keyword kw">false</span>
|
20
|
+
<span class="ruby-identifier">rewind</span>
|
21
|
+
<span class="ruby-keyword kw">end</span></pre>
|
22
|
+
</body>
|
23
|
+
</html>
|
data/doc/api/classes/Rumai/IXP/{Struct/Field.src/M000040.html → Agent/FidStream.src/M000061.html}
RENAMED
@@ -5,14 +5,15 @@
|
|
5
5
|
|
6
6
|
<html>
|
7
7
|
<head>
|
8
|
-
<title>
|
8
|
+
<title>rewind (Rumai::IXP::Agent::FidStream)</title>
|
9
9
|
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
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/ixp/
|
14
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">
|
15
|
-
<span class="ruby-
|
13
|
+
<pre><span class="ruby-comment cmt"># File lib/rumai/ixp/transport.rb, line 193</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">rewind</span>
|
15
|
+
<span class="ruby-ivar">@pos</span> = <span class="ruby-value">0</span>
|
16
|
+
<span class="ruby-ivar">@eof</span> = <span class="ruby-keyword kw">false</span>
|
16
17
|
<span class="ruby-keyword kw">end</span></pre>
|
17
18
|
</body>
|
18
19
|
</html>
|
@@ -5,18 +5,18 @@
|
|
5
5
|
|
6
6
|
<html>
|
7
7
|
<head>
|
8
|
-
<title>
|
8
|
+
<title>close (Rumai::IXP::Agent::FidStream)</title>
|
9
9
|
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
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/ixp/transport.rb, line
|
14
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">
|
15
|
-
<span class="ruby-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
<span class="ruby-
|
13
|
+
<pre><span class="ruby-comment cmt"># File lib/rumai/ixp/transport.rb, line 199</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">close</span>
|
15
|
+
<span class="ruby-keyword kw">unless</span> <span class="ruby-ivar">@closed</span>
|
16
|
+
<span class="ruby-ivar">@agent</span>.<span class="ruby-identifier">clunk</span> <span class="ruby-ivar">@fid</span>
|
17
|
+
<span class="ruby-ivar">@closed</span> = <span class="ruby-keyword kw">true</span>
|
18
|
+
<span class="ruby-ivar">@eof</span> = <span class="ruby-keyword kw">true</span>
|
19
|
+
<span class="ruby-keyword kw">end</span>
|
20
20
|
<span class="ruby-keyword kw">end</span></pre>
|
21
21
|
</body>
|
22
22
|
</html>
|
@@ -5,17 +5,14 @@
|
|
5
5
|
|
6
6
|
<html>
|
7
7
|
<head>
|
8
|
-
<title>
|
8
|
+
<title>closed? (Rumai::IXP::Agent::FidStream)</title>
|
9
9
|
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
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/ixp/transport.rb, line
|
14
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">
|
15
|
-
<span class="ruby-
|
16
|
-
<span class="ruby-ivar">@agent</span>.<span class="ruby-identifier">clunk</span> <span class="ruby-ivar">@fid</span>
|
17
|
-
<span class="ruby-ivar">@closed</span> = <span class="ruby-keyword kw">true</span>
|
18
|
-
<span class="ruby-keyword kw">end</span>
|
13
|
+
<pre><span class="ruby-comment cmt"># File lib/rumai/ixp/transport.rb, line 208</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">closed?</span>
|
15
|
+
<span class="ruby-ivar">@closed</span>
|
19
16
|
<span class="ruby-keyword kw">end</span></pre>
|
20
17
|
</body>
|
21
18
|
</html>
|
@@ -10,20 +10,23 @@
|
|
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/ixp/transport.rb, line
|
14
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">read</span>
|
13
|
+
<pre><span class="ruby-comment cmt"># File lib/rumai/ixp/transport.rb, line 222</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">read</span> <span class="ruby-identifier">aPartial</span> = <span class="ruby-keyword kw">false</span>
|
15
15
|
<span class="ruby-identifier">raise</span> <span class="ruby-value str">'cannot read from a closed stream'</span> <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@closed</span>
|
16
16
|
|
17
17
|
<span class="ruby-identifier">content</span> = <span class="ruby-value str">''</span>
|
18
|
-
<span class="ruby-identifier">offset</span> = <span class="ruby-value">0</span>
|
19
|
-
|
20
18
|
<span class="ruby-keyword kw">begin</span>
|
21
|
-
<span class="ruby-identifier">
|
22
|
-
|
19
|
+
<span class="ruby-identifier">req</span> = <span class="ruby-constant">Tread</span>.<span class="ruby-identifier">new</span>(
|
20
|
+
<span class="ruby-identifier">:fid</span> =<span class="ruby-operator">></span> <span class="ruby-ivar">@fid</span>,
|
21
|
+
<span class="ruby-identifier">:offset</span> =<span class="ruby-operator">></span> <span class="ruby-ivar">@pos</span>,
|
22
|
+
<span class="ruby-identifier">:count</span> =<span class="ruby-operator">></span> <span class="ruby-ivar">@msize</span>
|
23
|
+
)
|
24
|
+
<span class="ruby-identifier">rsp</span> = <span class="ruby-ivar">@agent</span>.<span class="ruby-identifier">talk</span>(<span class="ruby-identifier">req</span>)
|
23
25
|
|
24
|
-
<span class="ruby-identifier">
|
25
|
-
<span class="ruby-identifier">
|
26
|
-
|
26
|
+
<span class="ruby-identifier">content</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">rsp</span>.<span class="ruby-identifier">data</span>
|
27
|
+
<span class="ruby-identifier">count</span> = <span class="ruby-identifier">rsp</span>.<span class="ruby-identifier">count</span>
|
28
|
+
<span class="ruby-ivar">@pos</span> <span class="ruby-operator">+=</span> <span class="ruby-identifier">count</span>
|
29
|
+
<span class="ruby-keyword kw">end</span> <span class="ruby-keyword kw">until</span> <span class="ruby-ivar">@eof</span> = <span class="ruby-identifier">count</span>.<span class="ruby-identifier">zero?</span> <span class="ruby-keyword kw">or</span> <span class="ruby-identifier">aPartial</span>
|
27
30
|
|
28
31
|
<span class="ruby-comment cmt"># the content of a directory is a sequence</span>
|
29
32
|
<span class="ruby-comment cmt"># of Stat for all files in that directory</span>
|
@@ -5,22 +5,32 @@
|
|
5
5
|
|
6
6
|
<html>
|
7
7
|
<head>
|
8
|
-
<title>
|
8
|
+
<title>write (Rumai::IXP::Agent::FidStream)</title>
|
9
9
|
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
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/ixp/transport.rb, line
|
14
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">
|
15
|
-
<span class="ruby-identifier">raise</span> <span class="ruby-value str">'
|
13
|
+
<pre><span class="ruby-comment cmt"># File lib/rumai/ixp/transport.rb, line 254</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">write</span> <span class="ruby-identifier">aContent</span>
|
15
|
+
<span class="ruby-identifier">raise</span> <span class="ruby-value str">'closed streams cannot be written to'</span> <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@closed</span>
|
16
|
+
<span class="ruby-identifier">raise</span> <span class="ruby-value str">'directories cannot be written to'</span> <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@stat</span>.<span class="ruby-identifier">directory?</span>
|
16
17
|
|
17
|
-
<span class="ruby-identifier">
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
18
|
+
<span class="ruby-identifier">data</span> = <span class="ruby-identifier">aContent</span>.<span class="ruby-identifier">to_s</span>
|
19
|
+
<span class="ruby-identifier">limit</span> = <span class="ruby-identifier">data</span>.<span class="ruby-identifier">length</span> <span class="ruby-operator">+</span> <span class="ruby-ivar">@pos</span>
|
20
|
+
|
21
|
+
<span class="ruby-keyword kw">while</span> <span class="ruby-ivar">@pos</span> <span class="ruby-operator"><</span> <span class="ruby-identifier">limit</span>
|
22
|
+
<span class="ruby-identifier">chunk</span> = <span class="ruby-identifier">data</span>[<span class="ruby-ivar">@pos</span>, <span class="ruby-ivar">@msize</span>]
|
23
|
+
|
24
|
+
<span class="ruby-identifier">req</span> = <span class="ruby-constant">Twrite</span>.<span class="ruby-identifier">new</span>(
|
25
|
+
<span class="ruby-identifier">:fid</span> =<span class="ruby-operator">></span> <span class="ruby-ivar">@fid</span>,
|
26
|
+
<span class="ruby-identifier">:offset</span> =<span class="ruby-operator">></span> <span class="ruby-ivar">@pos</span>,
|
27
|
+
<span class="ruby-identifier">:count</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">chunk</span>.<span class="ruby-identifier">length</span>,
|
28
|
+
<span class="ruby-identifier">:data</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">chunk</span>
|
29
|
+
)
|
30
|
+
<span class="ruby-identifier">rsp</span> = <span class="ruby-ivar">@agent</span>.<span class="ruby-identifier">talk</span>(<span class="ruby-identifier">req</span>)
|
31
|
+
|
32
|
+
<span class="ruby-ivar">@pos</span> <span class="ruby-operator">+=</span> <span class="ruby-identifier">rsp</span>.<span class="ruby-identifier">count</span>
|
33
|
+
<span class="ruby-keyword kw">end</span>
|
24
34
|
<span class="ruby-keyword kw">end</span></pre>
|
25
35
|
</body>
|
26
36
|
</html>
|
@@ -76,7 +76,7 @@
|
|
76
76
|
<h3 class="section-bar">Methods</h3>
|
77
77
|
|
78
78
|
<div class="name-list">
|
79
|
-
<a href="#
|
79
|
+
<a href="#M000059">parse</a>
|
80
80
|
</div>
|
81
81
|
</div>
|
82
82
|
|
@@ -98,12 +98,12 @@
|
|
98
98
|
<div id="methods">
|
99
99
|
<h3 class="section-bar">Public Class methods</h3>
|
100
100
|
|
101
|
-
<div id="method-
|
102
|
-
<a name="
|
101
|
+
<div id="method-M000059" class="method-detail">
|
102
|
+
<a name="M000059"></a>
|
103
103
|
|
104
104
|
<div class="method-heading">
|
105
|
-
<a href="MODES.src/
|
106
|
-
onclick="popupCode('MODES.src/
|
105
|
+
<a href="MODES.src/M000059.html" target="Code" class="method-signature"
|
106
|
+
onclick="popupCode('MODES.src/M000059.html');return false;">
|
107
107
|
<span class="method-name">parse</span><span class="method-args">(aMode)</span>
|
108
108
|
</a>
|
109
109
|
</div>
|
File without changes
|
@@ -94,9 +94,9 @@ A finite, thread-safe pool of range members.
|
|
94
94
|
<h3 class="section-bar">Methods</h3>
|
95
95
|
|
96
96
|
<div class="name-list">
|
97
|
-
<a href="#
|
98
|
-
<a href="#
|
99
|
-
<a href="#
|
97
|
+
<a href="#M000067">new</a>
|
98
|
+
<a href="#M000068">obtain</a>
|
99
|
+
<a href="#M000069">release</a>
|
100
100
|
</div>
|
101
101
|
</div>
|
102
102
|
|
@@ -119,7 +119,7 @@ A finite, thread-safe pool of range members.
|
|
119
119
|
<td class="context-item-value">10</td>
|
120
120
|
<td width="3em"> </td>
|
121
121
|
<td class="context-item-desc">
|
122
|
-
how many <a href="RangedPool.html#
|
122
|
+
how many <a href="RangedPool.html#M000067">new</a> members should be added
|
123
123
|
to the pool when the pool is empty?
|
124
124
|
|
125
125
|
</td>
|
@@ -137,12 +137,12 @@ to the pool when the pool is empty?
|
|
137
137
|
<div id="methods">
|
138
138
|
<h3 class="section-bar">Public Class methods</h3>
|
139
139
|
|
140
|
-
<div id="method-
|
141
|
-
<a name="
|
140
|
+
<div id="method-M000067" class="method-detail">
|
141
|
+
<a name="M000067"></a>
|
142
142
|
|
143
143
|
<div class="method-heading">
|
144
|
-
<a href="RangedPool.src/
|
145
|
-
onclick="popupCode('RangedPool.src/
|
144
|
+
<a href="RangedPool.src/M000067.html" target="Code" class="method-signature"
|
145
|
+
onclick="popupCode('RangedPool.src/M000067.html');return false;">
|
146
146
|
<span class="method-name">new</span><span class="method-args">(aRange)</span>
|
147
147
|
</a>
|
148
148
|
</div>
|
@@ -153,12 +153,12 @@ to the pool when the pool is empty?
|
|
153
153
|
|
154
154
|
<h3 class="section-bar">Public Instance methods</h3>
|
155
155
|
|
156
|
-
<div id="method-
|
157
|
-
<a name="
|
156
|
+
<div id="method-M000068" class="method-detail">
|
157
|
+
<a name="M000068"></a>
|
158
158
|
|
159
159
|
<div class="method-heading">
|
160
|
-
<a href="RangedPool.src/
|
161
|
-
onclick="popupCode('RangedPool.src/
|
160
|
+
<a href="RangedPool.src/M000068.html" target="Code" class="method-signature"
|
161
|
+
onclick="popupCode('RangedPool.src/M000068.html');return false;">
|
162
162
|
<span class="method-name">obtain</span><span class="method-args">()</span>
|
163
163
|
</a>
|
164
164
|
</div>
|
@@ -170,12 +170,12 @@ Returns an unoccupied range member from the pool.
|
|
170
170
|
</div>
|
171
171
|
</div>
|
172
172
|
|
173
|
-
<div id="method-
|
174
|
-
<a name="
|
173
|
+
<div id="method-M000069" class="method-detail">
|
174
|
+
<a name="M000069"></a>
|
175
175
|
|
176
176
|
<div class="method-heading">
|
177
|
-
<a href="RangedPool.src/
|
178
|
-
onclick="popupCode('RangedPool.src/
|
177
|
+
<a href="RangedPool.src/M000069.html" target="Code" class="method-signature"
|
178
|
+
onclick="popupCode('RangedPool.src/M000069.html');return false;">
|
179
179
|
<span class="method-name">release</span><span class="method-args">(aMember)</span>
|
180
180
|
</a>
|
181
181
|
</div>
|
@@ -0,0 +1,22 @@
|
|
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::RangedPool)</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 61</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span> <span class="ruby-identifier">aRange</span>
|
15
|
+
<span class="ruby-ivar">@pos</span> = <span class="ruby-identifier">aRange</span>.<span class="ruby-identifier">first</span>
|
16
|
+
<span class="ruby-ivar">@lim</span> = <span class="ruby-identifier">aRange</span>.<span class="ruby-identifier">last</span>
|
17
|
+
<span class="ruby-ivar">@lim</span> = <span class="ruby-ivar">@lim</span>.<span class="ruby-identifier">succ</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">aRange</span>.<span class="ruby-identifier">exclude_end?</span>
|
18
|
+
|
19
|
+
<span class="ruby-ivar">@pool</span> = <span class="ruby-constant">Queue</span>.<span class="ruby-identifier">new</span>
|
20
|
+
<span class="ruby-keyword kw">end</span></pre>
|
21
|
+
</body>
|
22
|
+
</html>
|
@@ -5,19 +5,32 @@
|
|
5
5
|
|
6
6
|
<html>
|
7
7
|
<head>
|
8
|
-
<title>
|
8
|
+
<title>obtain (Rumai::IXP::Agent::RangedPool)</title>
|
9
9
|
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
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/ixp/transport.rb, line
|
14
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">
|
15
|
-
<span class="ruby-
|
16
|
-
|
17
|
-
<span class="ruby-ivar">@lim</span> = <span class="ruby-ivar">@lim</span>.<span class="ruby-identifier">succ</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">aRange</span>.<span class="ruby-identifier">exclude_end?</span>
|
13
|
+
<pre><span class="ruby-comment cmt"># File lib/rumai/ixp/transport.rb, line 70</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">obtain</span>
|
15
|
+
<span class="ruby-keyword kw">begin</span>
|
16
|
+
<span class="ruby-ivar">@pool</span>.<span class="ruby-identifier">deq</span> <span class="ruby-keyword kw">true</span>
|
18
17
|
|
19
|
-
<span class="ruby-
|
20
|
-
|
18
|
+
<span class="ruby-keyword kw">rescue</span> <span class="ruby-constant">ThreadError</span>
|
19
|
+
<span class="ruby-comment cmt"># pool is empty, so fill it</span>
|
20
|
+
<span class="ruby-constant">FILL_RATE</span>.<span class="ruby-identifier">times</span> <span class="ruby-keyword kw">do</span>
|
21
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@pos</span> <span class="ruby-operator">!=</span> <span class="ruby-ivar">@lim</span>
|
22
|
+
<span class="ruby-ivar">@pool</span> <span class="ruby-operator"><<</span> <span class="ruby-ivar">@pos</span>
|
23
|
+
<span class="ruby-ivar">@pos</span> = <span class="ruby-ivar">@pos</span>.<span class="ruby-identifier">succ</span>
|
24
|
+
<span class="ruby-keyword kw">else</span>
|
25
|
+
<span class="ruby-comment cmt"># range is exhausted, so give other threads</span>
|
26
|
+
<span class="ruby-comment cmt"># a chance to fill the pool before retrying</span>
|
27
|
+
<span class="ruby-constant">Thread</span>.<span class="ruby-identifier">pass</span>
|
28
|
+
<span class="ruby-keyword kw">break</span>
|
29
|
+
<span class="ruby-keyword kw">end</span>
|
30
|
+
<span class="ruby-keyword kw">end</span>
|
31
|
+
|
32
|
+
<span class="ruby-keyword kw">retry</span>
|
33
|
+
<span class="ruby-keyword kw">end</span>
|
21
34
|
<span class="ruby-keyword kw">end</span></pre>
|
22
35
|
</body>
|
23
36
|
</html>
|
@@ -5,28 +5,14 @@
|
|
5
5
|
|
6
6
|
<html>
|
7
7
|
<head>
|
8
|
-
<title>
|
8
|
+
<title>release (Rumai::IXP::Agent::RangedPool)</title>
|
9
9
|
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
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/ixp/transport.rb, line
|
14
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">
|
15
|
-
<span class="ruby-
|
16
|
-
<span class="ruby-comment cmt"># the pool is empty, so fill it</span>
|
17
|
-
<span class="ruby-ivar">@lock</span>.<span class="ruby-identifier">synchronize</span> <span class="ruby-keyword kw">do</span>
|
18
|
-
<span class="ruby-constant">FILL_RATE</span>.<span class="ruby-identifier">times</span> <span class="ruby-keyword kw">do</span>
|
19
|
-
<span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@pos</span> <span class="ruby-operator">!=</span> <span class="ruby-ivar">@lim</span>
|
20
|
-
<span class="ruby-ivar">@pool</span>.<span class="ruby-identifier">push</span> <span class="ruby-ivar">@pos</span>
|
21
|
-
<span class="ruby-ivar">@pos</span> = <span class="ruby-ivar">@pos</span>.<span class="ruby-identifier">succ</span>
|
22
|
-
<span class="ruby-keyword kw">else</span>
|
23
|
-
<span class="ruby-keyword kw">break</span>
|
24
|
-
<span class="ruby-keyword kw">end</span>
|
25
|
-
<span class="ruby-keyword kw">end</span>
|
26
|
-
<span class="ruby-keyword kw">end</span> <span class="ruby-keyword kw">or</span> <span class="ruby-constant">Thread</span>.<span class="ruby-identifier">pass</span> <span class="ruby-comment cmt"># range is exhausted, so wait for other threads to fill the pool</span>
|
27
|
-
<span class="ruby-keyword kw">end</span>
|
28
|
-
|
29
|
-
<span class="ruby-identifier">member</span>
|
13
|
+
<pre><span class="ruby-comment cmt"># File lib/rumai/ixp/transport.rb, line 94</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">release</span> <span class="ruby-identifier">aMember</span>
|
15
|
+
<span class="ruby-ivar">@pool</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">aMember</span>
|
30
16
|
<span class="ruby-keyword kw">end</span></pre>
|
31
17
|
</body>
|
32
18
|
</html>
|
@@ -100,10 +100,10 @@ href="http://cm.bell-labs.com/magic/man2html/2/fcall">cm.bell-labs.com/magic/man
|
|
100
100
|
<h3 class="section-bar">Methods</h3>
|
101
101
|
|
102
102
|
<div class="name-list">
|
103
|
-
<a href="#
|
104
|
-
<a href="#
|
103
|
+
<a href="#M000071">from_9p</a>
|
104
|
+
<a href="#M000070">to_9p</a>
|
105
|
+
<a href="#M000072">type</a>
|
105
106
|
<a href="#M000073">type</a>
|
106
|
-
<a href="#M000074">type</a>
|
107
107
|
</div>
|
108
108
|
</div>
|
109
109
|
|
@@ -173,12 +173,12 @@ href="http://cm.bell-labs.com/magic/man2html/2/fcall">cm.bell-labs.com/magic/man
|
|
173
173
|
<div id="methods">
|
174
174
|
<h3 class="section-bar">Public Class methods</h3>
|
175
175
|
|
176
|
-
<div id="method-
|
177
|
-
<a name="
|
176
|
+
<div id="method-M000071" class="method-detail">
|
177
|
+
<a name="M000071"></a>
|
178
178
|
|
179
179
|
<div class="method-heading">
|
180
|
-
<a href="Fcall.src/
|
181
|
-
onclick="popupCode('Fcall.src/
|
180
|
+
<a href="Fcall.src/M000071.html" target="Code" class="method-signature"
|
181
|
+
onclick="popupCode('Fcall.src/M000071.html');return false;">
|
182
182
|
<span class="method-name">from_9p</span><span class="method-args">(aStream)</span>
|
183
183
|
</a>
|
184
184
|
</div>
|
@@ -191,12 +191,12 @@ returns the instance.
|
|
191
191
|
</div>
|
192
192
|
</div>
|
193
193
|
|
194
|
-
<div id="method-
|
195
|
-
<a name="
|
194
|
+
<div id="method-M000072" class="method-detail">
|
195
|
+
<a name="M000072"></a>
|
196
196
|
|
197
197
|
<div class="method-heading">
|
198
|
-
<a href="Fcall.src/
|
199
|
-
onclick="popupCode('Fcall.src/
|
198
|
+
<a href="Fcall.src/M000072.html" target="Code" class="method-signature"
|
199
|
+
onclick="popupCode('Fcall.src/M000072.html');return false;">
|
200
200
|
<span class="method-name">type</span><span class="method-args">()</span>
|
201
201
|
</a>
|
202
202
|
</div>
|
@@ -204,19 +204,19 @@ returns the instance.
|
|
204
204
|
<div class="method-description">
|
205
205
|
<p>
|
206
206
|
Returns the value of the ‘<a
|
207
|
-
href="Fcall.html#
|
207
|
+
href="Fcall.html#M000072">type</a>’ field for this fcall.
|
208
208
|
</p>
|
209
209
|
</div>
|
210
210
|
</div>
|
211
211
|
|
212
212
|
<h3 class="section-bar">Public Instance methods</h3>
|
213
213
|
|
214
|
-
<div id="method-
|
215
|
-
<a name="
|
214
|
+
<div id="method-M000070" class="method-detail">
|
215
|
+
<a name="M000070"></a>
|
216
216
|
|
217
217
|
<div class="method-heading">
|
218
|
-
<a href="Fcall.src/
|
219
|
-
onclick="popupCode('Fcall.src/
|
218
|
+
<a href="Fcall.src/M000070.html" target="Code" class="method-signature"
|
219
|
+
onclick="popupCode('Fcall.src/M000070.html');return false;">
|
220
220
|
<span class="method-name">to_9p</span><span class="method-args">()</span>
|
221
221
|
</a>
|
222
222
|
</div>
|
@@ -228,12 +228,12 @@ Transforms this object into a string of 9P2000 bytes.
|
|
228
228
|
</div>
|
229
229
|
</div>
|
230
230
|
|
231
|
-
<div id="method-
|
232
|
-
<a name="
|
231
|
+
<div id="method-M000073" class="method-detail">
|
232
|
+
<a name="M000073"></a>
|
233
233
|
|
234
234
|
<div class="method-heading">
|
235
|
-
<a href="Fcall.src/
|
236
|
-
onclick="popupCode('Fcall.src/
|
235
|
+
<a href="Fcall.src/M000073.html" target="Code" class="method-signature"
|
236
|
+
onclick="popupCode('Fcall.src/M000073.html');return false;">
|
237
237
|
<span class="method-name">type</span><span class="method-args">()</span>
|
238
238
|
</a>
|
239
239
|
</div>
|
@@ -241,7 +241,7 @@ Transforms this object into a string of 9P2000 bytes.
|
|
241
241
|
<div class="method-description">
|
242
242
|
<p>
|
243
243
|
Returns the value of the ‘<a
|
244
|
-
href="Fcall.html#
|
244
|
+
href="Fcall.html#M000072">type</a>’ field for this fcall.
|
245
245
|
</p>
|
246
246
|
</div>
|
247
247
|
</div>
|