Module Net.Getaddrinfo_error

Error codes returned by getaddrinfo(3)

type t =
  1. | UNKNOWN
  2. | ADDRFAMILY
  3. | AGAIN
  4. | BADFLAGS
  5. | BADHINTS
  6. | FAIL
  7. | FAMILY
  8. | MEMORY
  9. | NODATA
  10. | NONAME
  11. | OVERFLOW
  12. | PROTOCOL
  13. | SERVICE
  14. | SOCKTYPE
val to_tag : t -> string

to_tag t is the constructor name. e.g. to_tag NONAME = "NONAME".

val to_message : t -> string

to_message t returns a string representation of t, like gai_strerror(3).