Sha256: 2f8fca32b4e6b3b09909a4553689dc7b46742152dad032404a528d4e04770dd5

Contents?: true

Size: 1.92 KB

Versions: 1

Compression:

Stored size: 1.92 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>new (Rev::TCPListener)</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/listener.rb, line 49</span>
49:     <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">addr</span>, <span class="ruby-identifier">port</span>, <span class="ruby-identifier">options</span> = {})
50:       <span class="ruby-constant">BasicSocket</span>.<span class="ruby-identifier">do_not_reverse_lookup</span> = <span class="ruby-keyword kw">true</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">options</span>[<span class="ruby-identifier">:reverse_lookup</span>]
51:       <span class="ruby-identifier">options</span>[<span class="ruby-identifier">:backlog</span>] <span class="ruby-operator">||=</span> <span class="ruby-constant">DEFAULT_BACKLOG</span>
52:       
53:       <span class="ruby-identifier">listen_socket</span> = <span class="ruby-operator">::</span><span class="ruby-constant">TCPServer</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">addr</span>, <span class="ruby-identifier">port</span>)
54:       <span class="ruby-identifier">listen_socket</span>.<span class="ruby-identifier">instance_eval</span> { <span class="ruby-identifier">listen</span>(<span class="ruby-identifier">options</span>[<span class="ruby-identifier">:backlog</span>]) }
55:       <span class="ruby-keyword kw">super</span>(<span class="ruby-identifier">listen_socket</span>)
56:     <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/TCPListener.src/M000069.html