autodoc.git/
traditional_manual/
chapter_9.html
Branch:
Tag:
Non-build tags
All tags
No tags
2004-04-04
2004-04-04 23:56:57 by Martin Stjernholm <mast@lysator.liu.se>
6369939cfbac8bd12250ace5d6df824a6468cf76 (
14
lines) (+
8
/-
6
)
[
Show
|
Annotate
]
Branch:
8.0
Improved doc.
Rev: lib/modules/Stdio.pmod/module.pmod:1.194
1187:
<dd class='body--doc'><p>Callbacks are also set by <code>set_nonblocking()</code>.</p> </dd> <dt class='head--doc'>Note</dt>
-
<dd class='body--doc'><p>
The
callbacks
are
disabled until
they
have
accessed the stream,
-
i.e. the <code>write_cb</code> callback is disabled until something has
-
been written with <code>write</code>, and the <code>write_oob_cb</code> callback is
-
disabled until something has been written with <code>write_oob</code>.
-
Since the
read
callbacks
get
the
data
right
away
, this effect is
-
not noticeable for them.</p>
+
<dd class='body--doc'><p>
After
a
callback
has been called, it's
disabled until
it
has
+
accessed the stream
accordingly
, i.e. the <code>write_cb</code> callback
+
is disabled
after it's been called
until something has been
+
written with <code>write</code>, and the <code>write_oob_cb</code> callback is
+
likewise
disabled until something has been written with
+
<code>write_oob</code>. Since the
data already has been
read
when
the
read
+
callbacks
are called
, this effect is not noticeable for them.</p>
</dd> <dt class='head--doc'>Note</dt> <dd class='body--doc'><p>Installing callbacks means that you will start doing I/O on the