package uwt

  1. Overview
  2. Docs
type error =
  1. | E2BIG
  2. | EACCES
  3. | EADDRINUSE
  4. | EADDRNOTAVAIL
  5. | EAFNOSUPPORT
  6. | EAGAIN
  7. | EAI_ADDRFAMILY
  8. | EAI_AGAIN
  9. | EAI_BADFLAGS
  10. | EAI_BADHINTS
  11. | EAI_CANCELED
  12. | EAI_FAIL
  13. | EAI_FAMILY
  14. | EAI_MEMORY
  15. | EAI_NODATA
  16. | EAI_NONAME
  17. | EAI_OVERFLOW
  18. | EAI_PROTOCOL
  19. | EAI_SERVICE
  20. | EAI_SOCKTYPE
  21. | EALREADY
  22. | EBADF
  23. | EBUSY
  24. | ECANCELED
  25. | ECHARSET
    (*

    Windows filenames (and similar parameters) are expected to be in utf8. ECHARSET is returned, if one parameter contains invalid unicode. Futhermore, ECHARSET will be returned, if your strings contain null bytes (on *nix, too!)

    *)
  26. | ECONNABORTED
  27. | ECONNREFUSED
  28. | ECONNRESET
  29. | EDESTADDRREQ
  30. | EEXIST
  31. | EFAULT
  32. | EFBIG
  33. | EHOSTUNREACH
  34. | EINTR
  35. | EINVAL
  36. | EIO
  37. | EISCONN
  38. | EISDIR
  39. | ELOOP
  40. | EMFILE
  41. | EMSGSIZE
  42. | ENAMETOOLONG
  43. | ENETDOWN
  44. | ENETUNREACH
  45. | ENFILE
  46. | ENOBUFS
  47. | ENODEV
  48. | ENOENT
  49. | ENOMEM
  50. | ENONET
  51. | ENOPROTOOPT
  52. | ENOSPC
  53. | ENOSYS
  54. | ENOTCONN
  55. | ENOTDIR
  56. | ENOTEMPTY
  57. | ENOTSOCK
  58. | ENOTSUP
  59. | EPERM
  60. | EPIPE
  61. | EPROTO
  62. | EPROTONOSUPPORT
  63. | EPROTOTYPE
  64. | ERANGE
  65. | EROFS
  66. | ESHUTDOWN
  67. | ESPIPE
  68. | ESRCH
  69. | ETIMEDOUT
  70. | ETXTBSY
  71. | EXDEV
  72. | UNKNOWN
  73. | EOF
  74. | ENXIO
  75. | UWT_EFATAL
    (*

    something happened that the author of uwt didn't expect. Probably a bug or a the api of libuv has changed in the meanwhile

    *)
val strerror : error -> string

error message for the given error code

val err_name : error -> string

error name for the given error code

val to_unix_error : error -> Unix.error

map error to Unix.error , Unix.EUNKNOWNERR is used, if mapping is not possible

val of_unix_error : Unix.error -> error

get back the original Uwt.error from an exception raised by a Uwt function

type 'a uv_result = ('a, error) Stdlib.result
type ('a, 'b) o_result = ('a, 'b) Stdlib.result =
  1. | Ok of 'a
  2. | Error of 'b
  • deprecated please use Result.result instead
type 'a result = ('a, error) o_result
  • deprecated please use Result.result or uv_result instead
module Int_result : sig ... end
type file

abstract type for a file descriptor

type sockaddr = Unix.sockaddr
type buf = (char, Bigarray.int8_unsigned_elt, Bigarray.c_layout) Bigarray.Array1.t
val stdin : file
val stdout : file
val stderr : file
module Iovec_write : sig ... end
module Fs_types : sig ... end
module type Fs_functions = sig ... end
module Conv : sig ... end
module Misc : sig ... end
module Sys_info : sig ... end
OCaml

Innovation. Community. Security.