luv_unix

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

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

val to_unix : t -> Unix.file_descr

Converts a uv_os_sock_t to a Unix.file_descr.