Branch: Tag:

2017-02-12

2017-02-12 08:41:49 by Chris Angelico <rosuav@gmail.com>

Mention the equivalence of Port("stdin") and listen_fd

1335:    be passed to <code>bind()</code>.</p>   <p> When create is called with <code class='expr'>"stdin"</code> as the first argument, a    socket is created out of the file descriptor <code class='expr'>0</code>. This is only -  useful if it actually is a socket to begin with.</p> +  useful if it actually is a socket to begin with, and is equivalent to +  creating a port and initializing it with <code>listen_fd</code>(0).</p>   </dd>   <dt class='head--doc'>See also</dt>   <dd class='body--doc'><p><code>bind</code></p>
1356:    with the same arguments.</p>   <p> When called with <code class='expr'>"stdin"</code> as argument, a socket is created    out of the file descriptor 0. This is only useful if that actually -  IS a socket to begin with.</p> +  IS a socket to begin with, and is equivalent to creating a port and +  initializing it with <code>listen_fd</code>(0).</p>   </dd>   <dt class='head--doc'>See also</dt>   <dd class='body--doc'><p><code>bind</code>, <code>listen_fd</code></p>