package lpd

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type banner = {
  1. user_name : string;
  2. class_name : string;
  3. job_name : string;
}
type file_type =
  1. | Text of int * int
  2. | Bin
  3. | PS
  4. | DVI
  5. | Troff of string * string * string * string
  6. | Ditroff
  7. | CIF
  8. | Plot
  9. | Pr of string * int
  10. | Fortran
  11. | Raster
type file = {
  1. name : string;
  2. size : int;
  3. nbcopies : int;
  4. storage : string;
  5. of_type : file_type;
}
type job = {
  1. number : int;
  2. user : string;
  3. host : string;
  4. mailto : string;
  5. banner : banner option;
  6. files : file list;
  7. addr : Unix.sockaddr;
}
type jobref =
  1. | User of string
  2. | Num of int
type queue_actions = {
  1. print : unit -> unit;
  2. on_reception : job -> unit;
  3. send_queue : jobref list -> Socket.out_channel -> unit;
  4. send_queue_long : jobref list -> Socket.out_channel -> unit;
  5. remove : string -> Unix.sockaddr -> jobref list -> unit;
}
module type CONFIG = sig ... end
module Make (C : CONFIG) : sig ... end
val string_of_current_time : unit -> string
val header_of_job : string -> string
val string_of_job : int -> job -> string
val long_string_of_job : int -> job -> string
val any_host : Unix.sockaddr -> bool
val these_hosts : ?file:string -> string list -> Unix.sockaddr -> bool
OCaml

Innovation. Community. Security.