ionian 0.6.8 → 0.6.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/doc/Ionian/Extension/IO.html +253 -89
- data/doc/Ionian/Extension/Socket.html +9 -9
- data/doc/Ionian/Extension.html +3 -3
- data/doc/Ionian/Server.html +3 -3
- data/doc/Ionian/Socket.html +464 -149
- data/doc/Ionian.html +3 -3
- data/doc/_index.html +4 -4
- data/doc/class_list.html +5 -1
- data/doc/file.README.html +25 -24
- data/doc/file.license.html +4 -4
- data/doc/file_list.html +5 -1
- data/doc/frames.html +1 -1
- data/doc/index.html +25 -24
- data/doc/js/full_list.js +4 -1
- data/doc/method_list.html +5 -1
- data/doc/top-level-namespace.html +3 -3
- data/lib/ionian/extension/io.rb +44 -29
- data/lib/ionian/extension/socket.rb +6 -6
- data/lib/ionian/socket.rb +79 -27
- data/license.txt +1 -1
- metadata +32 -4
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
Module: Ionian::Extension::Socket
|
8
8
|
|
9
|
-
— Documentation by YARD 0.8.7.
|
9
|
+
— Documentation by YARD 0.8.7.6
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -1187,7 +1187,7 @@ true.</p>
|
|
1187
1187
|
<pre class="code"><span class="info file"># File 'lib/ionian/extension/socket.rb', line 37</span>
|
1188
1188
|
|
1189
1189
|
<span class='kw'>def</span> <span class='id identifier rubyid_broadcast='>broadcast=</span> <span class='id identifier rubyid_value'>value</span>
|
1190
|
-
<span class='id identifier rubyid_param'>param</span> <span class='op'>=</span> <span class='id identifier rubyid_value'>value</span> <span class='op'>?</span> <span class='int'>1</span> <span class='op'>:</span> <span class='int'>0</span>
|
1190
|
+
<span class='id identifier rubyid_param'>param</span> <span class='op'>=</span> <span class='lparen'>(</span><span class='op'>!</span><span class='op'>!</span><span class='id identifier rubyid_value'>value</span> <span class='op'>&&</span> <span class='id identifier rubyid_value'>value</span> <span class='op'>!=</span> <span class='int'>0</span><span class='rparen'>)</span> <span class='op'>?</span> <span class='int'>1</span> <span class='op'>:</span> <span class='int'>0</span>
|
1191
1191
|
<span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_setsockopt'>setsockopt</span> <span class='op'>::</span><span class='const'>Socket</span><span class='op'>::</span><span class='const'>SOL_SOCKET</span><span class='comma'>,</span> <span class='op'>::</span><span class='const'>Socket</span><span class='op'>::</span><span class='const'>SO_BROADCAST</span><span class='comma'>,</span> <span class='lbracket'>[</span><span class='id identifier rubyid_param'>param</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_pack'>pack</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>i</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span>
|
1192
1192
|
<span class='kw'>end</span></pre>
|
1193
1193
|
</td>
|
@@ -1283,7 +1283,7 @@ corked byte is written. See #recork. Linux only. ( TCP_CORK )</p>
|
|
1283
1283
|
<pre class="code"><span class="info file"># File 'lib/ionian/extension/socket.rb', line 140</span>
|
1284
1284
|
|
1285
1285
|
<span class='kw'>def</span> <span class='id identifier rubyid_cork='>cork=</span> <span class='id identifier rubyid_value'>value</span>
|
1286
|
-
<span class='id identifier rubyid_param'>param</span> <span class='op'>=</span> <span class='id identifier rubyid_value'>value</span> <span class='op'>?</span> <span class='int'>1</span> <span class='op'>:</span> <span class='int'>0</span>
|
1286
|
+
<span class='id identifier rubyid_param'>param</span> <span class='op'>=</span> <span class='lparen'>(</span><span class='op'>!</span><span class='op'>!</span><span class='id identifier rubyid_value'>value</span> <span class='op'>&&</span> <span class='id identifier rubyid_value'>value</span> <span class='op'>!=</span> <span class='int'>0</span><span class='rparen'>)</span> <span class='op'>?</span> <span class='int'>1</span> <span class='op'>:</span> <span class='int'>0</span>
|
1287
1287
|
<span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_setsockopt'>setsockopt</span> <span class='op'>::</span><span class='const'>Socket</span><span class='op'>::</span><span class='const'>IPPROTO_TCP</span><span class='comma'>,</span> <span class='op'>::</span><span class='const'>Socket</span><span class='op'>::</span><span class='const'>TCP_CORK</span><span class='comma'>,</span> <span class='lbracket'>[</span><span class='id identifier rubyid_param'>param</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_pack'>pack</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>i</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span>
|
1288
1288
|
<span class='kw'>end</span></pre>
|
1289
1289
|
</td>
|
@@ -1622,7 +1622,7 @@ IP_MULTICAST_LOOP )</p>
|
|
1622
1622
|
<pre class="code"><span class="info file"># File 'lib/ionian/extension/socket.rb', line 227</span>
|
1623
1623
|
|
1624
1624
|
<span class='kw'>def</span> <span class='id identifier rubyid_ip_multicast_loop='>ip_multicast_loop=</span> <span class='id identifier rubyid_value'>value</span>
|
1625
|
-
<span class='id identifier rubyid_param'>param</span> <span class='op'>=</span> <span class='id identifier rubyid_value'>value</span> <span class='op'>?</span> <span class='int'>1</span> <span class='op'>:</span> <span class='int'>0</span>
|
1625
|
+
<span class='id identifier rubyid_param'>param</span> <span class='op'>=</span> <span class='lparen'>(</span><span class='op'>!</span><span class='op'>!</span><span class='id identifier rubyid_value'>value</span> <span class='op'>&&</span> <span class='id identifier rubyid_value'>value</span> <span class='op'>!=</span> <span class='int'>0</span><span class='rparen'>)</span> <span class='op'>?</span> <span class='int'>1</span> <span class='op'>:</span> <span class='int'>0</span>
|
1626
1626
|
<span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_setsockopt'>setsockopt</span> <span class='op'>::</span><span class='const'>Socket</span><span class='op'>::</span><span class='const'>IPPROTO_IP</span><span class='comma'>,</span> <span class='op'>::</span><span class='const'>Socket</span><span class='op'>::</span><span class='const'>IP_MULTICAST_LOOP</span><span class='comma'>,</span> <span class='lbracket'>[</span><span class='id identifier rubyid_param'>param</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_pack'>pack</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>C</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span>
|
1627
1627
|
<span class='kw'>end</span></pre>
|
1628
1628
|
</td>
|
@@ -2157,7 +2157,7 @@ true.</p>
|
|
2157
2157
|
<span class='kw'>def</span> <span class='id identifier rubyid_linger='>linger=</span> <span class='id identifier rubyid_enable'>enable</span><span class='comma'>,</span> <span class='label'>time:</span> <span class='int'>60</span>
|
2158
2158
|
<span class='comment'># TODO: Passing a kwarg doesn't work here because of the
|
2159
2159
|
</span> <span class='comment'># assignment operator. Causes parser error.
|
2160
|
-
</span> <span class='id identifier rubyid_param'>param</span> <span class='op'>=</span> <span class='id identifier rubyid_enable'>enable</span> <span class='op'>?</span> <span class='int'>1</span> <span class='op'>:</span> <span class='int'>0</span>
|
2160
|
+
</span> <span class='id identifier rubyid_param'>param</span> <span class='op'>=</span> <span class='lparen'>(</span><span class='op'>!</span><span class='op'>!</span><span class='id identifier rubyid_enable'>enable</span> <span class='op'>&&</span> <span class='id identifier rubyid_enable'>enable</span> <span class='op'>!=</span> <span class='int'>0</span><span class='rparen'>)</span> <span class='op'>?</span> <span class='int'>1</span> <span class='op'>:</span> <span class='int'>0</span>
|
2161
2161
|
<span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_setsockopt'>setsockopt</span> <span class='op'>::</span><span class='const'>Socket</span><span class='op'>::</span><span class='const'>SOL_SOCKET</span><span class='comma'>,</span> <span class='op'>::</span><span class='const'>Socket</span><span class='op'>::</span><span class='const'>SO_LINGER</span><span class='comma'>,</span> <span class='lbracket'>[</span><span class='id identifier rubyid_param'>param</span><span class='comma'>,</span> <span class='id identifier rubyid_time'>time</span><span class='period'>.</span><span class='id identifier rubyid_to_i'>to_i</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_pack'>pack</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>ii</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span>
|
2162
2162
|
<span class='kw'>end</span></pre>
|
2163
2163
|
</td>
|
@@ -2294,7 +2294,7 @@ true.</p>
|
|
2294
2294
|
<pre class="code"><span class="info file"># File 'lib/ionian/extension/socket.rb', line 115</span>
|
2295
2295
|
|
2296
2296
|
<span class='kw'>def</span> <span class='id identifier rubyid_no_delay='>no_delay=</span> <span class='id identifier rubyid_value'>value</span>
|
2297
|
-
<span class='id identifier rubyid_param'>param</span> <span class='op'>=</span> <span class='id identifier rubyid_value'>value</span> <span class='op'>?</span> <span class='int'>1</span> <span class='op'>:</span> <span class='int'>0</span>
|
2297
|
+
<span class='id identifier rubyid_param'>param</span> <span class='op'>=</span> <span class='lparen'>(</span><span class='op'>!</span><span class='op'>!</span><span class='id identifier rubyid_value'>value</span> <span class='op'>&&</span> <span class='id identifier rubyid_value'>value</span> <span class='op'>!=</span> <span class='int'>0</span><span class='rparen'>)</span> <span class='op'>?</span> <span class='int'>1</span> <span class='op'>:</span> <span class='int'>0</span>
|
2298
2298
|
<span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_setsockopt'>setsockopt</span> <span class='op'>::</span><span class='const'>Socket</span><span class='op'>::</span><span class='const'>IPPROTO_TCP</span><span class='comma'>,</span> <span class='op'>::</span><span class='const'>Socket</span><span class='op'>::</span><span class='const'>TCP_NODELAY</span><span class='comma'>,</span> <span class='lbracket'>[</span><span class='id identifier rubyid_param'>param</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_pack'>pack</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>i</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span>
|
2299
2299
|
<span class='kw'>end</span></pre>
|
2300
2300
|
</td>
|
@@ -2429,7 +2429,7 @@ true.</p>
|
|
2429
2429
|
<pre class="code"><span class="info file"># File 'lib/ionian/extension/socket.rb', line 83</span>
|
2430
2430
|
|
2431
2431
|
<span class='kw'>def</span> <span class='id identifier rubyid_reuse_addr='>reuse_addr=</span> <span class='id identifier rubyid_value'>value</span>
|
2432
|
-
<span class='id identifier rubyid_param'>param</span> <span class='op'>=</span> <span class='id identifier rubyid_value'>value</span> <span class='op'>?</span> <span class='int'>1</span> <span class='op'>:</span> <span class='int'>0</span>
|
2432
|
+
<span class='id identifier rubyid_param'>param</span> <span class='op'>=</span> <span class='lparen'>(</span><span class='op'>!</span><span class='op'>!</span><span class='id identifier rubyid_value'>value</span> <span class='op'>&&</span> <span class='id identifier rubyid_value'>value</span> <span class='op'>!=</span> <span class='int'>0</span><span class='rparen'>)</span> <span class='op'>?</span> <span class='int'>1</span> <span class='op'>:</span> <span class='int'>0</span>
|
2433
2433
|
<span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_setsockopt'>setsockopt</span> <span class='op'>::</span><span class='const'>Socket</span><span class='op'>::</span><span class='const'>SOL_SOCKET</span><span class='comma'>,</span> <span class='op'>::</span><span class='const'>Socket</span><span class='op'>::</span><span class='const'>SO_REUSEADDR</span><span class='comma'>,</span> <span class='lbracket'>[</span><span class='id identifier rubyid_param'>param</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_pack'>pack</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>i</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span>
|
2434
2434
|
<span class='kw'>end</span></pre>
|
2435
2435
|
</td>
|
@@ -2530,9 +2530,9 @@ true.</p>
|
|
2530
2530
|
</div>
|
2531
2531
|
|
2532
2532
|
<div id="footer">
|
2533
|
-
Generated on
|
2533
|
+
Generated on Fri Oct 31 15:50:43 2014 by
|
2534
2534
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
2535
|
-
0.8.7.
|
2535
|
+
0.8.7.6 (ruby-2.1.4).
|
2536
2536
|
</div>
|
2537
2537
|
|
2538
2538
|
</body>
|
data/doc/Ionian/Extension.html
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
Module: Ionian::Extension
|
8
8
|
|
9
|
-
— Documentation by YARD 0.8.7.
|
9
|
+
— Documentation by YARD 0.8.7.6
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -119,9 +119,9 @@
|
|
119
119
|
</div>
|
120
120
|
|
121
121
|
<div id="footer">
|
122
|
-
Generated on
|
122
|
+
Generated on Fri Oct 31 15:50:43 2014 by
|
123
123
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
124
|
-
0.8.7.
|
124
|
+
0.8.7.6 (ruby-2.1.4).
|
125
125
|
</div>
|
126
126
|
|
127
127
|
</body>
|
data/doc/Ionian/Server.html
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
Class: Ionian::Server
|
8
8
|
|
9
|
-
— Documentation by YARD 0.8.7.
|
9
|
+
— Documentation by YARD 0.8.7.6
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -930,9 +930,9 @@ connected client is passed to the block as an Ionain::Client.</p>
|
|
930
930
|
</div>
|
931
931
|
|
932
932
|
<div id="footer">
|
933
|
-
Generated on
|
933
|
+
Generated on Fri Oct 31 15:50:44 2014 by
|
934
934
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
935
|
-
0.8.7.
|
935
|
+
0.8.7.6 (ruby-2.1.4).
|
936
936
|
</div>
|
937
937
|
|
938
938
|
</body>
|