package calculon

  1. Overview
  2. Docs
type 'a t = 'a
val (>>=) : 'a -> ('a -> 'b) -> 'b
val (>|=) : 'a -> ('a -> 'b) -> 'b
val return : 'a -> 'a
type file_descr = {
  1. ssl : Ssl.context;
  2. sslsock : Ssl.socket;
  3. fd : Unix.file_descr;
}
type config = Config.t
type inet_addr = Unix.inet_addr
val open_socket : ?config:Config.t -> Unix.inet_addr -> int -> file_descr t
val close_socket : file_descr -> unit
val read : file_descr -> Bytes.t -> int -> int -> int
val write : file_descr -> Bytes.t -> int -> int -> int
val read_with_timeout : timeout:'a -> file_descr -> Bytes.t -> int -> int -> int option
val gethostbyname : string -> Unix.inet_addr list
val iter : ('a -> unit) -> 'a list -> unit
val sleep : int -> unit
val catch : (unit -> 'a) -> (exn -> 'a) -> 'a
val time : unit -> float
val pick : 'a option
OCaml

Innovation. Community. Security.