package ocamlnet

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type rcache
type rcache_policy = [
  1. | `Any_failing_port_disables_host
  2. | `Failing_port_disables_host of int
  3. | `Independent
  4. | `None
]
type rcache_config = {
  1. rcache_policy : rcache_policy;
  2. rcache_disable_timeout_min : float;
  3. rcache_disable_timeout_max : float;
  4. rcache_threshold : int;
  5. rcache_availability : rcache -> Unix.sockaddr -> bool;
}
val create_rcache_config : ?policy:rcache_policy -> ?disable_timeout_min:float -> ?disable_timeout_max:float -> ?threshold:int -> ?availability:(rcache -> Unix.sockaddr -> bool) -> unit -> rcache_config
val create_rcache : rcache_config -> rcache
val rcache_config : rcache -> rcache_config
val global_rcache_config : unit -> rcache_config
val set_global_rcache_config : rcache_config -> unit
val global_rcache : unit -> rcache
val derive_rcache : rcache -> rcache_config -> rcache
val incr_rcache_error_counter : rcache -> Unix.sockaddr -> unit
val reset_rcache_error_counter : rcache -> Unix.sockaddr -> unit
val sockaddr_is_enabled : rcache -> Unix.sockaddr -> bool
val host_is_enabled : rcache -> Unix.inet_addr -> bool