Table of Contents | Previous | Next | Index

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

LDAP_DNSFN_GETHOSTBYNAME

LDAP_DNSFN_GETHOSTBYNAME specifies the prototype for a callback function. This callback function should be equivalent to the gethostbyname_r() function that is available on some UNIX platforms.

If you define a function with this prototype and set it in the ldap_dns_fns structure, your function will be called by the LDAP SDK on behalf of your LDAP client to get the host entry for the LDAP server when connecting to the server.

The prototype specified by this data type is:

typedef LDAPHostEnt * (LDAP_C LDAP_CALLBACK 
LDAP_DNSFN_GETHOSTBYADDR)( const char *addr, int length, int type,
   LDAPHostEnt *result, char *buffer, int buflen, int *statusp,
   void *extradata );

Table of Contents | Previous | Next | Index

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