Module siphost

Network interface status/address retreival functions.

Introduced in: 15 Nov 2002 by Magnus Ahltorp <ahltorp@nada.kth.se>

Authors: Magnus Ahltorp (ahltorp@nada.kth.se).

Description

Network interface status/address retreival functions.

Function Index

makeip/1 Turn a v4 or v6 address represented as a tuple into a string representation.
myip/0 Get one IP address for this host.
myip_list/0 Get all IP addresses of this host.

Function Details

makeip/1

makeip(X1::IPTuple) -> Addr

Turn a v4 or v6 address represented as a tuple into a string representation.

myip/0

myip() -> Addr

Get one IP address for this host. Currently, we default to the first one returned by get_iplist().

myip_list/0

myip_list() -> Addresses

Get all IP addresses of this host. Exclude loopback and addresses of interfaces that are down. Note : XXX make this return all addresses, currently IPv6 addresses are not returned!


Generated by EDoc, Oct 17 2007, 16:48:26.