Module Nanoev_picos

Basic interface with picos

module Background_thread : sig ... end
module Global_ev : sig ... end

Global loop.

Non blocking IO primitives

module Base : sig ... end
include module type of struct include Base end
val read : Unix.file_descr -> bytes -> int -> int -> int

Read from the non blocking FD.

val write_once : Unix.file_descr -> bytes -> int -> int -> int

Write into the non blocking FD.

val write : Unix.file_descr -> bytes -> int -> int -> unit
val close : Unix.file_descr -> unit

Close the file descriptor

val connect : Unix.file_descr -> Unix.sockaddr -> unit

Connect this FD to the remote address.

Accept a connection on this fd.

val max_fds : unit -> int

Maximum number of file descriptors one can await on. See Nanoev.max_fds

val sleep : float -> unit

Suspend current fiber for n seconds

module Raw = Base.Raw

Building blocks on top of Base

module IO_in : sig ... end
module IO_out : sig ... end
module Net : sig ... end
module Net_client : sig ... end
module Net_server : sig ... end