package luv

  1. Overview
  2. Docs
Binding to libuv: cross-platform asynchronous I/O

Install

Dune Dependency

Authors

Maintainers

Sources

luv-0.5.6.tar.gz
sha256=35d8092d7a7e8d00a7ab8caf79d99e2073baf1999f5b9274de4d69078ad83685
md5=fb78fd1b179f5c9585e79b5a1c5ff644

doc/luv/Luv/Sockaddr/index.html

Module Luv.SockaddrSource

Sourcemodule Address_family : sig ... end

Network address families. See socket(2).

Sourcemodule Socket_type : sig ... end

Socket types. See socket(2).

Sourcetype t

Binds struct sockaddr.

The functions in this module automatically take care of converting between network and host byte order.

Sourceval ipv4 : string -> int -> (t, Error.t) Result.result

Converts a string and port number to an IPv4 struct sockaddr.

Binds uv_ip4_addr.

Sourceval ipv6 : string -> int -> (t, Error.t) Result.result

Converts a string and port number to an IPv6 struct sockaddr.

Binds uv_ip4_addr.

Sourceval to_string : t -> string option

Converts a network address to a string.

Binds either uv_ip4_name and uv_ip6_name.

Sourceval port : t -> int option

Extracts the port in a network address.

OCaml

Innovation. Community. Security.