package ocamlnet

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type res_id = [
  1. | `Resource of int
]
type process_id = [
  1. | `Process of int
]
type compute_resource_type = [
  1. | `File
  2. | `Fork_point
  3. | `Join_point
  4. | `Posix_sem
  5. | `Posix_shm
  6. | `Posix_shm_preallocated
  7. | `Posix_shm_preallocated_sc
  8. | `Posix_shm_sc
]
type inherit_request = [
  1. | `All
  2. | `Resources of res_id list
]
type compute_resource_repr = [
  1. | `File of string
  2. | `Fork_point of (inherit_request * Netplex_encap.encap) -> process_id
  3. | `Join_point of process_id -> Netplex_encap.encap option
  4. | `Posix_sem of string
  5. | `Posix_shm of string
  6. | `Posix_shm_preallocated of string * Netsys_mem.memory
  7. | `Posix_shm_preallocated_sc of string * Netsys_mem.memory * Netsys_sem.container
  8. | `Posix_shm_sc of string * Netsys_sem.prefix
]
exception No_resource of res_id
class type compute_resource = object ... end
val start : ?inherit_resources:inherit_request -> res_id -> Netplex_encap.encap -> process_id
val join : res_id -> process_id -> Netplex_encap.encap option
val join_nowait : res_id -> process_id -> Netplex_encap.encap option
val get_resource : res_id -> compute_resource
val release : res_id -> unit
val manage_file : string -> compute_resource
val get_file : res_id -> string
val manage_shm : string -> compute_resource
val manage_shm_sc : string -> Netsys_sem.container -> compute_resource
val get_shm : res_id -> string
val get_sem_container : res_id -> Netsys_sem.container
val create_preallocated_shm : ?value_area:bool -> string -> int -> res_id * string
val create_preallocated_shm_sc : ?value_area:bool -> string -> int -> res_id * string * Netsys_sem.container
val manage_sem : string -> compute_resource
val get_sem : res_id -> string
val self_process_id : unit -> process_id
val add_plugins : Netplex_types.controller -> unit
val startup : socket_directory:string -> ?pidfile:string -> ?init_ctrl:(Netplex_types.controller -> unit) -> ?disable_pmanage:bool -> ?no_unlink:bool -> first_process:('a -> process_id) -> 'a -> unit
val run : socket_directory:string -> ?pidfile:string -> ?init_ctrl:(Netplex_types.controller -> unit) -> ?disable_pmanage:bool -> ?no_unlink:bool -> first_process:('a -> process_id) -> extract_result:(Netplex_types.controller -> process_id -> 'b) -> 'a -> 'b
val destroy_resources : unit -> unit
module Debug : sig ... end
OCaml

Innovation. Community. Security.