package lpd

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
method output : string -> int -> int -> int

#output buf pos len writes up to len characters from string buf, starting at offset pos, to the given object output stream and returns the number of characters actually written. A return value 0 (when len > 0) means that the write would block (and we are in non-blocking mode).

  • raises Invalid_argument

    "Socket.output" if pos and len do not designate a valid substring of buf.

method output_char : char -> unit

See Socket.output_char.

method output_string : string -> unit

See Socket.output_string.

method fprintf : ('a, unit, string, unit) Pervasives.format4 -> 'a

See Socket.fprintf.

method flush : unit -> unit

Flush the buffer associated with the output channel, performing all pending writes on that channel. Interactive programs must be careful about flushing standard output and standard error at the right time.

method close_out : unit -> unit

Flush all buffered write operations and close the given channel (and underlying socket). See Socket.close_out.

OCaml

Innovation. Community. Security.