Returns a pointer to the next message of message type, LDAP_RES_SEARCH_ENTRY, LDAP_RES_SEARCH_RESULT, or LDAP_RES_SEARCH_REFERENCE, in chain of LDAPMessage structures.
#include <ldap.h>
LDAPMessage *ldap_next_message (
LDAP *ld,
LDAPMessage *msg);
(IN) Points to the handle for the LDAP session.
(IN/OUT) Points to the LDAPMessage structure returned by a previous call. On the first call, this is the value returned by the ldap_first_message function. On subsequent calls, it is the value returned by the ldap_next_message function.
If the ldap_next_message function encounters an error, the function returns NULL and sets the LDAP_OPT_RESULT_CODE option in the LDAP session handle.