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.4.tbz
sha256=bd196369f74bbc42f23d262030d5fa04c03f5f00c46bf944f0dcbc193745976f
sha512=f1ca69e05b57e83a1bd173efe51b745d331355a83381e6068743a7626e45dcf515cdd8947180051bddfe9f5727c2732aa0f01a093b04cf33fa4081d32f24fd65

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.