Table of Contents | Previous | Next | Index

Netscape Directory SDK 3.0 for C Programmer’s Guide
     Chapter 18 Functions

ldap_next_reference()

Returns a pointer to the LDAPMessage structure representing the next search reference in a chain of search results.

Syntax

#include <ldap.h>
LDAPMessage * ldap_next_reference( LDAP *ld, LDAPMessage *ref );

Parameters

This function has the following parameters:

ld

Connection handle, which is a pointer to an LDAP structure containing information about the connection to the LDAP server.

msg

Pointer to an LDAPMessage structure in a chain of search results.

Returns

One of the following values:

Description

The ldap_next_reference() function returns a pointer to the LDAPMessage structure representing the next search reference in a chain of search results. Messages containing search references have the type LDAP_RES_SEARCH_REFERENCE.

You can use this function in conjunction with the ldap_first_reference() function to iterate through the search references in a chain of search results. These functions skip over any messages in the chain that do not have the type LDAP_RES_SEARCH_REFERENCE.

For more information, see "Iterating Through a Chain of Results" on page 124.

See Also

ldap_first_reference().


Table of Contents | Previous | Next | Index

Last Updated: 10/01/98 17:06:23