package riot

  1. Overview
  2. Docs
An actor-model multi-core scheduler for OCaml 5

Install

Dune Dependency

Authors

Maintainers

Sources

riot-0.0.3.tbz
sha256=6201ce27997ec1c4b4509782c6be2fa2bf102b804b11dcbf9ebdb49a123c19c3
sha512=ad70a67601a892700e461efe57484d109b1d08e30d15464ad8611e71dd568c934d3f948afd645e096e4f97ad1935aaeaf5d9b6d9d59c52a82eeb5c4995421646

doc/riot.net/Net/Io/index.html

Module Net.IoSource

Sourcetype t
Sourcetype accept = [
  1. | `Abort of Unix.error
  2. | `Connected of Socket.stream_socket * Addr.stream_addr
  3. | `Retry
]
Sourcetype read = [
  1. | `Abort of Unix.error
  2. | `Read of int
  3. | `Retry
]
Sourcetype write = [
  1. | `Abort of Unix.error
  2. | `Retry
  3. | `Wrote of int
]
Sourceval create : unit -> t
Sourceval pp : Format.formatter -> t -> unit
Sourceval register : t -> Core.Process.t -> [ `r | `rw | `w ] -> Util.Fd.t -> unit
Sourceval unregister_process : t -> Core.Process.t -> unit
Sourceval poll : t -> ((Core.Process.t * Util.Fd.Mode.t) -> unit) -> unit
Sourceval close : t -> Util.Fd.t -> unit
Sourceval getaddrinfo : string -> string -> [> `Abort of Unix.error | `Ok of Unix.addr_info list | `Retry ]
Sourceval listen : t -> reuse_addr:bool -> reuse_port:bool -> backlog:int -> Addr.stream_addr -> (Util.Fd.t, 'a) result
Sourceval connect : t -> Addr.stream_addr -> [> `Abort of Unix.error | `Connected of Util.Fd.t | `In_progress of Util.Fd.t | `Retry ]
Sourceval accept : t -> Util.Fd.t -> accept
Sourceval read : Socket.stream_socket -> bytes -> int -> int -> read
Sourceval write : Socket.stream_socket -> bytes -> int -> int -> write
OCaml

Innovation. Community. Security.