class out_obj_of_descr :buffer_len:int -> Unix.file_descr ->object..end
new out_obj_of_descr ~buffer_len fd creates a buffered
Netchannels.out_obj_channel.
Remark: The method #close_out does not close the file
descriptor fd because it may serve for more connections.
Inherits
Netchannels.out_obj_channelval fd : Unix.file_descrval out_buf : stringbuffer_len. The data in the
in_buf is at indexes i s.t. in0 <= i < in1.val mutable out1 : intval mutable pos_out : intmethod private write : string -> int -> int -> intwrite buf ofs len writes the substring buf.[ofs
.. ofs+len-1] to the file descriptor. It is assumed it will
only be used with len <= buffer_len. Returns the number of
characters actually written (must be at least 1 unless the
channel is non-blocking and writing would block).
You may want to override this function with an appropriate
version for your connector (because, say, the output must be
cut into chunks).
method private unsafe_output : string -> int -> int -> intmethod private unsafe_really_output : string -> int -> int -> unit