package riot

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

Install

dune-project
 Dependency

Authors

Maintainers

Sources

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

doc/lib_net/Lib_net/Socket/index.html

Module Lib_net.SocketSource

type 'kind socket = Runtime.Fd.t
type listen_socket = Runtime.Fd.t
type stream_socket = Runtime.Fd.t
Sourcetype listen_opts = {
  1. reuse_addr : bool;
  2. reuse_port : bool;
  3. backlog : int;
  4. addr : string;
}
Sourcetype timeout =
  1. | Infinity
  2. | Bounded of float
Sourcetype unix_error = [
  1. | `Unix_error of Unix.error
]
Sourcetype nonrec ('ok, 'err) result = ('ok, 'err) Stdlib.result constraint 'err = [> unix_error ]
Sourceval default_listen_opts : listen_opts
Sourceval close : Runtime.Fd.t -> unit
Sourceval listen : ?opts:listen_opts -> port:int -> unit -> (Runtime.Fd.t, 'a) result
Sourceval connect : Runtime.Net.Addr.stream_addr -> (Runtime.Fd.t, [> `Unix_error of Unix.error ]) result
Sourceval accept : ?timeout:timeout -> Runtime.Fd.t -> (Runtime.Net.Socket.stream_socket * Runtime.Net.Addr.stream_addr, [> `Unix_error of Unix.error ]) result
Sourceval controlling_process : 'a -> new_owner:'b -> (unit, 'c) result
Sourceval receive : ?timeout:timeout -> len:int -> Runtime.Fd.t -> (Bigstringaf.t, [> `Unix_error of Unix.error ]) result
Sourceval send : Bigstringaf.t -> Runtime.Fd.t -> (int, [> `Unix_error of Unix.error ]) result
OCaml

Innovation. Community. Security.