doc/Ionian/Extension/Socket.html in ionian-0.6.6 vs doc/Ionian/Extension/Socket.html in ionian-0.6.7
- old
+ new
@@ -738,11 +738,11 @@
<li class="public ">
<span class="summary_signature">
- <a href="#linger%3D-instance_method" title="#linger= (instance method)">- (Object) <strong>linger=</strong>(value) </a>
+ <a href="#linger%3D-instance_method" title="#linger= (instance method)">- (Object) <strong>linger=</strong>(enable, time: 60) </a>
</span>
@@ -1039,16 +1039,16 @@
<tr>
<td>
<pre class="lines">
-276
-277
-278</pre>
+282
+283
+284</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/ionian/extension/socket.rb', line 276</span>
+ <pre class="code"><span class="info file"># File 'lib/ionian/extension/socket.rb', line 282</span>
<span class='kw'>def</span> <span class='id identifier rubyid_multicast'>multicast</span> <span class='id identifier rubyid_address'>address</span>
<span class='id identifier rubyid_address'>address</span> <span class='op'>>=</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>224.0.0.0</span><span class='tstring_end'>'</span></span> <span class='kw'>and</span> <span class='id identifier rubyid_address'>address</span> <span class='op'><=</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>239.255.255.255</span><span class='tstring_end'>'</span></span> <span class='op'>?</span> <span class='kw'>true</span> <span class='op'>:</span> <span class='kw'>false</span>
<span class='kw'>end</span></pre>
</td>
@@ -1080,16 +1080,16 @@
<tr>
<td>
<pre class="lines">
-280
-281
-282</pre>
+286
+287
+288</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/ionian/extension/socket.rb', line 280</span>
+ <pre class="code"><span class="info file"># File 'lib/ionian/extension/socket.rb', line 286</span>
<span class='kw'>def</span> <span class='id identifier rubyid_multicast'>multicast</span> <span class='id identifier rubyid_address'>address</span>
<span class='id identifier rubyid_address'>address</span> <span class='op'>>=</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>224.0.0.0</span><span class='tstring_end'>'</span></span> <span class='kw'>and</span> <span class='id identifier rubyid_address'>address</span> <span class='op'><=</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>239.255.255.255</span><span class='tstring_end'>'</span></span> <span class='op'>?</span> <span class='kw'>true</span> <span class='op'>:</span> <span class='kw'>false</span>
<span class='kw'>end</span></pre>
</td>
@@ -1224,18 +1224,18 @@
<tr>
<td>
<pre class="lines">
-118
-119
-120
-121
-122</pre>
+124
+125
+126
+127
+128</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/ionian/extension/socket.rb', line 118</span>
+ <pre class="code"><span class="info file"># File 'lib/ionian/extension/socket.rb', line 124</span>
<span class='kw'>def</span> <span class='id identifier rubyid_cork'>cork</span>
<span class='id identifier rubyid_param'>param</span> <span class='op'>=</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_getsockopt'>getsockopt</span><span class='lparen'>(</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='rparen'>)</span><span class='period'>
</span><span class='id identifier rubyid_ .data'> .data</span><span class='period'>.</span><span class='id identifier rubyid_unpack'>unpack</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><span class='period'>.</span><span class='id identifier rubyid_first'>first</span>
<span class='id identifier rubyid_param'>param</span> <span class='op'>></span> <span class='int'>0</span> <span class='op'>?</span> <span class='kw'>true</span> <span class='op'>:</span> <span class='kw'>false</span>
@@ -1272,17 +1272,17 @@
<tr>
<td>
<pre class="lines">
-134
-135
-136
-137</pre>
+140
+141
+142
+143</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/ionian/extension/socket.rb', line 134</span>
+ <pre class="code"><span class="info file"># File 'lib/ionian/extension/socket.rb', line 140</span>
<span class='kw'>def</span> <span class='id identifier rubyid_cork='>cork=</span> <span class='id identifier rubyid_value'>value</span>
<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>
<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>
<span class='kw'>end</span></pre>
@@ -1358,22 +1358,22 @@
<tr>
<td>
<pre class="lines">
-152
-153
-154
-155
-156
-157
158
159
-160</pre>
+160
+161
+162
+163
+164
+165
+166</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/ionian/extension/socket.rb', line 152</span>
+ <pre class="code"><span class="info file"># File 'lib/ionian/extension/socket.rb', line 158</span>
<span class='kw'>def</span> <span class='id identifier rubyid_ip_add_membership'>ip_add_membership</span> <span class='id identifier rubyid_address'>address</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='id identifier rubyid_interface'>interface</span> <span class='op'>=</span> <span class='kw'>nil</span>
<span class='id identifier rubyid_address'>address</span> <span class='op'>||=</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_remote_address'>remote_address</span><span class='period'>.</span><span class='id identifier rubyid_ip_address'>ip_address</span>
<span class='id identifier rubyid_interface'>interface</span> <span class='op'>||=</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>0.0.0.0</span><span class='tstring_end'>'</span></span>
@@ -1414,22 +1414,22 @@
<tr>
<td>
<pre class="lines">
-168
-169
-170
-171
-172
-173
174
175
-176</pre>
+176
+177
+178
+179
+180
+181
+182</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/ionian/extension/socket.rb', line 168</span>
+ <pre class="code"><span class="info file"># File 'lib/ionian/extension/socket.rb', line 174</span>
<span class='kw'>def</span> <span class='id identifier rubyid_ip_drop_membership'>ip_drop_membership</span> <span class='id identifier rubyid_address'>address</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='id identifier rubyid_interface'>interface</span> <span class='op'>=</span> <span class='kw'>nil</span>
<span class='id identifier rubyid_address'>address</span> <span class='op'>||=</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_remote_address'>remote_address</span><span class='period'>.</span><span class='id identifier rubyid_ip_address'>ip_address</span>
<span class='id identifier rubyid_interface'>interface</span> <span class='op'>||=</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>0.0.0.0</span><span class='tstring_end'>'</span></span>
@@ -1467,17 +1467,17 @@
<tr>
<td>
<pre class="lines">
-180
-181
-182
-183</pre>
+186
+187
+188
+189</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/ionian/extension/socket.rb', line 180</span>
+ <pre class="code"><span class="info file"># File 'lib/ionian/extension/socket.rb', line 186</span>
<span class='kw'>def</span> <span class='id identifier rubyid_ip_multicast_if'>ip_multicast_if</span>
<span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_getsockopt'>getsockopt</span><span class='lparen'>(</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_IF</span><span class='rparen'>)</span><span class='period'>
</span><span class='id identifier rubyid_ .data'> .data</span><span class='period'>.</span><span class='id identifier rubyid_unpack'>unpack</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>CCCC</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_join'>join</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>.</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span>
<span class='kw'>end</span></pre>
@@ -1510,21 +1510,21 @@
<tr>
<td>
<pre class="lines">
-187
-188
-189
-190
-191
-192
193
-194</pre>
+194
+195
+196
+197
+198
+199
+200</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/ionian/extension/socket.rb', line 187</span>
+ <pre class="code"><span class="info file"># File 'lib/ionian/extension/socket.rb', line 193</span>
<span class='kw'>def</span> <span class='id identifier rubyid_ip_multicast_if='>ip_multicast_if=</span> <span class='id identifier rubyid_interface'>interface</span> <span class='op'>=</span> <span class='kw'>nil</span>
<span class='id identifier rubyid_interface'>interface</span> <span class='op'>||=</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>0.0.0.0</span><span class='tstring_end'>'</span></span>
<span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_setsockopt'>setsockopt</span> \
@@ -1566,18 +1566,18 @@
<tr>
<td>
<pre class="lines">
-211
-212
-213
-214
-215</pre>
+217
+218
+219
+220
+221</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/ionian/extension/socket.rb', line 211</span>
+ <pre class="code"><span class="info file"># File 'lib/ionian/extension/socket.rb', line 217</span>
<span class='kw'>def</span> <span class='id identifier rubyid_ip_multicast_loop'>ip_multicast_loop</span>
<span class='id identifier rubyid_param'>param</span> <span class='op'>=</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_getsockopt'>getsockopt</span><span class='lparen'>(</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='rparen'>)</span><span class='period'>
</span><span class='id identifier rubyid_ .data'> .data</span><span class='period'>.</span><span class='id identifier rubyid_unpack'>unpack</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><span class='period'>.</span><span class='id identifier rubyid_first'>first</span>
<span class='id identifier rubyid_param'>param</span> <span class='op'>></span> <span class='int'>0</span> <span class='op'>?</span> <span class='kw'>true</span> <span class='op'>:</span> <span class='kw'>false</span>
@@ -1611,17 +1611,17 @@
<tr>
<td>
<pre class="lines">
-221
-222
-223
-224</pre>
+227
+228
+229
+230</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/ionian/extension/socket.rb', line 221</span>
+ <pre class="code"><span class="info file"># File 'lib/ionian/extension/socket.rb', line 227</span>
<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>
<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>
<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>
<span class='kw'>end</span></pre>
@@ -1655,17 +1655,17 @@
<tr>
<td>
<pre class="lines">
-198
-199
-200
-201</pre>
+204
+205
+206
+207</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/ionian/extension/socket.rb', line 198</span>
+ <pre class="code"><span class="info file"># File 'lib/ionian/extension/socket.rb', line 204</span>
<span class='kw'>def</span> <span class='id identifier rubyid_ip_multicast_ttl'>ip_multicast_ttl</span>
<span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_getsockopt'>getsockopt</span><span class='lparen'>(</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_TTL</span><span class='rparen'>)</span><span class='period'>
</span><span class='id identifier rubyid_ .data'> .data</span><span class='period'>.</span><span class='id identifier rubyid_unpack'>unpack</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><span class='period'>.</span><span class='id identifier rubyid_first'>first</span>
<span class='kw'>end</span></pre>
@@ -1699,16 +1699,16 @@
<tr>
<td>
<pre class="lines">
-205
-206
-207</pre>
+211
+212
+213</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/ionian/extension/socket.rb', line 205</span>
+ <pre class="code"><span class="info file"># File 'lib/ionian/extension/socket.rb', line 211</span>
<span class='kw'>def</span> <span class='id identifier rubyid_ip_multicast_ttl='>ip_multicast_ttl=</span> <span class='id identifier rubyid_value'>value</span>
<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_TTL</span><span class='comma'>,</span> <span class='lbracket'>[</span><span class='id identifier rubyid_value'>value</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>
<span class='kw'>end</span></pre>
</td>
@@ -1740,17 +1740,17 @@
<tr>
<td>
<pre class="lines">
-227
-228
-229
-230</pre>
+233
+234
+235
+236</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/ionian/extension/socket.rb', line 227</span>
+ <pre class="code"><span class="info file"># File 'lib/ionian/extension/socket.rb', line 233</span>
<span class='kw'>def</span> <span class='id identifier rubyid_ipv6_add_membership'>ipv6_add_membership</span>
<span class='comment'># TODO: Implement
</span> <span class='kw'>false</span>
<span class='kw'>end</span></pre>
@@ -1783,17 +1783,17 @@
<tr>
<td>
<pre class="lines">
-233
-234
-235
-236</pre>
+239
+240
+241
+242</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/ionian/extension/socket.rb', line 233</span>
+ <pre class="code"><span class="info file"># File 'lib/ionian/extension/socket.rb', line 239</span>
<span class='kw'>def</span> <span class='id identifier rubyid_ipv6_drop_membership'>ipv6_drop_membership</span>
<span class='comment'># TODO: Implement
</span> <span class='kw'>false</span>
<span class='kw'>end</span></pre>
@@ -1826,17 +1826,17 @@
<tr>
<td>
<pre class="lines">
-250
-251
-252
-253</pre>
+256
+257
+258
+259</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/ionian/extension/socket.rb', line 250</span>
+ <pre class="code"><span class="info file"># File 'lib/ionian/extension/socket.rb', line 256</span>
<span class='kw'>def</span> <span class='id identifier rubyid_ipv6_multicast_hops'>ipv6_multicast_hops</span>
<span class='comment'># TODO: Implement
</span> <span class='kw'>false</span>
<span class='kw'>end</span></pre>
@@ -1869,16 +1869,16 @@
<tr>
<td>
<pre class="lines">
-256
-257
-258</pre>
+262
+263
+264</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/ionian/extension/socket.rb', line 256</span>
+ <pre class="code"><span class="info file"># File 'lib/ionian/extension/socket.rb', line 262</span>
<span class='kw'>def</span> <span class='id identifier rubyid_ipv6_multicast_hops='>ipv6_multicast_hops=</span> <span class='id identifier rubyid_value'>value</span>
<span class='comment'># TODO: Implement
</span><span class='kw'>end</span></pre>
</td>
@@ -1910,17 +1910,17 @@
<tr>
<td>
<pre class="lines">
-239
-240
-241
-242</pre>
+245
+246
+247
+248</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/ionian/extension/socket.rb', line 239</span>
+ <pre class="code"><span class="info file"># File 'lib/ionian/extension/socket.rb', line 245</span>
<span class='kw'>def</span> <span class='id identifier rubyid_ipv6_multicast_if'>ipv6_multicast_if</span>
<span class='comment'># TODO: Implement
</span> <span class='kw'>false</span>
<span class='kw'>end</span></pre>
@@ -1953,16 +1953,16 @@
<tr>
<td>
<pre class="lines">
-245
-246
-247</pre>
+251
+252
+253</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/ionian/extension/socket.rb', line 245</span>
+ <pre class="code"><span class="info file"># File 'lib/ionian/extension/socket.rb', line 251</span>
<span class='kw'>def</span> <span class='id identifier rubyid_ipv6_multicast_if='>ipv6_multicast_if=</span> <span class='id identifier rubyid_value'>value</span>
<span class='comment'># TODO: Implement
</span><span class='kw'>end</span></pre>
</td>
@@ -1998,17 +1998,17 @@
<tr>
<td>
<pre class="lines">
-261
-262
-263
-264</pre>
+267
+268
+269
+270</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/ionian/extension/socket.rb', line 261</span>
+ <pre class="code"><span class="info file"># File 'lib/ionian/extension/socket.rb', line 267</span>
<span class='kw'>def</span> <span class='id identifier rubyid_ipv6_multicast_loop'>ipv6_multicast_loop</span>
<span class='comment'># TODO: Implement
</span> <span class='kw'>false</span>
<span class='kw'>end</span></pre>
@@ -2041,16 +2041,16 @@
<tr>
<td>
<pre class="lines">
-269
-270
-271</pre>
+275
+276
+277</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/ionian/extension/socket.rb', line 269</span>
+ <pre class="code"><span class="info file"># File 'lib/ionian/extension/socket.rb', line 275</span>
<span class='kw'>def</span> <span class='id identifier rubyid_ipv6_multicast_loop='>ipv6_multicast_loop=</span> <span class='id identifier rubyid_value'>value</span>
<span class='comment'># TODO: Implement
</span><span class='kw'>end</span></pre>
</td>
@@ -2110,24 +2110,31 @@
</div>
<div class="method_details ">
<h3 class="signature " id="linger=-instance_method">
- - (<tt>Object</tt>) <strong>linger=</strong>(value)
+ - (<tt>Object</tt>) <strong>linger=</strong>(enable, time: 60)
</h3><div class="docstring">
<div class="discussion">
<p>For connection-oriented protocols, prevent #close from returning
immediately and try to deliver any data in the send buffer if value is
-true. ( SO_LINGER )</p>
+true.</p>
+<p>Args:</p>
+<pre class="code ruby"><code class="ruby">Time: Time in seconds to remain open before discarding data and
+ sending a RST packet.</code></pre>
+
+<p>( SO_LINGER )</p>
+
+
</div>
</div>
<div class="tags">
@@ -2135,21 +2142,25 @@
<tr>
<td>
<pre class="lines">
-58
-59
-60
-61</pre>
+62
+63
+64
+65
+66
+67</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/ionian/extension/socket.rb', line 58</span>
+ <pre class="code"><span class="info file"># File 'lib/ionian/extension/socket.rb', line 62</span>
-<span class='kw'>def</span> <span class='id identifier rubyid_linger='>linger=</span> <span class='id identifier rubyid_value'>value</span>
- <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>
- <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='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>
+<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>
+ <span class='comment'># TODO: Passing a kwarg doesn't work here because of the
+</span> <span class='comment'># assignment operator. Causes parser error.
+</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>
+ <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>
<span class='kw'>end</span></pre>
</td>
</tr>
</table>
</div>
@@ -2182,16 +2193,16 @@
<tr>
<td>
<pre class="lines">
-284
-285
-286</pre>
+290
+291
+292</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/ionian/extension/socket.rb', line 284</span>
+ <pre class="code"><span class="info file"># File 'lib/ionian/extension/socket.rb', line 290</span>
<span class='kw'>def</span> <span class='id identifier rubyid_multicast'>multicast</span>
<span class='const'>Ionian</span><span class='op'>::</span><span class='const'>Extension</span><span class='op'>::</span><span class='const'>Socket</span><span class='period'>.</span><span class='id identifier rubyid_multicast'>multicast</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_remote_address'>remote_address</span><span class='period'>.</span><span class='id identifier rubyid_ip_address'>ip_address</span>
<span class='kw'>end</span></pre>
</td>
@@ -2227,18 +2238,18 @@
<tr>
<td>
<pre class="lines">
-99
-100
-101
-102
-103</pre>
+105
+106
+107
+108
+109</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/ionian/extension/socket.rb', line 99</span>
+ <pre class="code"><span class="info file"># File 'lib/ionian/extension/socket.rb', line 105</span>
<span class='kw'>def</span> <span class='id identifier rubyid_no_delay'>no_delay</span>
<span class='id identifier rubyid_param'>param</span> <span class='op'>=</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_getsockopt'>getsockopt</span><span class='lparen'>(</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='rparen'>)</span><span class='period'>
</span><span class='id identifier rubyid_ .data'> .data</span><span class='period'>.</span><span class='id identifier rubyid_unpack'>unpack</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><span class='period'>.</span><span class='id identifier rubyid_first'>first</span>
<span class='id identifier rubyid_param'>param</span> <span class='op'>></span> <span class='int'>0</span> <span class='op'>?</span> <span class='kw'>true</span> <span class='op'>:</span> <span class='kw'>false</span>
@@ -2272,17 +2283,17 @@
<tr>
<td>
<pre class="lines">
-109
-110
-111
-112</pre>
+115
+116
+117
+118</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/ionian/extension/socket.rb', line 109</span>
+ <pre class="code"><span class="info file"># File 'lib/ionian/extension/socket.rb', line 115</span>
<span class='kw'>def</span> <span class='id identifier rubyid_no_delay='>no_delay=</span> <span class='id identifier rubyid_value'>value</span>
<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>
<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>
<span class='kw'>end</span></pre>
@@ -2315,17 +2326,17 @@
<tr>
<td>
<pre class="lines">
-141
-142
-143
-144</pre>
+147
+148
+149
+150</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/ionian/extension/socket.rb', line 141</span>
+ <pre class="code"><span class="info file"># File 'lib/ionian/extension/socket.rb', line 147</span>
<span class='kw'>def</span> <span class='id identifier rubyid_recork'>recork</span>
<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='int'>0</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>
<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='int'>1</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>
<span class='kw'>end</span></pre>
@@ -2362,18 +2373,18 @@
<tr>
<td>
<pre class="lines">
-67
-68
-69
-70
-71</pre>
+73
+74
+75
+76
+77</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/ionian/extension/socket.rb', line 67</span>
+ <pre class="code"><span class="info file"># File 'lib/ionian/extension/socket.rb', line 73</span>
<span class='kw'>def</span> <span class='id identifier rubyid_reuse_addr'>reuse_addr</span>
<span class='id identifier rubyid_param'>param</span> <span class='op'>=</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_getsockopt'>getsockopt</span><span class='lparen'>(</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='rparen'>)</span><span class='period'>
</span><span class='id identifier rubyid_ .data'> .data</span><span class='period'>.</span><span class='id identifier rubyid_unpack'>unpack</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><span class='period'>.</span><span class='id identifier rubyid_first'>first</span>
<span class='id identifier rubyid_param'>param</span> <span class='op'>></span> <span class='int'>0</span> <span class='op'>?</span> <span class='kw'>true</span> <span class='op'>:</span> <span class='kw'>false</span>
@@ -2407,17 +2418,17 @@
<tr>
<td>
<pre class="lines">
-77
-78
-79
-80</pre>
+83
+84
+85
+86</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/ionian/extension/socket.rb', line 77</span>
+ <pre class="code"><span class="info file"># File 'lib/ionian/extension/socket.rb', line 83</span>
<span class='kw'>def</span> <span class='id identifier rubyid_reuse_addr='>reuse_addr=</span> <span class='id identifier rubyid_value'>value</span>
<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>
<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>
<span class='kw'>end</span></pre>
@@ -2454,17 +2465,17 @@
<tr>
<td>
<pre class="lines">
-84
-85
-86
-87</pre>
+90
+91
+92
+93</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/ionian/extension/socket.rb', line 84</span>
+ <pre class="code"><span class="info file"># File 'lib/ionian/extension/socket.rb', line 90</span>
<span class='kw'>def</span> <span class='id identifier rubyid_ttl'>ttl</span>
<span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_getsockopt'>getsockopt</span><span class='lparen'>(</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_TTL</span><span class='rparen'>)</span><span class='period'>
</span><span class='id identifier rubyid_ .data'> .data</span><span class='period'>.</span><span class='id identifier rubyid_unpack'>unpack</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><span class='period'>.</span><span class='id identifier rubyid_first'>first</span>
<span class='kw'>end</span></pre>
@@ -2497,16 +2508,16 @@
<tr>
<td>
<pre class="lines">
-93
-94
-95</pre>
+99
+100
+101</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/ionian/extension/socket.rb', line 93</span>
+ <pre class="code"><span class="info file"># File 'lib/ionian/extension/socket.rb', line 99</span>
<span class='kw'>def</span> <span class='id identifier rubyid_ttl='>ttl=</span> <span class='id identifier rubyid_value'>value</span>
<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_TTL</span><span class='comma'>,</span> <span class='lbracket'>[</span><span class='id identifier rubyid_value'>value</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>
<span class='kw'>end</span></pre>
</td>
@@ -2517,10 +2528,10 @@
</div>
</div>
<div id="footer">
- Generated on Sat Apr 12 13:24:31 2014 by
+ Generated on Sun Apr 13 09:26:35 2014 by
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.8.7.4 (ruby-2.1.1).
</div>
</body>
\ No newline at end of file