package uwt

  1. Overview
  2. Docs
val of_unix_sockaddr_exn : Unix.sockaddr -> sockaddr

be careful in case of Unix.ADDR_UNIX path. If path is very long, of_unix_sockaddr will raise an exception (Unix.Unix_error) and to_unix_sockaddr might return a truncated string. Unix.ADDR_UNIX is not supported on windows, of_unix_sockaddr will also raise an exception in this case.

val to_unix_sockaddr_exn : sockaddr -> Unix.sockaddr
val file_of_file_descr : Unix.file_descr -> file option

the following functions always succeed on Unix - but not on windows

val file_descr_of_file : file -> Unix.file_descr option
OCaml

Innovation. Community. Security.