package lpd

  1. Overview
  2. Docs
A Line Printer Daemon (LPD) server library written entirely in OCaml.

Install

Dune Dependency

Authors

Maintainers

Sources

lpd-1.2.2.tbz
sha256=0342ffbb140b38624dc92840fbfbcf080b86a0bee7eb98559fcfa8ac54afdc06
md5=e0ce4ad3d6d2c9b2e548e38da4d79bd2

doc/lpd.socket/Socket/class-out_channel_obj/index.html

Class Socket.out_channel_objSource

method output : Bytes.t -> 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) 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.