autodoc.git/
traditional_manual/
chapter_9.html
Branch:
Tag:
Non-build tags
All tags
No tags
2004-05-13
2004-05-13 17:53:44 by H. William Welliver III <bill@welliver.org>
ddcb812fde7aaa53e63ca77342862aad2b5f3d41 (
26
lines) (+
26
/-
0
)
[
Show
|
Annotate
]
Branch:
7.6
Tags:
v7.6.8
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>