Sha256: 2aac0c990bd1f9037ff820983e64a2f279d108a4224d01a67689cc83e62ffb08
Contents?: true
Size: 1.96 KB
Versions: 1
Compression:
Stored size: 1.96 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>request_message (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 125</span> 125: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">request_message</span> 126: <span class="ruby-comment cmt"># Standard query header</span> 127: <span class="ruby-identifier">message</span> = [<span class="ruby-value">2</span>, <span class="ruby-value">1</span>, <span class="ruby-value">0</span>].<span class="ruby-identifier">pack</span>(<span class="ruby-value str">'nCC'</span>) 128: 129: <span class="ruby-comment cmt"># One entry</span> 130: <span class="ruby-identifier">qdcount</span> = <span class="ruby-value">1</span> 131: 132: <span class="ruby-comment cmt"># No answer, authority, or additional records</span> 133: <span class="ruby-identifier">ancount</span> = <span class="ruby-identifier">nscount</span> = <span class="ruby-identifier">arcount</span> = <span class="ruby-value">0</span> 134: 135: <span class="ruby-identifier">message</span> <span class="ruby-operator"><<</span> [<span class="ruby-identifier">qdcount</span>, <span class="ruby-identifier">ancount</span>, <span class="ruby-identifier">nscount</span>, <span class="ruby-identifier">arcount</span>].<span class="ruby-identifier">pack</span>(<span class="ruby-value str">'nnnn'</span>) 136: <span class="ruby-identifier">message</span> <span class="ruby-operator"><<</span> <span class="ruby-ivar">@question</span> 137: <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/M000134.html |