Closed Bug 313784 Opened 20 years ago Closed 20 years ago

Add support for asynchronous searches

Categories

(Directory Graveyard :: PerLDAP, enhancement)

enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: richm, Assigned: leif)

Details

Attachments

(1 file)

PerLDAP needs a perl interface to the ldap_search/ldap_search_ext/ldap_search_st C interfaces so that several simultaneous async searches can be started, results iterated over, and closed/abandoned.
Attached file Diffs for fix
Add a new method called async_search() which takes the same arguments as search(). The new method returns an internal package/class called SearchIter which is used to get the search result code, to iterate through the search results, and to abandon the search if finished iterating before getting the last result (e.g. we found the entry we were looking for, so we don't need anymore results). Also updated the POD docs with the new methods.
Checking in Conn.pm; /cvsroot/mozilla/directory/perldap/Conn.pm,v <-- Conn.pm new revision: 1.24.2.14; previous revision: 1.24.2.13 done
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: