package riot

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

Install

Dune Dependency

Authors

Maintainers

Sources

riot-0.0.4.tbz
sha256=bd196369f74bbc42f23d262030d5fa04c03f5f00c46bf944f0dcbc193745976f
sha512=f1ca69e05b57e83a1bd173efe51b745d331355a83381e6068743a7626e45dcf515cdd8947180051bddfe9f5727c2732aa0f01a093b04cf33fa4081d32f24fd65

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.