package luv

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
module Interface_address : sig ... end

Binds uv_interface_address_t. t.physical is a string of length 6.

val interface_addresses : unit -> (Interface_address.t list, Error.t) result

Lists network interface addresses.

Binds uv_interface_addresses. See Network interfaces in the user guide.

val if_indextoname : int -> (string, Error.t) result

Retrieves a network interface name.

Binds uv_if_indextoname. See if_indextoname(3p).

Requires libuv 1.16.0.

Feature check: Luv.Require.(has if_indextoname)

val if_indextoiid : int -> (string, Error.t) result

Binds uv_if_indextoiid.

Requires libuv 1.16.0.

Feature check: Luv.Require.(has if_indextoiid)

val gethostname : unit -> (string, Error.t) result

Evaluates to the system's hostname.

Binds uv_os_gethostname. See gethostname(3p).

Requires.libuv 1.12.0.

Feature check: Luv.Require.(has os_gethostname)

OCaml

Innovation. Community. Security.