KCML_GetHostByName

Purpose

Return the internet address of given host name

Definition

DEFSUB 'KCML_GetHostByName(host$, BYREF addr$()) AS Numeric

Parameters

hosthost name to look up
addrA 1-D array of 4 byte elements. This will be resized to the size of the list of addresses for the host.

Return

Count of address if it succeeds, zero if not found and -1 for an error

Description

Looks up the address using a local host file and/or any DNS.

See also

Internal KCML Functions, Internally defined structures and Internally defined enumerations and constants.