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 | |
ldaphe_aliases | |
ldaphe_addrtype | |
ldaphe_length | |
ldaphe_addr_list | List of addresses for this host (as returned by the name server). |
Last Updated: 10/01/98 17:05:28