luv_unix

Helpers for interfacing Luv and Unix
IN THIS PACKAGE
Module Luv_unix . Os_fd . Fd
val from_unix : Unix.file_descr -> ( t, Error.t ) Result.result

Attempts to convert from a Unix.file_descr to a libuv uv_os_fd_t. Fails on Windows if the descriptor is a SOCKET rather than a HANDLE.

val to_unix : t -> Unix.file_descr

Converts a uv_os_fd_t to a Unix.file_descr.