Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Net.IOa >>= b will pass the result of a to the b function. This is a monadic bind.
val return : 'a -> 'a treturn a will construct a constant IO value.
type ic = Lwt_io.input_channelic represents an input channel
type oc = Lwt_io.output_channeloc represents an output channel
type conn = Conduit_lwt_unix.flowconn represents the underlying network flow
read_line ic will read a single line terminated by CR or CRLF from the input channel ic. It returns None if EOF or other error condition is reached.
read ic len will block until a maximum of len characters are read from the input channel ic. It returns an empty string if EOF or some other error condition occurs on the input channel, and can also return fewer than len characters if input buffering is not sufficient to satisfy the request.
write oc s will block until the complete s string is written to the output channel oc.