Table of Contents | Previous | Next | Index

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

LDAP_DNSFN_GETHOSTBYADDR

LDAP_DNSFN_GETHOSTBYADDR specifies the prototype for a callback function. This callback function should be equivalent to the gethostbyaddr_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 if it needs to get the hostname of the LDAP server that it is connected to.

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