Branch: Tag:

2004-05-13

2004-05-13 17:53:44 by H. William Welliver III <bill@welliver.org>

backport of Stdio.Port()->bind_unix() from 7.7

Rev: src/modules/files/socket.c:1.87

1848:   <hr />   <dl class='group--doc'>   <dt class='head--type'><span class='homogen--type'>Method</span> + <span class='homogen--name'><b>bind_unix</b></span> + </dt> + <dd><p><code><code class='datatype'>int</code> <b><span class='method'>bind_unix</span>(</b><code class='datatype'>string</code> <code class='argument'>path</code>, <code class='datatype'>void</code>|<code class='datatype'>function</code>(:<code class='datatype void'>void</code>) <code class='argument'>accept_callback</code><b>)</b></code></p></dd> +  + <dt class='head--doc'>Description</dt> + <dd class='body--doc'><p>Bind opens a Unix domain socket at the filesystem location path. +  If the second argument is present, the socket is set to nonblocking +  and the callback funcition is called whenever something connects to +  it. The callback will receive the id for this port as argument.</p> + </dd> + <dt class='head--doc'>Returns</dt> + <dd class='body--doc'><p>1 on success, and zero on failiure.</p> + </dd> + <dt class='head--doc'>Note</dt> + <dd class='body--doc'><p>this function is only available on systems that support Unix domain +  sockets.</p> + </dd> + <dt class='head--doc'>See also</dt> + <dd class='body--doc'><p><code>accept</code></p> + </dd></dl> +  +  + <hr /> + <dl class='group--doc'> + <dt class='head--type'><span class='homogen--type'>Method</span>   <span class='homogen--name'><b>close</b></span>   </dt>   <dd><p><code><code class='datatype'>void</code> <b><span class='method'>close</span>(</b><b>)</b></code></p></dd>