package riot

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

Install

Dune Dependency

Authors

Maintainers

Sources

riot-0.0.5.tbz
sha256=01b7b82ccc656b12b7315960d9df17eb4682b8f1af68e9fee33171fee1f9cf88
sha512=d8831d8a75fe43a7e8d16d2c0bb7d27f6d975133e17c5dd89ef7e575039c59d27c1ab74fbadcca81ddfbc0c74d1e46c35baba35ef825b36ac6c4e49d7a41d0c2

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 | `Closed ]) 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 | `Closed ]) result
Sourceval send : Bigstringaf.t -> Runtime.Fd.t -> (int, [> `Unix_error of Unix.error | `Closed ]) result
val pp : Stdlib.Format.formatter -> _ socket -> unit
Sourceval pp_err : Stdlib.Format.formatter -> [ unix_error | `Closed | `Timeout | `System_limit ] -> unit
OCaml

Innovation. Community. Security.