ldap_abandon_ext() instead.
#include <ldap.h>
int ldap_abandon( LDAP *ld, int msgid );
ld |
Connection handle, which is a pointer to an |
msgid |
LDAP_SUCCESS. if successful. LDAP structure. You can retrieve the error code by calling the ldap_get_lderrno() function. ldap_abandon() function cancels ("abandons") an asynchronous LDAP operation that is in progress.
A newer version of this function, ldap_abandon_ext(), is available in this release of the LDAP API. ldap_abandon() (the older version of the function) is included only for backward-compatibility. If you are writing a new LDAP client, use ldap_abandon_ext() instead of ldap_abandon().
If you want more information on ldap_abandon(), refer to the LDAP C SDK 1.0 Programmer's Guide.
ldap_url_search() operation, abandoning the results of the operation.
LDAP *ld;
char *url = "ldap://ldap.itd.umich.edu/c=US?o,description?one?o=umich";
int msgid;
...
/* Initiate a search operation */
msgid = ldap_url_search( ld, url, 0 );
...
/* Abandon the search operation */
if ( ldap_abandon( ld, msgid ) != LDAP_SUCCESS ) {ldap_perror( ld, "ldap_abandon" );
return( 1 );
}
...
ldap_abandon_ext().
Last Updated: 10/01/98 17:06:23