class type async_out_channel =object
..end
raw_out_channel
, which is
defined by the Ocamlnet module Netchannels
(see there for an
introduction into the idea of using objects as I/O channels).
An asynchronous channel can indicate that there is no space in the
output buffer. Furthermore, one can request notification in the case
that there is no space or again space in the output buffer.method output : Bytes.t -> int -> int -> int
output s k n
: Writes the substring of s
beginning at index
k
with length n
into the channel. The channel is free to
accept only a portion of the string (or even nothing), and
returns the number of bytes it accepts.method close_out : unit -> unit
method pos_out : int
method flush : unit -> unit
method can_output : bool
method request_notification : (unit -> bool) -> unit
can_output
changes its value (or might change
its value). The function returns true
if there is still interest
in notification, and false
if notification must be disabled.
There can be any number of parallel active notifications. It is
allowed that a notification callback requests further notifications.