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 attributes [NB. Highlighted attributes are static members]
function Host() - Performs a hostname lookup

Functions

function Host Click to go up to the list
Performs a hostname lookup
Declaration:
    native function Host(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

Automatically generated at 8:45pm, Wednesday 08 January 2003 by feritedoc.