Module Luv.Network

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 listError.t) Result.result

Lists network interface addresses.

Binds uv_interface_addresses. See Network interfaces in the user guide.

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

Retrieves a network interface name.

Binds uv_if_indextoname. See if_indextoname(3p).

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

Binds uv_if_indextoiid.

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

Evaluates to the system's hostname.

Binds uv_os_gethostname. See gethostname(3p).