This commit is contained in:
Simon Cruanes 2025-04-30 21:46:03 -04:00
parent 295b3b5c24
commit 8de6936787
No known key found for this signature in database
GPG key ID: EBFFF6F283F3A2B4

View file

@ -4,7 +4,8 @@ val setup_bg_thread : Nanoev.t -> unit
(** Install this event loop in a background thread *)
val has_bg_thread : unit -> bool
(** [has_bg_thread ()] is [true] iff a background thread is running a nanoev loop *)
(** [has_bg_thread ()] is [true] iff a background thread is running a nanoev
loop *)
(** {2 Non blocking IO primitives} *)
@ -23,6 +24,9 @@ val close : Unix.file_descr -> unit
@raise Unix.Unix_error when it fails *)
val connect : Unix.file_descr -> Unix.sockaddr -> unit
(** Connect this FD to the remote address.
@raise Nanoev.Closed if the FD is closed.
@raise Unix.Unix_error for other errors *)
val accept : Unix.file_descr -> Unix.file_descr * Unix.sockaddr
(** Accept a connection on this fd.