class Host

Finds information about a network host

Description

This class is used to look up the IP addresses and names of an Internet host. It contains the following members: name - the string which was supplied as the "host" parameter to the constructor; addresses - an array of strings giving the IP addresses of the host in textual form; types - an array of numbers specifying the address type of each address in the addresses array (either Network.AF_IPV4 or Network.AF_IPV6); reversenames - an array which, if the reverse parameter of the constructor was true, contains the name which each IP in the addresses array reverse resolves to (if the resolve fails, they contain the IP string). You must supply the constructor with the name or IP address (in textual form) of the host to look for, as well as the address family (Network.AF_IPV4, Network.AF_IPV6, or Network.AF_AUTO) you are interested in.

class contents [NB. Highlighted attributes are static members]
Functions
function constructor(string,number,number) - Performs a hostname lookup
Variables
variable addresses - An array containg ip addresses as strings.
variable host - The name of the host.
variable reversenames - An array containing the host name that each address in addresses reverse resolves to.
variable types - The type of each address within the addresses array (either Network.AF_IPV6 or Network.AF_IPV4.

Functions

function constructor Click to go up to the list
Performs a hostname lookup
Declaration:
    function constructor(string host, number type, number reverse)
Parameters:
    Parameter #1: string host - A hostname or IP address
    Parameter #2: number type - The type of address to look for
    Parameter #3: number reverse - If true, force a reverse lookup of each IP

Variables

array addresses Click to go up to the list
An array containg ip addresses as strings.

string host Click to go up to the list
The name of the host.

array reversenames Click to go up to the list
An array containing the host name that each address in addresses reverse resolves to.

array types Click to go up to the list
The type of each address within the addresses array (either Network.AF_IPV6 or Network.AF_IPV4.

Automatically generated at 12:07PM, Wednesday 25 May 2005 by feritedoc.