rumai 3.2.0 → 3.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/CREDITS +4 -3
- data/HISTORY +327 -0
- data/INSTALL +31 -0
- data/README +92 -0
- data/USAGE +297 -0
- data/bin/rumai +9 -22
- data/doc/api/IO.html +119 -0
- data/doc/api/Integer.html +171 -0
- data/doc/api/Rumai.html +1270 -0
- data/doc/api/Rumai/Area.html +1485 -0
- data/doc/api/Rumai/Chain.html +301 -0
- data/doc/api/Rumai/Client.html +2451 -0
- data/doc/api/Rumai/ClientContainer.html +301 -0
- data/doc/api/Rumai/ExportInstanceMethods.html +103 -0
- data/doc/api/Rumai/IXP.html +94 -0
- data/doc/api/Rumai/IXP/Agent.html +1625 -0
- data/doc/api/Rumai/IXP/Agent/FidStream.html +959 -0
- data/doc/api/Rumai/IXP/Agent/RangedPool.html +381 -0
- data/doc/api/Rumai/IXP/Error.html +110 -0
- data/doc/api/Rumai/IXP/Fcall.html +503 -0
- data/doc/api/Rumai/IXP/Qid.html +207 -0
- data/doc/api/Rumai/IXP/Rattach.html +148 -0
- data/doc/api/Rumai/IXP/Rauth.html +148 -0
- data/doc/api/Rumai/IXP/Rclunk.html +148 -0
- data/doc/api/Rumai/IXP/Rcreate.html +148 -0
- data/doc/api/Rumai/IXP/Rerror.html +148 -0
- data/doc/api/Rumai/IXP/Rflush.html +148 -0
- data/doc/api/Rumai/IXP/Ropen.html +148 -0
- data/doc/api/Rumai/IXP/Rread.html +148 -0
- data/doc/api/Rumai/IXP/Rremove.html +148 -0
- data/doc/api/Rumai/IXP/Rstat.html +148 -0
- data/doc/api/Rumai/IXP/Rversion.html +148 -0
- data/doc/api/Rumai/IXP/Rwalk.html +148 -0
- data/doc/api/Rumai/IXP/Rwrite.html +148 -0
- data/doc/api/Rumai/IXP/Rwstat.html +148 -0
- data/doc/api/Rumai/IXP/Stat.html +335 -0
- data/doc/api/Rumai/IXP/Stream.html +194 -0
- data/doc/api/Rumai/IXP/Struct.html +586 -0
- data/doc/api/Rumai/IXP/Struct/ClassField.html +242 -0
- data/doc/api/Rumai/IXP/Struct/Field.html +782 -0
- data/doc/api/Rumai/IXP/Struct/Field/CounteeField.html +227 -0
- data/doc/api/Rumai/IXP/Struct/Field/CounterField.html +153 -0
- data/doc/api/Rumai/IXP/Struct/Integer8Field.html +242 -0
- data/doc/api/Rumai/IXP/Struct/StringField.html +206 -0
- data/doc/api/Rumai/IXP/Tattach.html +148 -0
- data/doc/api/Rumai/IXP/Tauth.html +148 -0
- data/doc/api/Rumai/IXP/Tclunk.html +148 -0
- data/doc/api/Rumai/IXP/Tcreate.html +148 -0
- data/doc/api/Rumai/IXP/Terror.html +231 -0
- data/doc/api/Rumai/IXP/Tflush.html +148 -0
- data/doc/api/Rumai/IXP/Topen.html +240 -0
- data/doc/api/Rumai/IXP/Tread.html +148 -0
- data/doc/api/Rumai/IXP/Tremove.html +148 -0
- data/doc/api/Rumai/IXP/Tstat.html +148 -0
- data/doc/api/Rumai/IXP/Tversion.html +162 -0
- data/doc/api/Rumai/IXP/Twalk.html +148 -0
- data/doc/api/Rumai/IXP/Twrite.html +148 -0
- data/doc/api/Rumai/IXP/Twstat.html +148 -0
- data/doc/api/Rumai/Node.html +1406 -0
- data/doc/api/Rumai/View.html +1587 -0
- data/doc/api/Rumai/WidgetImpl.html +333 -0
- data/doc/api/Rumai/WidgetNode.html +246 -0
- data/doc/api/String.html +258 -0
- data/doc/api/StringIO.html +119 -0
- data/doc/api/Time.html +247 -0
- data/doc/api/_index.html +581 -0
- data/doc/api/class_list.html +36 -0
- data/doc/api/css/common.css +1 -0
- data/doc/api/css/full_list.css +50 -0
- data/doc/api/css/style.css +273 -0
- data/doc/api/file.LICENSE.html +73 -0
- data/doc/api/file_list.html +38 -0
- data/doc/api/frames.html +13 -0
- data/doc/api/index.html +72 -13
- data/doc/api/js/app.js +111 -0
- data/doc/api/js/full_list.js +117 -0
- data/doc/api/js/{jquery-1.3.2.min.js → jquery.js} +0 -0
- data/doc/api/method_list.html +1483 -0
- data/doc/api/top-level-namespace.html +89 -0
- data/doc/index.erb +18 -13
- data/doc/index.html +331 -386
- data/lib/rumai.rb +1 -18
- data/lib/rumai/fs.rb +11 -11
- data/lib/rumai/inochi.rb +48 -0
- data/lib/rumai/inochi.yaml +94 -0
- data/lib/rumai/ixp.rb +0 -4
- data/lib/rumai/ixp/message.rb +6 -17
- data/lib/rumai/ixp/transport.rb +39 -30
- data/lib/rumai/wm.rb +35 -37
- data/test/rumai/inochi_test.rb +17 -0
- data/test/rumai/ixp/message_test.rb +245 -0
- data/test/runner +25 -0
- data/test/test_helper.rb +1 -0
- metadata +107 -125
- data/doc/api/apple-touch-icon.png +0 -0
- data/doc/api/classes/IO.html +0 -72
- data/doc/api/classes/Integer.html +0 -110
- data/doc/api/classes/Object.html +0 -60
- data/doc/api/classes/Rumai.html +0 -837
- data/doc/api/classes/Rumai/Area.html +0 -909
- data/doc/api/classes/Rumai/Chain.html +0 -197
- data/doc/api/classes/Rumai/Client.html +0 -1526
- data/doc/api/classes/Rumai/ClientContainer.html +0 -191
- data/doc/api/classes/Rumai/ExportInstanceMethods.html +0 -69
- data/doc/api/classes/Rumai/IXP.html +0 -131
- data/doc/api/classes/Rumai/IXP/Agent.html +0 -941
- data/doc/api/classes/Rumai/IXP/Agent/FidStream.html +0 -456
- data/doc/api/classes/Rumai/IXP/Agent/MODES.html +0 -108
- data/doc/api/classes/Rumai/IXP/Agent/RangedPool.html +0 -241
- data/doc/api/classes/Rumai/IXP/Error.html +0 -67
- data/doc/api/classes/Rumai/IXP/Fcall.html +0 -323
- data/doc/api/classes/Rumai/IXP/Qid.html +0 -153
- data/doc/api/classes/Rumai/IXP/Rattach.html +0 -67
- data/doc/api/classes/Rumai/IXP/Rauth.html +0 -67
- data/doc/api/classes/Rumai/IXP/Rclunk.html +0 -67
- data/doc/api/classes/Rumai/IXP/Rcreate.html +0 -67
- data/doc/api/classes/Rumai/IXP/Rerror.html +0 -67
- data/doc/api/classes/Rumai/IXP/Rflush.html +0 -67
- data/doc/api/classes/Rumai/IXP/Ropen.html +0 -67
- data/doc/api/classes/Rumai/IXP/Rread.html +0 -67
- data/doc/api/classes/Rumai/IXP/Rremove.html +0 -67
- data/doc/api/classes/Rumai/IXP/Rstat.html +0 -67
- data/doc/api/classes/Rumai/IXP/Rversion.html +0 -67
- data/doc/api/classes/Rumai/IXP/Rwalk.html +0 -67
- data/doc/api/classes/Rumai/IXP/Rwrite.html +0 -67
- data/doc/api/classes/Rumai/IXP/Rwstat.html +0 -67
- data/doc/api/classes/Rumai/IXP/Stat.html +0 -252
- data/doc/api/classes/Rumai/IXP/Stream.html +0 -131
- data/doc/api/classes/Rumai/IXP/Struct.html +0 -311
- data/doc/api/classes/Rumai/IXP/Struct/Field.html +0 -415
- data/doc/api/classes/Rumai/IXP/Struct/Field/CounteeField.html +0 -153
- data/doc/api/classes/Rumai/IXP/Struct/Field/CounterField.html +0 -104
- data/doc/api/classes/Rumai/IXP/Tattach.html +0 -68
- data/doc/api/classes/Rumai/IXP/Tauth.html +0 -67
- data/doc/api/classes/Rumai/IXP/Tclunk.html +0 -67
- data/doc/api/classes/Rumai/IXP/Tcreate.html +0 -68
- data/doc/api/classes/Rumai/IXP/Terror.html +0 -110
- data/doc/api/classes/Rumai/IXP/Tflush.html +0 -67
- data/doc/api/classes/Rumai/IXP/Topen.html +0 -165
- data/doc/api/classes/Rumai/IXP/Tread.html +0 -67
- data/doc/api/classes/Rumai/IXP/Tremove.html +0 -67
- data/doc/api/classes/Rumai/IXP/Tstat.html +0 -67
- data/doc/api/classes/Rumai/IXP/Tversion.html +0 -86
- data/doc/api/classes/Rumai/IXP/Twalk.html +0 -68
- data/doc/api/classes/Rumai/IXP/Twrite.html +0 -68
- data/doc/api/classes/Rumai/IXP/Twstat.html +0 -67
- data/doc/api/classes/Rumai/Node.html +0 -821
- data/doc/api/classes/Rumai/View.html +0 -967
- data/doc/api/classes/Rumai/WidgetImpl.html +0 -65
- data/doc/api/classes/Rumai/WidgetNode.html +0 -68
- data/doc/api/classes/String.html +0 -163
- data/doc/api/classes/StringIO.html +0 -72
- data/doc/api/classes/Time.html +0 -156
- data/doc/api/created.rid +0 -1
- data/doc/api/css/main.css +0 -263
- data/doc/api/css/panel.css +0 -383
- data/doc/api/css/reset.css +0 -53
- data/doc/api/favicon.ico +0 -0
- data/doc/api/files/CREDITS.html +0 -67
- data/doc/api/files/LICENSE.html +0 -76
- data/doc/api/files/lib/rumai/fs_rb.html +0 -75
- data/doc/api/files/lib/rumai/ixp/message_rb.html +0 -91
- data/doc/api/files/lib/rumai/ixp/transport_rb.html +0 -75
- data/doc/api/files/lib/rumai/ixp_rb.html +0 -69
- data/doc/api/files/lib/rumai/wm_rb.html +0 -77
- data/doc/api/files/lib/rumai_rb.html +0 -65
- data/doc/api/i/arrows.png +0 -0
- data/doc/api/i/results_bg.png +0 -0
- data/doc/api/i/tree_bg.png +0 -0
- data/doc/api/js/jquery-effect.js +0 -593
- data/doc/api/js/main.js +0 -22
- data/doc/api/js/searchdoc.js +0 -628
- data/doc/api/panel/index.html +0 -71
- data/doc/api/panel/search_index.js +0 -1
- data/doc/api/panel/tree.js +0 -1
- data/doc/history.erb +0 -233
- data/doc/intro.erb +0 -70
- data/doc/setup.erb +0 -144
- data/doc/usage.erb +0 -308
- data/rakefile +0 -14
- data/test/rumai/ixp/message.rb +0 -237
@@ -1,108 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="utf-8"?>
|
2
|
-
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
3
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
4
|
-
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
5
|
-
<head>
|
6
|
-
<title>Rumai::IXP::Agent::MODES</title>
|
7
|
-
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
8
|
-
<link rel="stylesheet" href="../../../../css/reset.css" type="text/css" media="screen" />
|
9
|
-
<link rel="stylesheet" href="../../../../css/main.css" type="text/css" media="screen" />
|
10
|
-
<script src="../../../../js/jquery-1.3.2.min.js" type="text/javascript" charset="utf-8"></script>
|
11
|
-
<script src="../../../../js/jquery-effect.js" type="text/javascript" charset="utf-8"></script>
|
12
|
-
<script src="../../../../js/main.js" type="text/javascript" charset="utf-8"></script>
|
13
|
-
</head>
|
14
|
-
|
15
|
-
<body>
|
16
|
-
<div class="banner">
|
17
|
-
<h1>
|
18
|
-
<span class="type">Module</span>
|
19
|
-
Rumai::IXP::Agent::MODES
|
20
|
-
|
21
|
-
</h1>
|
22
|
-
<ul class="files">
|
23
|
-
|
24
|
-
<li><a href="../../../../files/lib/rumai/ixp/transport_rb.html">lib/rumai/ixp/transport.rb</a></li>
|
25
|
-
|
26
|
-
</ul>
|
27
|
-
</div>
|
28
|
-
<div id="bodyContent">
|
29
|
-
<div id="content">
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
<div class="sectiontitle">Methods</div>
|
40
|
-
<dl class="methods">
|
41
|
-
|
42
|
-
<dt>P</dt>
|
43
|
-
<dd>
|
44
|
-
<ul>
|
45
|
-
|
46
|
-
<li><a href="#M000061">parse</a></li>
|
47
|
-
|
48
|
-
</ul>
|
49
|
-
</dd>
|
50
|
-
|
51
|
-
</dl>
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
<div class="sectiontitle">Class Public methods</div>
|
66
|
-
|
67
|
-
<div class="method">
|
68
|
-
<div class="title" id="M000061">
|
69
|
-
|
70
|
-
<a name="M000061"></a><b>parse</b>(mode)
|
71
|
-
|
72
|
-
</div>
|
73
|
-
|
74
|
-
<div class="description">
|
75
|
-
<p>
|
76
|
-
Converts the given mode string into an integer.
|
77
|
-
</p>
|
78
|
-
|
79
|
-
</div>
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
<div class="sourcecode">
|
85
|
-
<p class="source-link">
|
86
|
-
Source: <a href="javascript:toggleSource('M000061_source')" id="l_M000061_source">show</a>
|
87
|
-
|
88
|
-
| <a href="http://github.com/sunaku/rumai/blob/947d8ffb1e3c2bd1aebfca5fae4e7ebb7913607f/lib/rumai/ixp/transport.rb#L184" target="_blank" class="github_url">on GitHub</a>
|
89
|
-
|
90
|
-
</p>
|
91
|
-
<div id="M000061_source" class="dyn-source">
|
92
|
-
<pre><span class="ruby-comment cmt"># File lib/rumai/ixp/transport.rb, line 184</span>
|
93
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-constant">MODES</span>.<span class="ruby-identifier">parse</span> <span class="ruby-identifier">mode</span>
|
94
|
-
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">mode</span>.<span class="ruby-identifier">respond_to?</span> <span class="ruby-identifier">:split</span>
|
95
|
-
<span class="ruby-identifier">mode</span>.<span class="ruby-identifier">split</span>(<span class="ruby-regexp re">//</span>).<span class="ruby-identifier">inject</span>(<span class="ruby-value">0</span>) {<span class="ruby-operator">|</span><span class="ruby-identifier">m</span>,<span class="ruby-identifier">c</span><span class="ruby-operator">|</span> <span class="ruby-identifier">m</span> <span class="ruby-operator">|</span> <span class="ruby-keyword kw">self</span>[<span class="ruby-identifier">c</span>].<span class="ruby-identifier">to_i</span> }
|
96
|
-
<span class="ruby-keyword kw">else</span>
|
97
|
-
<span class="ruby-identifier">mode</span>.<span class="ruby-identifier">to_i</span>
|
98
|
-
<span class="ruby-keyword kw">end</span>
|
99
|
-
<span class="ruby-keyword kw">end</span></pre>
|
100
|
-
</div>
|
101
|
-
</div>
|
102
|
-
|
103
|
-
</div>
|
104
|
-
|
105
|
-
</div>
|
106
|
-
</div>
|
107
|
-
</body>
|
108
|
-
</html>
|
@@ -1,241 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="utf-8"?>
|
2
|
-
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
3
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
4
|
-
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
5
|
-
<head>
|
6
|
-
<title>Rumai::IXP::Agent::RangedPool</title>
|
7
|
-
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
8
|
-
<link rel="stylesheet" href="../../../../css/reset.css" type="text/css" media="screen" />
|
9
|
-
<link rel="stylesheet" href="../../../../css/main.css" type="text/css" media="screen" />
|
10
|
-
<script src="../../../../js/jquery-1.3.2.min.js" type="text/javascript" charset="utf-8"></script>
|
11
|
-
<script src="../../../../js/jquery-effect.js" type="text/javascript" charset="utf-8"></script>
|
12
|
-
<script src="../../../../js/main.js" type="text/javascript" charset="utf-8"></script>
|
13
|
-
</head>
|
14
|
-
|
15
|
-
<body>
|
16
|
-
<div class="banner">
|
17
|
-
<h1>
|
18
|
-
<span class="type">Class</span>
|
19
|
-
Rumai::IXP::Agent::RangedPool
|
20
|
-
|
21
|
-
<span class="parent"><
|
22
|
-
|
23
|
-
<a href="../../../Object.html">Object</a>
|
24
|
-
|
25
|
-
</span>
|
26
|
-
|
27
|
-
</h1>
|
28
|
-
<ul class="files">
|
29
|
-
|
30
|
-
<li><a href="../../../../files/lib/rumai/ixp/transport_rb.html">lib/rumai/ixp/transport.rb</a></li>
|
31
|
-
|
32
|
-
</ul>
|
33
|
-
</div>
|
34
|
-
<div id="bodyContent">
|
35
|
-
<div id="content">
|
36
|
-
|
37
|
-
<div class="description">
|
38
|
-
<p>
|
39
|
-
A finite, thread-safe pool of range members.
|
40
|
-
</p>
|
41
|
-
|
42
|
-
</div>
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
<div class="sectiontitle">Methods</div>
|
53
|
-
<dl class="methods">
|
54
|
-
|
55
|
-
<dt>N</dt>
|
56
|
-
<dd>
|
57
|
-
<ul>
|
58
|
-
|
59
|
-
<li><a href="#M000045">new</a></li>
|
60
|
-
|
61
|
-
</ul>
|
62
|
-
</dd>
|
63
|
-
|
64
|
-
<dt>O</dt>
|
65
|
-
<dd>
|
66
|
-
<ul>
|
67
|
-
|
68
|
-
<li><a href="#M000051">obtain</a></li>
|
69
|
-
|
70
|
-
</ul>
|
71
|
-
</dd>
|
72
|
-
|
73
|
-
<dt>R</dt>
|
74
|
-
<dd>
|
75
|
-
<ul>
|
76
|
-
|
77
|
-
<li><a href="#M000053">release</a></li>
|
78
|
-
|
79
|
-
</ul>
|
80
|
-
</dd>
|
81
|
-
|
82
|
-
</dl>
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
<div class="sectiontitle">Constants</div>
|
93
|
-
<table border='0' cellpadding='5'>
|
94
|
-
|
95
|
-
<tr valign='top'>
|
96
|
-
<td class="attr-name">FILL_RATE</td>
|
97
|
-
<td>=</td>
|
98
|
-
<td class="attr-value">10</td>
|
99
|
-
</tr>
|
100
|
-
|
101
|
-
<tr valign='top'>
|
102
|
-
<td> </td>
|
103
|
-
<td colspan="2" class="attr-desc"><p>
|
104
|
-
how many new members should be added to the pool when the pool is empty?
|
105
|
-
</p>
|
106
|
-
</td>
|
107
|
-
</tr>
|
108
|
-
|
109
|
-
|
110
|
-
</table>
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
<div class="sectiontitle">Class Public methods</div>
|
117
|
-
|
118
|
-
<div class="method">
|
119
|
-
<div class="title" id="M000045">
|
120
|
-
|
121
|
-
<a name="M000045"></a><b>new</b>(range)
|
122
|
-
|
123
|
-
</div>
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
<div class="sourcecode">
|
129
|
-
<p class="source-link">
|
130
|
-
Source: <a href="javascript:toggleSource('M000045_source')" id="l_M000045_source">show</a>
|
131
|
-
|
132
|
-
| <a href="http://github.com/sunaku/rumai/blob/947d8ffb1e3c2bd1aebfca5fae4e7ebb7913607f/lib/rumai/ixp/transport.rb#L65" target="_blank" class="github_url">on GitHub</a>
|
133
|
-
|
134
|
-
</p>
|
135
|
-
<div id="M000045_source" class="dyn-source">
|
136
|
-
<pre><span class="ruby-comment cmt"># File lib/rumai/ixp/transport.rb, line 65</span>
|
137
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span> <span class="ruby-identifier">range</span>
|
138
|
-
<span class="ruby-ivar">@pos</span> = <span class="ruby-identifier">range</span>.<span class="ruby-identifier">first</span>
|
139
|
-
<span class="ruby-ivar">@lim</span> = <span class="ruby-identifier">range</span>.<span class="ruby-identifier">last</span>
|
140
|
-
<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">range</span>.<span class="ruby-identifier">exclude_end?</span>
|
141
|
-
|
142
|
-
<span class="ruby-ivar">@pool</span> = <span class="ruby-constant">Queue</span>.<span class="ruby-identifier">new</span>
|
143
|
-
<span class="ruby-keyword kw">end</span></pre>
|
144
|
-
</div>
|
145
|
-
</div>
|
146
|
-
|
147
|
-
</div>
|
148
|
-
|
149
|
-
<div class="sectiontitle">Instance Public methods</div>
|
150
|
-
|
151
|
-
<div class="method">
|
152
|
-
<div class="title" id="M000051">
|
153
|
-
|
154
|
-
<a name="M000051"></a><b>obtain</b>()
|
155
|
-
|
156
|
-
</div>
|
157
|
-
|
158
|
-
<div class="description">
|
159
|
-
<p>
|
160
|
-
Returns an unoccupied range member from the pool.
|
161
|
-
</p>
|
162
|
-
|
163
|
-
</div>
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
<div class="sourcecode">
|
169
|
-
<p class="source-link">
|
170
|
-
Source: <a href="javascript:toggleSource('M000051_source')" id="l_M000051_source">show</a>
|
171
|
-
|
172
|
-
| <a href="http://github.com/sunaku/rumai/blob/947d8ffb1e3c2bd1aebfca5fae4e7ebb7913607f/lib/rumai/ixp/transport.rb#L76" target="_blank" class="github_url">on GitHub</a>
|
173
|
-
|
174
|
-
</p>
|
175
|
-
<div id="M000051_source" class="dyn-source">
|
176
|
-
<pre><span class="ruby-comment cmt"># File lib/rumai/ixp/transport.rb, line 76</span>
|
177
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">obtain</span>
|
178
|
-
<span class="ruby-keyword kw">begin</span>
|
179
|
-
<span class="ruby-ivar">@pool</span>.<span class="ruby-identifier">deq</span> <span class="ruby-keyword kw">true</span>
|
180
|
-
|
181
|
-
<span class="ruby-keyword kw">rescue</span> <span class="ruby-constant">ThreadError</span>
|
182
|
-
<span class="ruby-comment cmt"># pool is empty, so fill it</span>
|
183
|
-
<span class="ruby-constant">FILL_RATE</span>.<span class="ruby-identifier">times</span> <span class="ruby-keyword kw">do</span>
|
184
|
-
<span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@pos</span> <span class="ruby-operator">!=</span> <span class="ruby-ivar">@lim</span>
|
185
|
-
<span class="ruby-ivar">@pool</span> <span class="ruby-operator"><<</span> <span class="ruby-ivar">@pos</span>
|
186
|
-
<span class="ruby-ivar">@pos</span> = <span class="ruby-ivar">@pos</span>.<span class="ruby-identifier">succ</span>
|
187
|
-
<span class="ruby-keyword kw">else</span>
|
188
|
-
<span class="ruby-comment cmt"># range is exhausted, so give other threads</span>
|
189
|
-
<span class="ruby-comment cmt"># a chance to fill the pool before retrying</span>
|
190
|
-
<span class="ruby-constant">Thread</span>.<span class="ruby-identifier">pass</span>
|
191
|
-
<span class="ruby-keyword kw">break</span>
|
192
|
-
<span class="ruby-keyword kw">end</span>
|
193
|
-
<span class="ruby-keyword kw">end</span>
|
194
|
-
|
195
|
-
<span class="ruby-keyword kw">retry</span>
|
196
|
-
<span class="ruby-keyword kw">end</span>
|
197
|
-
<span class="ruby-keyword kw">end</span></pre>
|
198
|
-
</div>
|
199
|
-
</div>
|
200
|
-
|
201
|
-
</div>
|
202
|
-
|
203
|
-
<div class="method">
|
204
|
-
<div class="title" id="M000053">
|
205
|
-
|
206
|
-
<a name="M000053"></a><b>release</b>(member)
|
207
|
-
|
208
|
-
</div>
|
209
|
-
|
210
|
-
<div class="description">
|
211
|
-
<p>
|
212
|
-
Marks the given member as being unoccupied so that it may be occupied again
|
213
|
-
in the future.
|
214
|
-
</p>
|
215
|
-
|
216
|
-
</div>
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
<div class="sourcecode">
|
222
|
-
<p class="source-link">
|
223
|
-
Source: <a href="javascript:toggleSource('M000053_source')" id="l_M000053_source">show</a>
|
224
|
-
|
225
|
-
| <a href="http://github.com/sunaku/rumai/blob/947d8ffb1e3c2bd1aebfca5fae4e7ebb7913607f/lib/rumai/ixp/transport.rb#L102" target="_blank" class="github_url">on GitHub</a>
|
226
|
-
|
227
|
-
</p>
|
228
|
-
<div id="M000053_source" class="dyn-source">
|
229
|
-
<pre><span class="ruby-comment cmt"># File lib/rumai/ixp/transport.rb, line 102</span>
|
230
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">release</span> <span class="ruby-identifier">member</span>
|
231
|
-
<span class="ruby-ivar">@pool</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">member</span>
|
232
|
-
<span class="ruby-keyword kw">end</span></pre>
|
233
|
-
</div>
|
234
|
-
</div>
|
235
|
-
|
236
|
-
</div>
|
237
|
-
|
238
|
-
</div>
|
239
|
-
</div>
|
240
|
-
</body>
|
241
|
-
</html>
|
@@ -1,67 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="utf-8"?>
|
2
|
-
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
3
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
4
|
-
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
5
|
-
<head>
|
6
|
-
<title>Rumai::IXP::Error</title>
|
7
|
-
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
8
|
-
<link rel="stylesheet" href="../../../css/reset.css" type="text/css" media="screen" />
|
9
|
-
<link rel="stylesheet" href="../../../css/main.css" type="text/css" media="screen" />
|
10
|
-
<script src="../../../js/jquery-1.3.2.min.js" type="text/javascript" charset="utf-8"></script>
|
11
|
-
<script src="../../../js/jquery-effect.js" type="text/javascript" charset="utf-8"></script>
|
12
|
-
<script src="../../../js/main.js" type="text/javascript" charset="utf-8"></script>
|
13
|
-
</head>
|
14
|
-
|
15
|
-
<body>
|
16
|
-
<div class="banner">
|
17
|
-
<h1>
|
18
|
-
<span class="type">Class</span>
|
19
|
-
Rumai::IXP::Error
|
20
|
-
|
21
|
-
<span class="parent"><
|
22
|
-
|
23
|
-
StandardError
|
24
|
-
|
25
|
-
</span>
|
26
|
-
|
27
|
-
</h1>
|
28
|
-
<ul class="files">
|
29
|
-
|
30
|
-
<li><a href="../../../files/lib/rumai/ixp/message_rb.html">lib/rumai/ixp/message.rb</a></li>
|
31
|
-
|
32
|
-
</ul>
|
33
|
-
</div>
|
34
|
-
<div id="bodyContent">
|
35
|
-
<div id="content">
|
36
|
-
|
37
|
-
<div class="description">
|
38
|
-
<p>
|
39
|
-
A common container for exceptions concerning <a href="../IXP.html">IXP</a>.
|
40
|
-
</p>
|
41
|
-
|
42
|
-
</div>
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
</div>
|
65
|
-
</div>
|
66
|
-
</body>
|
67
|
-
</html>
|
@@ -1,323 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="utf-8"?>
|
2
|
-
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
3
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
4
|
-
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
5
|
-
<head>
|
6
|
-
<title>Rumai::IXP::Fcall</title>
|
7
|
-
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
8
|
-
<link rel="stylesheet" href="../../../css/reset.css" type="text/css" media="screen" />
|
9
|
-
<link rel="stylesheet" href="../../../css/main.css" type="text/css" media="screen" />
|
10
|
-
<script src="../../../js/jquery-1.3.2.min.js" type="text/javascript" charset="utf-8"></script>
|
11
|
-
<script src="../../../js/jquery-effect.js" type="text/javascript" charset="utf-8"></script>
|
12
|
-
<script src="../../../js/main.js" type="text/javascript" charset="utf-8"></script>
|
13
|
-
</head>
|
14
|
-
|
15
|
-
<body>
|
16
|
-
<div class="banner">
|
17
|
-
<h1>
|
18
|
-
<span class="type">Class</span>
|
19
|
-
Rumai::IXP::Fcall
|
20
|
-
|
21
|
-
<span class="parent"><
|
22
|
-
|
23
|
-
<a href="../../Object.html">Object</a>
|
24
|
-
|
25
|
-
</span>
|
26
|
-
|
27
|
-
</h1>
|
28
|
-
<ul class="files">
|
29
|
-
|
30
|
-
<li><a href="../../../files/lib/rumai/ixp/message_rb.html">lib/rumai/ixp/message.rb</a></li>
|
31
|
-
|
32
|
-
</ul>
|
33
|
-
</div>
|
34
|
-
<div id="bodyContent">
|
35
|
-
<div id="content">
|
36
|
-
|
37
|
-
<div class="description">
|
38
|
-
<p>
|
39
|
-
A remote function call (fcall).
|
40
|
-
</p>
|
41
|
-
|
42
|
-
</div>
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
<div class="sectiontitle">Methods</div>
|
53
|
-
<dl class="methods">
|
54
|
-
|
55
|
-
<dt>#</dt>
|
56
|
-
<dd>
|
57
|
-
<ul>
|
58
|
-
|
59
|
-
<li><a href="#M000161">__from_9p__</a></li>
|
60
|
-
|
61
|
-
</ul>
|
62
|
-
</dd>
|
63
|
-
|
64
|
-
<dt>F</dt>
|
65
|
-
<dd>
|
66
|
-
<ul>
|
67
|
-
|
68
|
-
<li><a href="#M000160">from_9p</a></li>
|
69
|
-
|
70
|
-
</ul>
|
71
|
-
</dd>
|
72
|
-
|
73
|
-
<dt>T</dt>
|
74
|
-
<dd>
|
75
|
-
<ul>
|
76
|
-
|
77
|
-
<li><a href="#M000159">to_9p</a>,</li>
|
78
|
-
|
79
|
-
<li><a href="#M000163">type</a>,</li>
|
80
|
-
|
81
|
-
<li><a href="#M000164">type</a></li>
|
82
|
-
|
83
|
-
</ul>
|
84
|
-
</dd>
|
85
|
-
|
86
|
-
</dl>
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
<div class="sectiontitle">Included Modules</div>
|
91
|
-
<ul>
|
92
|
-
|
93
|
-
<li>
|
94
|
-
|
95
|
-
<a href="../IXP.html">Rumai::IXP</a>
|
96
|
-
|
97
|
-
START:includes
|
98
|
-
</li>
|
99
|
-
|
100
|
-
</ul>
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
<div class="sectiontitle">Constants</div>
|
109
|
-
<table border='0' cellpadding='5'>
|
110
|
-
|
111
|
-
<tr valign='top'>
|
112
|
-
<td class="attr-name">NOTAG</td>
|
113
|
-
<td>=</td>
|
114
|
-
<td class="attr-value">BYTE2_MASK # (ushort)</td>
|
115
|
-
</tr>
|
116
|
-
|
117
|
-
|
118
|
-
<tr valign='top'>
|
119
|
-
<td class="attr-name">NOFID</td>
|
120
|
-
<td>=</td>
|
121
|
-
<td class="attr-value">BYTE4_MASK # (uint32)</td>
|
122
|
-
</tr>
|
123
|
-
|
124
|
-
|
125
|
-
<tr valign='top'>
|
126
|
-
<td class="attr-name">CLASS_TO_TYPE</td>
|
127
|
-
<td>=</td>
|
128
|
-
<td class="attr-value">{ Tversion => 100, Rversion => 101, Tauth => 102, Rauth => 103, Tattach => 104, Rattach => 105, Terror => 106, Rerror => 107, Tflush => 108, Rflush => 109, Twalk => 110, Rwalk => 111, Topen => 112, Ropen => 113, Tcreate => 114, Rcreate => 115, Tread => 116, Rread => 117, Twrite => 118, Rwrite => 119, Tclunk => 120, Rclunk => 121, Tremove => 122, Rremove => 123, Tstat => 124, Rstat => 125, Twstat => 126, Rwstat => 127, }.freeze</td>
|
129
|
-
</tr>
|
130
|
-
|
131
|
-
|
132
|
-
<tr valign='top'>
|
133
|
-
<td class="attr-name">TYPE_TO_CLASS</td>
|
134
|
-
<td>=</td>
|
135
|
-
<td class="attr-value">CLASS_TO_TYPE.invert.freeze</td>
|
136
|
-
</tr>
|
137
|
-
|
138
|
-
|
139
|
-
</table>
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
<div class="sectiontitle">Class Public methods</div>
|
146
|
-
|
147
|
-
<div class="method">
|
148
|
-
<div class="title" id="M000161">
|
149
|
-
|
150
|
-
<a name="M000161"></a><b>__from_9p__</b>(stream)
|
151
|
-
|
152
|
-
</div>
|
153
|
-
|
154
|
-
<div class="description">
|
155
|
-
<p>
|
156
|
-
Alias for <a href="Fcall.html#M000160">from_9p</a>
|
157
|
-
</p>
|
158
|
-
|
159
|
-
</div>
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
</div>
|
164
|
-
|
165
|
-
<div class="method">
|
166
|
-
<div class="title" id="M000160">
|
167
|
-
|
168
|
-
<a name="M000160"></a><b>from_9p</b>(stream)
|
169
|
-
|
170
|
-
</div>
|
171
|
-
|
172
|
-
<div class="description">
|
173
|
-
<p>
|
174
|
-
Creates a new instance of this class from the given 9P2000 byte stream and
|
175
|
-
returns the instance.
|
176
|
-
</p>
|
177
|
-
|
178
|
-
</div>
|
179
|
-
|
180
|
-
|
181
|
-
<div class="aka">
|
182
|
-
This method is also aliased as
|
183
|
-
|
184
|
-
<a href="Fcall.html#M000161">__from_9p__</a>
|
185
|
-
|
186
|
-
</div>
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
<div class="sourcecode">
|
191
|
-
<p class="source-link">
|
192
|
-
Source: <a href="javascript:toggleSource('M000160_source')" id="l_M000160_source">show</a>
|
193
|
-
|
194
|
-
| <a href="http://github.com/sunaku/rumai/blob/947d8ffb1e3c2bd1aebfca5fae4e7ebb7913607f/lib/rumai/ixp/message.rb#L428" target="_blank" class="github_url">on GitHub</a>
|
195
|
-
|
196
|
-
</p>
|
197
|
-
<div id="M000160_source" class="dyn-source">
|
198
|
-
<pre><span class="ruby-comment cmt"># File lib/rumai/ixp/message.rb, line 428</span>
|
199
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">from_9p</span> <span class="ruby-identifier">stream</span>
|
200
|
-
<span class="ruby-identifier">size</span> = <span class="ruby-identifier">stream</span>.<span class="ruby-identifier">read_9p</span>(<span class="ruby-value">4</span>)
|
201
|
-
<span class="ruby-identifier">type</span> = <span class="ruby-identifier">stream</span>.<span class="ruby-identifier">read_9p</span>(<span class="ruby-value">1</span>)
|
202
|
-
|
203
|
-
<span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">fcall</span> = <span class="ruby-constant">TYPE_TO_CLASS</span>[<span class="ruby-identifier">type</span>]
|
204
|
-
<span class="ruby-identifier">raise</span> <span class="ruby-constant">Error</span>, <span class="ruby-node">"illegal fcall type: #{type}"</span>
|
205
|
-
<span class="ruby-keyword kw">end</span>
|
206
|
-
|
207
|
-
<span class="ruby-identifier">__from_9p__</span> <span class="ruby-identifier">stream</span>, <span class="ruby-identifier">fcall</span>
|
208
|
-
<span class="ruby-keyword kw">end</span></pre>
|
209
|
-
</div>
|
210
|
-
</div>
|
211
|
-
|
212
|
-
</div>
|
213
|
-
|
214
|
-
<div class="method">
|
215
|
-
<div class="title" id="M000163">
|
216
|
-
|
217
|
-
<a name="M000163"></a><b>type</b>()
|
218
|
-
|
219
|
-
</div>
|
220
|
-
|
221
|
-
<div class="description">
|
222
|
-
<p>
|
223
|
-
Returns the value of the ‘type’ field for this fcall.
|
224
|
-
</p>
|
225
|
-
|
226
|
-
</div>
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
<div class="sourcecode">
|
232
|
-
<p class="source-link">
|
233
|
-
Source: <a href="javascript:toggleSource('M000163_source')" id="l_M000163_source">show</a>
|
234
|
-
|
235
|
-
| <a href="http://github.com/sunaku/rumai/blob/947d8ffb1e3c2bd1aebfca5fae4e7ebb7913607f/lib/rumai/ixp/message.rb#L669" target="_blank" class="github_url">on GitHub</a>
|
236
|
-
|
237
|
-
</p>
|
238
|
-
<div id="M000163_source" class="dyn-source">
|
239
|
-
<pre><span class="ruby-comment cmt"># File lib/rumai/ixp/message.rb, line 669</span>
|
240
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">type</span>
|
241
|
-
<span class="ruby-constant">CLASS_TO_TYPE</span>[<span class="ruby-keyword kw">self</span>]
|
242
|
-
<span class="ruby-keyword kw">end</span></pre>
|
243
|
-
</div>
|
244
|
-
</div>
|
245
|
-
|
246
|
-
</div>
|
247
|
-
|
248
|
-
<div class="sectiontitle">Instance Public methods</div>
|
249
|
-
|
250
|
-
<div class="method">
|
251
|
-
<div class="title" id="M000159">
|
252
|
-
|
253
|
-
<a name="M000159"></a><b>to_9p</b>()
|
254
|
-
|
255
|
-
</div>
|
256
|
-
|
257
|
-
<div class="description">
|
258
|
-
<p>
|
259
|
-
Transforms this object into a string of 9P2000 bytes.
|
260
|
-
</p>
|
261
|
-
|
262
|
-
</div>
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
<div class="sourcecode">
|
268
|
-
<p class="source-link">
|
269
|
-
Source: <a href="javascript:toggleSource('M000159_source')" id="l_M000159_source">show</a>
|
270
|
-
|
271
|
-
| <a href="http://github.com/sunaku/rumai/blob/947d8ffb1e3c2bd1aebfca5fae4e7ebb7913607f/lib/rumai/ixp/message.rb#L414" target="_blank" class="github_url">on GitHub</a>
|
272
|
-
|
273
|
-
</p>
|
274
|
-
<div id="M000159_source" class="dyn-source">
|
275
|
-
<pre><span class="ruby-comment cmt"># File lib/rumai/ixp/message.rb, line 414</span>
|
276
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_9p</span>
|
277
|
-
<span class="ruby-identifier">data</span> = <span class="ruby-identifier">type</span>.<span class="ruby-identifier">to_9p</span>(<span class="ruby-value">1</span>) <span class="ruby-operator"><<</span> <span class="ruby-keyword kw">super</span>
|
278
|
-
<span class="ruby-identifier">size</span> = (<span class="ruby-identifier">data</span>.<span class="ruby-identifier">length</span> <span class="ruby-operator">+</span> <span class="ruby-value">4</span>).<span class="ruby-identifier">to_9p</span>(<span class="ruby-value">4</span>)
|
279
|
-
<span class="ruby-identifier">size</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">data</span>
|
280
|
-
<span class="ruby-keyword kw">end</span></pre>
|
281
|
-
</div>
|
282
|
-
</div>
|
283
|
-
|
284
|
-
</div>
|
285
|
-
|
286
|
-
<div class="method">
|
287
|
-
<div class="title" id="M000164">
|
288
|
-
|
289
|
-
<a name="M000164"></a><b>type</b>()
|
290
|
-
|
291
|
-
</div>
|
292
|
-
|
293
|
-
<div class="description">
|
294
|
-
<p>
|
295
|
-
Returns the value of the ‘type’ field for this fcall.
|
296
|
-
</p>
|
297
|
-
|
298
|
-
</div>
|
299
|
-
|
300
|
-
|
301
|
-
|
302
|
-
|
303
|
-
<div class="sourcecode">
|
304
|
-
<p class="source-link">
|
305
|
-
Source: <a href="javascript:toggleSource('M000164_source')" id="l_M000164_source">show</a>
|
306
|
-
|
307
|
-
| <a href="http://github.com/sunaku/rumai/blob/947d8ffb1e3c2bd1aebfca5fae4e7ebb7913607f/lib/rumai/ixp/message.rb#L676" target="_blank" class="github_url">on GitHub</a>
|
308
|
-
|
309
|
-
</p>
|
310
|
-
<div id="M000164_source" class="dyn-source">
|
311
|
-
<pre><span class="ruby-comment cmt"># File lib/rumai/ixp/message.rb, line 676</span>
|
312
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">type</span>
|
313
|
-
<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">class</span>.<span class="ruby-identifier">type</span>
|
314
|
-
<span class="ruby-keyword kw">end</span></pre>
|
315
|
-
</div>
|
316
|
-
</div>
|
317
|
-
|
318
|
-
</div>
|
319
|
-
|
320
|
-
</div>
|
321
|
-
</div>
|
322
|
-
</body>
|
323
|
-
</html>
|