nano IO event loop
Find a file
Simon Cruanes 604224d1cf
Some checks are pending
github pages / Deploy doc (push) Waiting to run
Build and Test / build (push) Waiting to run
Build and Test / format (push) Waiting to run
basic UDP socket example
2025-05-06 11:02:10 -04:00
.github/workflows CI 2025-05-05 10:04:42 -04:00
examples basic UDP socket example 2025-05-06 11:02:10 -04:00
src add Nanoev_picos.Net with send/recv functions 2025-05-06 11:01:54 -04:00
tests test: better tracing and scalability for echo client/server 2025-05-02 13:48:54 -04:00
.gitignore initial commit 2024-10-17 22:54:49 -04:00
.ocamlformat ocamlformat 2025-04-30 16:12:44 -04:00
dune-project require tiny_httpd 0.19 2025-05-05 10:10:29 -04:00
echo.sh wip: example 2024-12-09 22:32:09 -05:00
Makefile initial commit 2024-10-17 22:54:49 -04:00
nanoev-picos.opam add nanoev-picos as a package, also using picos_std 2025-05-02 13:47:40 -04:00
nanoev-posix.opam add nanoev-picos as a package, also using picos_std 2025-05-02 13:47:40 -04:00
nanoev.opam add nanoev-picos as a package, also using picos_std 2025-05-02 13:47:40 -04:00
nanoev_tiny_httpd.opam require tiny_httpd 0.19 2025-05-05 10:10:29 -04:00
README.md readme 2025-05-02 15:40:06 -04:00

nanoev

A minimalistic but modular abstraction for IO event loops.

The goal of this library is to provide a uniform abstraction over multiple system event loops, in a way that plays well with Picos.

Usage

Very basic usage would look like this:

module EV = Nanoev_picos


let () =
  (* use a backend, eg. select *)
  let ev = Nanoev_unix.create () in

  (* install the backend *)
  Nanoev_picos.setup_bg_thread ev;

  (* setup a picos scheduler and use EV.read, EV.write, etc. *)
  

Backends

  • select
  • poll/ppoll
  • epoll
  • kqueue
  • uring