Table of Contents | Previous | Next | Index

Netscape Directory SDK 3.0 for C Programmer’s Guide
     Chapter 17 Data Types and Structures

LDAPHostEnt

LDAPHostEnt represents an entry for a host found by a domain name server. (This type is similar to the hostent structure returned by functions such as gethostbyname_r() on UNIX.)

If you are writing your own DNS functions for use by the client, your functions should return the host entry in this type of structure. See the documentation on LDAP_DNSFN_GETHOSTBYADDR and LDAP_DNSFN_GETHOSTBYNAME for details.

The fields in this structure should point to addresses within the buffer that is passed to the DNS callback (referenced in the LDAP callback function). This buffer contains the host data. The pointers in the hostent structure returned by the function point to the data in this buffer.

LDAPHostEnt is defined as follows:

typedef struct LDAPHostEnt {
   char *ldaphe_name; 
   char **ldaphe_aliases; 
   int ldaphe_addrtype; 
   int ldaphe_length; 
   char **ldaphe_addr_list; 
} LDAPHostEnt;
The fields in this structure are described below:

ldaphe_name

Canonical name of the host.

ldaphe_aliases

List of aliases for this host.

ldaphe_addrtype

Address type of the host.

ldaphe_length

Length of the address.

ldaphe_addr_list

List of addresses for this host (as returned by the name server).


Table of Contents | Previous | Next | Index

Last Updated: 10/01/98 17:05:28