Abandons an asynchronous LDAP operation already in progress. This function has been deprecated; LDAP v3 clients should use ldap_abandon_ext.
#include <ldap.h>
int ldap_abandon (
LDAP *ld,
int msgid);
(IN) Points to the handle for the LDAP session.
(IN) Specifies the message ID of the asynchronous LDAP operation to abandon.
The msgid parameter must specify a message ID returned by an outstanding asynchronous LDAP operation, such as ldap_search or ldap_modify.
The ldap_abandon function checks to see if the results of the operation has already come in.
If not, it sends an LDAP abandon operation to the LDAP server.
If the results have already come in, the LDAP operation cannot be abandoned.
If the ldap_abandon function returns -1, use the ldap_get_option function with the option parameter set to LDAP_OPT_RESULT_CODE to retrieve the error code from the LDAP session handle.