hedi <[EMAIL PROTECTED]> writes: > Hi everybody, > > I am using C SDK 5.08 to access the Iplanet Directory server 4.1 and I'd > like to have a mechanism of call back (or any other event) in case of > deconnection (or anything similar) to be sure that my connection is > still valid before any read or write request. > Do the LDAP_IOF_CLOSE_CALLBACK could be used in this case ? > Or a periodic check (with a fake read) is ok. > > Any suggestion ?
This isn't really the model that the LDAP C SDK supports. In general, the way the C SDK works is that you just make calls into it as appropriate, and if the connection goes down, the next call you make will fail and set the LDAP errno to LDAP_SERVER_DOWN. Dan
