Sha256: 98500edc07a3b1dd326a7f5f10761ff4eecd96fca3c4c39ef95887fb6f8a3a05
Contents?: true
Size: 1.49 KB
Versions: 1
Compression:
Stored size: 1.49 KB
Contents
<?xml version="1.0" encoding="iso-8859-1"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> <title>on_readable (Rev::DNSResolver)</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" /> </head> <body class="standalone-code"> <pre> <span class="ruby-comment cmt"># File lib/rev/dns_resolver.rb, line 105</span> 105: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">on_readable</span> 106: <span class="ruby-identifier">datagram</span> = <span class="ruby-ivar">@socket</span>.<span class="ruby-identifier">recvfrom_nonblock</span>(<span class="ruby-constant">DATAGRAM_SIZE</span>).<span class="ruby-identifier">first</span> 107: <span class="ruby-identifier">address</span> = <span class="ruby-identifier">response_address</span> <span class="ruby-identifier">datagram</span> <span class="ruby-keyword kw">rescue</span> <span class="ruby-keyword kw">nil</span> 108: <span class="ruby-identifier">address</span> <span class="ruby-value">? </span><span class="ruby-identifier">on_success</span>(<span class="ruby-identifier">address</span>) <span class="ruby-operator">:</span> <span class="ruby-identifier">on_failure</span> 109: <span class="ruby-identifier">detach</span> 110: <span class="ruby-keyword kw">end</span></pre> </body> </html>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rev-0.1.2 | doc/rdoc/classes/Rev/DNSResolver.src/M000132.html |