36.3 Network Database Functions

Three database files are kept in the sys:\etc directory on the NetWare server:

The following functions allow you to retrieve information from these files and from your host machine.

Function

Description

gethostbyaddr

Returns information about the host specified by the address.

gethostbyname

Returns information about the named host.

gethostname

Returns the name of the local host.

getprotobyname

Returns information about the named protocol.

getprotobynumber

Returns information about the protocol specified by the number.

getservbyname

Returns information about the named service.

getservbyport

Returns information about the service specified by the port number.