module Net_channels: Libs.ExtNetchannels.Netchannels
include Netchannels_modtype.Netchannels
Basic I/O class types for library interoperability
class type ['a]
acc_out_channel = object
.. end
Accumulator channel (meaningful for Netchannels built from
Batteries output channels).
Integration among IO channels and Netchannels
class channel_of_input : IO.input ->
rec_in_channel
Create an input Netchannel from a Batteries System.IO.input
channel
class ['a]
channel_of_output : 'a IO.output ->
['a]
acc_out_channel
Create an output Netchannel from a Batteries System.IO.output
channel
val input_of_channel : rec_in_channel -> IO.input
Create a Batteries System.IO.input
channel from an input
Netchannel
val output_of_channel : rec_out_channel -> unit IO.output
Create a Batteries System.IO.output
channel from an output
Netchannel. Using this method no value is accumulated in the
output channel, see Network.Netchannels.output_of_acc_channel
for that.
val output_of_acc_channel : 'a acc_out_channel -> 'a IO.output
Create a Batteries
System.IO.output
channel from an output
Netchannel, enabling to access the value accumulated during output
from the resulting channel. See also
Network.Netchannels.output_of_channel
.
Raises Data.Persistent.Option.No_value
upon
close
if the
underlying channel did not set the value accumulated during
output. See
Net_channels.acc_out_channel
.