Plasma GitLab Archive
Projects Blog Knowledge

Class type Netchannels.compl_out_channel

class type compl_out_channel = object .. end
Further methods usually supported by ocamlnet channel implementations. These methods are only reasonable when the channel is of blocking type, i.e. waits for output readiness when the underlying resource currently cannot process enough data. Implementations may choose to fail when they detect the channel is non-blocking.

method really_output : string -> int -> int -> unit
Writes exactly as many octets to the channel as the second int argument specifies. The octets are taken from the string position denoted by the first int argument.
method output_char : char -> unit
Writes exactly one character
method output_string : string -> unit
Writes exactly the passed string
method output_byte : int -> unit
Writes exactly one byte passed as integer code
method output_buffer : Buffer.t -> unit
Writes exactly the contents of the buffer
method output_channel : ?len:int -> in_obj_channel -> unit
Writes the contents of an in_obj_channel until the end of the input channel is reached.


len : If passed, at most this number of octets are read from the input channel and written to this channel.
This web site is published by Informatikbüro Gerd Stolpmann
Powered by Caml