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

    *)
  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_UNKNOWN
    (*

    Can't translate the error code. Perhaps your libuv version is too new or too old

    *)
  76. | 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

    *)
  77. | UWT_EBADF
    (*

    you've already closed this handle/request

    *)
  78. | UWT_EINVAL
    (*

    one of your parameters doesn't look valid, e.g. negative integer when only positive integers are expected

    *)
  79. | UWT_ENOTACTIVE
    (*

    e.g. you've tried to stop a timer, that wasn't active

    *)
  80. | UWT_EBUSY
    (*

    e.g. reported, if you try to use Uwt.Stream.read_start, while you've already registered another callback for this event

    *)
  81. | UWT_ENOENT
    (*

    entry not found, Not_found message for callbacks

    *)
  82. | UWT_EUNAVAIL
    (*

    you've tried to call a function, that is not supported, either by your os or your libuv installation

    *)

UWT_- error codes are introduced by uwt.

exception Uwt_error of error * string * string
val strerror : error -> string

error message for the given error code

val err_name : error -> string

error name for the given error code

type 'a result =
  1. | Ok of 'a
  2. | Error of error

The official result type will be used in the future

module Int_result : sig ... end
type file

abstract type for a file descriptor

type sockaddr

similar to Unix.sockaddr, but abstract

val stdin : file
val stdout : file
val stderr : file
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.