Sha256: 4d69919a4cad461360673690230b6ad94d03ba761ab1fee0a51846687b3be455
Contents?: true
Size: 1.3 KB
Versions: 1
Compression:
Stored size: 1.3 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>peeraddr (Rev::TCPSocket::TCPConnectSocket)</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/socket.rb, line 153</span> 153: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">peeraddr</span> 154: [ 155: <span class="ruby-ivar">@address_family</span> <span class="ruby-operator">==</span> <span class="ruby-operator">::</span><span class="ruby-constant">Socket</span><span class="ruby-operator">::</span><span class="ruby-constant">AF_INET</span> <span class="ruby-value">? </span><span class="ruby-value str">'AF_INET'</span> <span class="ruby-operator">:</span> <span class="ruby-value str">'AF_INET6'</span>, 156: <span class="ruby-ivar">@port</span>, 157: <span class="ruby-ivar">@host</span>, 158: <span class="ruby-ivar">@addr</span> 159: ] 160: <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/TCPSocket/TCPConnectSocket.src/M000064.html |