package ocs

  1. Overview
  2. Docs
type port
type port_flag =
  1. | Pf_input
  2. | Pf_output
  3. | Pf_close
val fd_port : Unix.file_descr -> port_flag list -> port
val input_port : Pervasives.in_channel -> port
val output_port : Pervasives.out_channel -> port
val open_input_port : string -> port
val open_output_port : string -> port
val string_input_port : string -> port
val string_output_port : unit -> port
val is_input : port -> bool
val is_output : port -> bool
val getc : port -> char option
val ungetc : port -> char -> unit
val char_ready : port -> bool
val putc : port -> char -> unit
val puts : port -> string -> unit
val get_fd : port -> Unix.file_descr option
val flush : port -> unit
val close : port -> unit
OCaml

Innovation. Community. Security.